Search in sources :

Example 1 with CachedSubEntries

use of com.sun.identity.sm.CachedSubEntries in project OpenAM by OpenRock.

the class SMSJAXRPCObjectImpl method schemaSubEntries.

/**
     * Returns the sub-entries matching the schema id. Returns a set of SMSEntry
     * objects that are sub-entries for the provided schema id. The paramter
     * <code>numOfEntries</code> identifies the number of entries to return,
     * if <code>0</code> returns all the entries.
     */
public Set schemaSubEntries(String tokenID, String dn, String filter, String sidFilter, int numOfEntries, boolean sortResults, boolean ao) throws SMSException, SSOException {
    initialize();
    if (debug.messageEnabled()) {
        debug.message("SMSJAXRPCObjectImpl::subentries dn: " + dn);
    }
    CachedSubEntries ce = CachedSubEntries.getInstance(getToken(tokenID), dn);
    return (ce.getSchemaSubEntries(getToken(tokenID), filter, sidFilter));
}
Also used : CachedSubEntries(com.sun.identity.sm.CachedSubEntries)

Example 2 with CachedSubEntries

use of com.sun.identity.sm.CachedSubEntries in project OpenAM by OpenRock.

the class SMSJAXRPCObjectImpl method searchSubOrgNames.

/**
     * Returns the suborganization names. Returns a set of SMSEntry objects that
     * are suborganization names. The paramter <code>numOfEntries</code>
     * identifies the number of entries to return, if code>0</code> returns
     * all the entries.
     */
public Set searchSubOrgNames(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder, boolean recursive) throws SMSException, SSOException {
    initialize();
    if (debug.messageEnabled()) {
        debug.message("SMSJAXRPCObjectImpl::searchSubOrgNames dn: " + dn);
    }
    CachedSubEntries ce = CachedSubEntries.getInstance(getToken(tokenID), dn);
    return (ce.searchSubOrgNames(getToken(tokenID), filter, recursive));
}
Also used : CachedSubEntries(com.sun.identity.sm.CachedSubEntries)

Example 3 with CachedSubEntries

use of com.sun.identity.sm.CachedSubEntries in project OpenAM by OpenRock.

the class SMSJAXRPCObjectImpl method searchOrganizationNames.

/**
     * Returns the organization names. Returns a set of SMSEntry objects that
     * are organization names. The paramter <code>numOfEntries</code>
     * identifies the number of entries to return, if <code>0</code> returns
     * all the entries.
     */
public Set searchOrganizationNames(String tokenID, String dn, int numOfEntries, boolean sortResults, boolean ascendingOrder, String serviceName, String attrName, Set values) throws SMSException, SSOException {
    initialize();
    if (debug.messageEnabled()) {
        debug.message("SMSJAXRPCObjectImpl::searchOrganizationNames dn: " + dn);
    }
    CachedSubEntries ce = CachedSubEntries.getInstance(getToken(tokenID), dn);
    return (ce.searchOrgNames(getToken(tokenID), serviceName, attrName, values));
}
Also used : CachedSubEntries(com.sun.identity.sm.CachedSubEntries)

Example 4 with CachedSubEntries

use of com.sun.identity.sm.CachedSubEntries in project OpenAM by OpenRock.

the class ImportServiceConfiguration method isOuServicesExists.

private boolean isOuServicesExists(SSOToken ssoToken, String ouServices) throws SMSException, SSOException {
    CachedSubEntries smsEntry = CachedSubEntries.getInstance(ssoToken, ouServices);
    Set children = smsEntry.getSubEntries(ssoToken, "*");
    return (children != null) && !children.isEmpty();
}
Also used : CachedSubEntries(com.sun.identity.sm.CachedSubEntries) Set(java.util.Set)

Example 5 with CachedSubEntries

use of com.sun.identity.sm.CachedSubEntries in project OpenAM by OpenRock.

the class SMSJAXRPCObjectImpl method subEntries.

/**
     * Returns the sub-entries. Returns a set of SMSEntry objects that are
     * sub-entries. The paramter <code>numOfEntries</code> identifies the
     * number of entries to return, if <code>0</code> returns all the entries.
     */
public Set subEntries(String tokenID, String dn, String filter, int numOfEntries, boolean sortResults, boolean ascendingOrder) throws SMSException, SSOException {
    initialize();
    if (debug.messageEnabled()) {
        debug.message("SMSJAXRPCObjectImpl::subentries dn: " + dn);
    }
    CachedSubEntries ce = CachedSubEntries.getInstance(getToken(tokenID), dn);
    return (ce.getSubEntries(getToken(tokenID), filter));
}
Also used : CachedSubEntries(com.sun.identity.sm.CachedSubEntries)

Aggregations

CachedSubEntries (com.sun.identity.sm.CachedSubEntries)6 Set (java.util.Set)2 SMSEntry (com.sun.identity.sm.SMSEntry)1 ServiceManager (com.sun.identity.sm.ServiceManager)1 Iterator (java.util.Iterator)1