Search in sources :

Example 6 with SimpleBranch

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

the class UmaRptService method addBranch.

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

Example 7 with SimpleBranch

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

the class DeviceRegistrationService method addBranch.

public void addBranch(final String userInum) {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("fido");
    branch.setDn(getBaseDnForU2fUserDevices(userInum));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 8 with SimpleBranch

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

the class PairwiseIdentifierService method addBranch.

public void addBranch(final String userInum) {
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("pairwiseIdentifiers");
    branch.setDn(getBaseDnForPairwiseIdentifiers(userInum));
    ldapEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 9 with SimpleBranch

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

the class ResourceSetService method addBranch.

public void addBranch() {
    String branchDn = getDnForResource(null);
    if (!persistenceEntryManager.hasBranchesSupport(branchDn)) {
        return;
    }
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("resources");
    branch.setDn(branchDn);
    persistenceEntryManager.persist(branch);
}
Also used : SimpleBranch(org.gluu.persist.model.base.SimpleBranch)

Example 10 with SimpleBranch

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

the class UmaScopeService method addBranch.

public void addBranch() {
    String branchDn = getDnForScope(null);
    if (!persistenceEntryManager.hasBranchesSupport(branchDn)) {
        return;
    }
    SimpleBranch branch = new SimpleBranch();
    branch.setOrganizationalUnitName("scopes");
    branch.setDn(branchDn);
    persistenceEntryManager.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