Search in sources :

Example 1 with SimpleBranch

use of org.gluu.persist.model.base.SimpleBranch in project oxTrust by GluuFederation.

the class ResourceSetService method addBranch.

public void addBranch() {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("resources");
    branch.setDn(getDnForResource(null));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 2 with SimpleBranch

use of org.gluu.persist.model.base.SimpleBranch in project oxTrust by GluuFederation.

the class ScopeDescriptionService method addBranch.

public void addBranch() {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("scopes");
    branch.setDn(getDnForScopeDescription(null));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 3 with SimpleBranch

use of org.gluu.persist.model.base.SimpleBranch in project oxCore by GluuFederation.

the class MetricService method addBranch.

public void addBranch(String branchDn, String ou) {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName(ou);
    branch.setDn(branchDn);
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 4 with SimpleBranch

use of org.gluu.persist.model.base.SimpleBranch in project oxAuth by GluuFederation.

the class UmaResourceService method addBranch.

public void addBranch() {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("resources");
    branch.setDn(getDnForResource(null));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 5 with SimpleBranch

use of org.gluu.persist.model.base.SimpleBranch in project oxAuth by GluuFederation.

the class UmaPermissionService method addBranch.

public void addBranch(String clientDn) {
    final SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName(ORGUNIT_OF_RESOURCE_PERMISSION);
    branch.setDn(getBranchDn(clientDn));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Aggregations

SimpleBranch (org.gluu.persist.model.base.SimpleBranch)20 EntryPersistenceException (org.gluu.persist.exception.EntryPersistenceException)2 DefaultBatchOperation (org.gluu.persist.model.DefaultBatchOperation)2 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 HashSet (java.util.HashSet)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 MetricEntry (org.gluu.model.metric.ldap.MetricEntry)1 DuplicateEntryException (org.gluu.persist.exception.operation.DuplicateEntryException)1 MetricEntry (org.xdi.model.metric.ldap.MetricEntry)1