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));
}
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));
}
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));
}
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();
}
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));
}
Aggregations