use of org.gluu.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateScopeAction method getInitialDynamicScripts.
private List<CustomScript> getInitialDynamicScripts() {
List<CustomScript> result = new ArrayList<CustomScript>();
if ((this.scope.getDynamicScopeScripts() == null) || (this.scope.getDynamicScopeScripts().size() == 0)) {
return result;
}
List<DisplayNameEntry> displayNameEntries = lookupService.getDisplayNameEntries(customScriptService.baseDn(), this.scope.getDynamicScopeScripts());
if (displayNameEntries != null) {
for (DisplayNameEntry displayNameEntry : displayNameEntries) {
result.add(new CustomScript(displayNameEntry.getDn(), displayNameEntry.getInum(), displayNameEntry.getDisplayName()));
}
}
return result;
}
use of org.gluu.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.gluu.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateResourceAction method addScope.
public void addScope(Scope scope) {
DisplayNameEntry oneScope = new DisplayNameEntry(scope.getDn(), scope.getId(), scope.getDisplayName());
this.scopes.add(oneScope);
}
use of org.gluu.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateResourceAction method add.
private String add() {
this.resource = new UmaResource();
this.scopes = new ArrayList<DisplayNameEntry>();
this.clients = new ArrayList<DisplayNameEntry>();
this.clientList = new ArrayList<OxAuthClient>();
this.resources = new ArrayList<String>();
return OxTrustConstants.RESULT_SUCCESS;
}
use of org.gluu.model.DisplayNameEntry in project oxTrust by GluuFederation.
the class UpdateUmaScopeAction method getInitialAuthorizationPolicies.
private List<CustomScript> getInitialAuthorizationPolicies() {
List<CustomScript> result = new ArrayList<CustomScript>();
if ((this.umaScope.getUmaAuthorizationPolicies() == null) || (this.umaScope.getUmaAuthorizationPolicies().size() == 0)) {
return result;
}
List<DisplayNameEntry> displayNameEntries = lookupService.getDisplayNameEntries(customScriptService.baseDn(), this.umaScope.getUmaAuthorizationPolicies());
if (displayNameEntries != null) {
for (DisplayNameEntry displayNameEntry : displayNameEntries) {
result.add(new CustomScript(displayNameEntry.getDn(), displayNameEntry.getInum(), displayNameEntry.getDisplayName()));
}
}
return result;
}
Aggregations