public class IdRemoteCachedServicesImpl extends IdRemoteServicesImpl implements IdCachedServices
AMSR_ATTRS, AMSR_CODE, AMSR_RESULTS, DEBUG, SDK_SERVICE
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
This method is used to clear the entire SDK cache in the event that
EventService notifies that all entries have been modified (or should be
marked dirty).
|
void |
delete(SSOToken token,
IdType type,
String name,
String orgName,
String amsdkDN) |
void |
dirtyCache(String dn,
int eventType,
boolean cosType,
boolean aciChange,
Set attrNames)
This method will be called by
AMIdRepoListener . |
Map |
getAttributes(SSOToken token,
IdType type,
String name,
Set attrNames,
String amOrgName,
String amsdkDN,
boolean isStringValues) |
Map |
getAttributes(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN) |
Set |
getFullyQualifiedNames(SSOToken token,
IdType type,
String name,
String orgName) |
protected static IdServices |
getInstance() |
int |
getSize()
Method to get the current cache size
|
boolean |
isExists(SSOToken token,
IdType type,
String name,
String amOrgName) |
void |
removeAttributes(SSOToken token,
IdType type,
String name,
Set attrNames,
String orgName,
String amsdkDN) |
IdSearchResults |
search(SSOToken token,
IdType type,
IdSearchControl ctrl,
String orgName,
CrestQuery crestQuery)
By passing in a CrestQuery object, we now support searching by id (via _queryId) or by filter (_queryFilter).
|
void |
setActiveStatus(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN,
boolean active) |
void |
setAttributes(SSOToken token,
IdType type,
String name,
Map attributes,
boolean isAdd,
String amOrgName,
String amsdkDN,
boolean isString) |
String |
toString() |
assignService, authenticate, authenticate, changePassword, clearIdRepoPlugins, clearIdRepoPlugins, create, getAssignedServices, getBinaryServiceAttributes, getMembers, getMemberships, getServiceAttributes, getServiceAttributesAscending, getSpecialIdentities, getSupportedOperations, getSupportedTypes, isActive, modifyMemberShip, modifyService, processException, reinitialize, reloadIdRepoServiceSchema, unassignService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assignService, authenticate, authenticate, changePassword, clearIdRepoPlugins, clearIdRepoPlugins, create, getAssignedServices, getBinaryServiceAttributes, getMembers, getMemberships, getServiceAttributes, getServiceAttributesAscending, getSpecialIdentities, getSupportedOperations, getSupportedTypes, isActive, modifyMemberShip, modifyService, reinitialize, reloadIdRepoServiceSchema, unassignService
public int getSize()
getSize
in interface IdCachedServices
protected static IdServices getInstance()
public void clearCache()
clearCache
in interface IdCachedServices
public void dirtyCache(String dn, int eventType, boolean cosType, boolean aciChange, Set attrNames)
AMIdRepoListener
. This
method will update the cache by removing all the entires which are
affected as a result of an event notification caused because of
changes/deletions/renaming of entries with and without aci's.
NOTE: The event could have been caused either by changes to an aci entry or a costemplate or a cosdefinition or changes to a normal entry
dirtyCache
in interface IdCachedServices
dn
- name of entity being modifiedeventType
- type of modificationcosType
- true if it is cos related. false otherwiseaciChange
- true if it is aci related. false otherwiseattrNames
- Set of attribute Names which should be removed from the
CacheEntry in the case of COS changepublic boolean isExists(SSOToken token, IdType type, String name, String amOrgName) throws SSOException, IdRepoException
isExists
in interface IdServices
isExists
in class IdRemoteServicesImpl
SSOException
IdRepoException
public Map getAttributes(SSOToken token, IdType type, String name, Set attrNames, String amOrgName, String amsdkDN, boolean isStringValues) throws IdRepoException, SSOException
getAttributes
in interface IdServices
getAttributes
in class IdRemoteServicesImpl
IdRepoException
SSOException
public Map getAttributes(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAttributes
in interface IdServices
getAttributes
in class IdRemoteServicesImpl
IdRepoException
SSOException
public void setActiveStatus(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN, boolean active) throws SSOException, IdRepoException
setActiveStatus
in interface IdServices
setActiveStatus
in class IdRemoteServicesImpl
SSOException
IdRepoException
public void setAttributes(SSOToken token, IdType type, String name, Map attributes, boolean isAdd, String amOrgName, String amsdkDN, boolean isString) throws IdRepoException, SSOException
setAttributes
in interface IdServices
setAttributes
in class IdRemoteServicesImpl
IdRepoException
SSOException
public void delete(SSOToken token, IdType type, String name, String orgName, String amsdkDN) throws IdRepoException, SSOException
delete
in interface IdServices
delete
in class IdRemoteServicesImpl
IdRepoException
SSOException
public void removeAttributes(SSOToken token, IdType type, String name, Set attrNames, String orgName, String amsdkDN) throws IdRepoException, SSOException
removeAttributes
in interface IdServices
removeAttributes
in class IdRemoteServicesImpl
IdRepoException
SSOException
public IdSearchResults search(SSOToken token, IdType type, IdSearchControl ctrl, String orgName, CrestQuery crestQuery) throws IdRepoException, SSOException
IdServices
search
in interface IdServices
search
in class IdRemoteServicesImpl
token
- is the sso token of the person performing this operation.type
- is the identity type of the name parameter.ctrl
- the search controlorgName
- is the orgname.crestQuery
- encapsulates _queryId or _queryFilter from the CREST endpoint.IdRepoException
- if there are repository related error conditions.SSOException
- if user's single sign on token is invalid.public Set getFullyQualifiedNames(SSOToken token, IdType type, String name, String orgName) throws IdRepoException, SSOException
getFullyQualifiedNames
in interface IdServices
getFullyQualifiedNames
in class IdRemoteServicesImpl
IdRepoException
SSOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.