use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateGroupAction method convertToDNsArray.
private String[] convertToDNsArray(List<DisplayNameEntry> members) {
String[] memberDns = new String[members.size()];
int i = 0;
for (DisplayNameEntry member : members) {
memberDns[i++] = member.getDn();
}
return memberDns;
}
use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateResourceSetAction method addClient.
public void addClient(OxAuthClient clietn) {
DisplayNameEntry oneClient = new DisplayNameEntry(clietn.getDn(), clietn.getInum(), clietn.getDisplayName());
this.clients.add(oneClient);
}
use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateResourceSetAction method updateClients.
private void updateClients() {
if ((this.clients == null) || (this.clients.size() == 0)) {
this.resourceSet.setClients(null);
return;
}
List<String> tmpClients = new ArrayList<String>();
for (DisplayNameEntry client : this.clients) {
tmpClients.add(client.getDn());
}
this.resourceSet.setClients(tmpClients);
}
use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateScopeDescriptionAction method getInitialAuthorizationPolicies.
private List<CustomScript> getInitialAuthorizationPolicies() {
List<CustomScript> result = new ArrayList<CustomScript>();
if ((this.scopeDescription.getAuthorizationPolicies() == null) || (this.scopeDescription.getAuthorizationPolicies().size() == 0)) {
return result;
}
List<DisplayNameEntry> displayNameEntries = lookupService.getDisplayNameEntries(customScriptService.baseDn(), this.scopeDescription.getAuthorizationPolicies());
if (displayNameEntries != null) {
for (DisplayNameEntry displayNameEntry : displayNameEntries) {
result.add(new CustomScript(displayNameEntry.getDn(), displayNameEntry.getInum(), displayNameEntry.getDisplayName()));
}
}
return result;
}
use of org.xdi.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateSectorIdentifierAction method convertToDNsArray.
private String[] convertToDNsArray(List<DisplayNameEntry> clientDisplayNameEntries) {
String[] dns = new String[clientDisplayNameEntries.size()];
int i = 0;
for (DisplayNameEntry displayNameEntry : clientDisplayNameEntries) {
dns[i++] = displayNameEntry.getDn();
}
return dns;
}
Aggregations