Search in sources :

Example 16 with DisplayNameEntry

use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.

the class UpdateScopeAction method addClaim.

public void addClaim(GluuAttribute claim) {
    DisplayNameEntry oneClaim = new DisplayNameEntry(claim.getDn(), claim.getInum(), claim.getDisplayName());
    this.claims.add(oneClaim);
}
Also used : DisplayNameEntry(org.xdi.model.DisplayNameEntry)

Example 17 with DisplayNameEntry

use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.

the class UpdateSectorIdentifierAction method updateClientDisplayNameEntries.

private void updateClientDisplayNameEntries() {
    List<String> clientDisplayNameEntries = new ArrayList<String>();
    this.sectorIdentifier.setClientIds(clientDisplayNameEntries);
    for (DisplayNameEntry displayNameEntry : this.clientDisplayNameEntries) {
        clientDisplayNameEntries.add(displayNameEntry.getDn());
    }
}
Also used : ArrayList(java.util.ArrayList) DisplayNameEntry(org.xdi.model.DisplayNameEntry)

Example 18 with DisplayNameEntry

use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.

the class UpdateClientAction method addScope.

private void addScope(OxAuthScope scope) {
    DisplayNameEntry oneScope = new DisplayNameEntry(scope.getDn(), scope.getInum(), scope.getDisplayName());
    this.scopes.add(oneScope);
}
Also used : DisplayNameEntry(org.xdi.model.DisplayNameEntry)

Example 19 with DisplayNameEntry

use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.

the class UpdateGroupAction method updateMembers.

private void updateMembers() {
    List<String> members = new ArrayList<String>();
    this.group.setMembers(members);
    for (DisplayNameEntry member : this.members) {
        members.add(member.getDn());
    }
}
Also used : ArrayList(java.util.ArrayList) DisplayNameEntry(org.xdi.model.DisplayNameEntry)

Example 20 with DisplayNameEntry

use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.

the class UpdateGroupAction method addMember.

public void addMember(GluuCustomPerson person) {
    DisplayNameEntry member = new DisplayNameEntry(person.getDn(), person.getInum(), person.getDisplayName());
    this.members.add(member);
}
Also used : DisplayNameEntry(org.xdi.model.DisplayNameEntry)

Aggregations

DisplayNameEntry (org.xdi.model.DisplayNameEntry)20 ArrayList (java.util.ArrayList)8 CustomScript (org.xdi.model.custom.script.model.CustomScript)2 Filter (com.unboundid.ldap.sdk.Filter)1 List (java.util.List)1 OxAuthScope (org.gluu.oxtrust.model.OxAuthScope)1 LdapMappingException (org.gluu.site.ldap.persistence.exception.LdapMappingException)1 ResourceSet (org.xdi.oxauth.model.uma.persistence.ResourceSet)1