public class IdCachedServicesImpl extends IdServicesImpl implements IdCachedServices, ConfigurationListener
DEBUG, emptyUserIdentities, shutdownCalled, specialIdentities, specialIdentityNames
Modifier and Type | Method and Description |
---|---|
void |
assignService(SSOToken token,
IdType type,
String name,
String serviceName,
SchemaType stype,
Map attrMap,
String amOrgName,
String amsdkDN) |
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).
|
AMIdentity |
create(SSOToken token,
IdType type,
String name,
Map attrMap,
String amOrgName) |
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 . |
Set<String> |
getAssignedServices(SSOToken token,
IdType type,
String name,
Map mapOfServiceNamesAndOCs,
String amOrgName,
String amsdkDN) |
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)
Returns the set of fully qualified names for the identity.
|
protected static IdServices |
getInstance() |
protected static int |
getMaxSize()
Method to get the maximum size of the Cache.
|
Set |
getMembers(SSOToken token,
IdType type,
String name,
String amOrgName,
IdType membersType,
String amsdkDN) |
Set |
getMemberships(SSOToken token,
IdType type,
String name,
IdType membershipType,
String amOrgName,
String amsdkDN) |
Map |
getServiceAttributes(SSOToken token,
IdType type,
String name,
String serviceName,
Set attrNames,
String amOrgName,
String amsdkDN,
boolean isString) |
int |
getSize()
Method to get the current cache size
|
boolean |
isActive(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN) |
boolean |
isExists(SSOToken token,
IdType type,
String name,
String amOrgName) |
void |
modifyMemberShip(SSOToken token,
IdType type,
String name,
Set members,
IdType membersType,
int operation,
String amOrgName) |
void |
modifyService(SSOToken token,
IdType type,
String name,
String serviceName,
SchemaType stype,
Map attrMap,
String amOrgName,
String amsdkDN) |
void |
notifyChanges()
This method will be call if configuration changed.
|
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() |
authenticate, authenticate, changePassword, clearIdRepoPlugins, clearIdRepoPlugins, clearSpecialIdentityCache, getBinaryServiceAttributes, getServiceAttributes, getServiceAttributesAscending, getSpecialIdentities, getSupportedOperations, getSupportedTypes, isShutdownCalled, isSpecialIdentity, reinitialize, reloadIdRepoServiceSchema, unassignService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
authenticate, authenticate, changePassword, clearIdRepoPlugins, clearIdRepoPlugins, getBinaryServiceAttributes, getServiceAttributes, getServiceAttributesAscending, getSpecialIdentities, getSupportedOperations, getSupportedTypes, reinitialize, reloadIdRepoServiceSchema, unassignService
public int getSize()
getSize
in interface IdCachedServices
protected static IdServices getInstance()
protected static int getMaxSize()
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 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 IdServicesImpl
IdRepoException
SSOException
public Set getMembers(SSOToken token, IdType type, String name, String amOrgName, IdType membersType, String amsdkDN) throws IdRepoException, SSOException
getMembers
in interface IdServices
getMembers
in class IdServicesImpl
IdRepoException
SSOException
public Set getMemberships(SSOToken token, IdType type, String name, IdType membershipType, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getMemberships
in interface IdServices
getMemberships
in class IdServicesImpl
IdRepoException
SSOException
public Map getServiceAttributes(SSOToken token, IdType type, String name, String serviceName, Set attrNames, String amOrgName, String amsdkDN, boolean isString) throws IdRepoException, SSOException
getServiceAttributes
in class IdServicesImpl
IdRepoException
SSOException
public void modifyService(SSOToken token, IdType type, String name, String serviceName, SchemaType stype, Map attrMap, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
modifyService
in interface IdServices
modifyService
in class IdServicesImpl
IdRepoException
SSOException
public Set<String> getAssignedServices(SSOToken token, IdType type, String name, Map mapOfServiceNamesAndOCs, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAssignedServices
in interface IdServices
getAssignedServices
in class IdServicesImpl
IdRepoException
SSOException
public void assignService(SSOToken token, IdType type, String name, String serviceName, SchemaType stype, Map attrMap, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
assignService
in interface IdServices
assignService
in class IdServicesImpl
IdRepoException
SSOException
public boolean isExists(SSOToken token, IdType type, String name, String amOrgName) throws SSOException, IdRepoException
isExists
in interface IdServices
isExists
in class IdServicesImpl
SSOException
IdRepoException
public boolean isActive(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN) throws SSOException, IdRepoException
isActive
in interface IdServices
isActive
in class IdServicesImpl
SSOException
IdRepoException
public Map getAttributes(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAttributes
in interface IdServices
getAttributes
in class IdServicesImpl
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 IdServicesImpl
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 IdServicesImpl
IdRepoException
SSOException
public void modifyMemberShip(SSOToken token, IdType type, String name, Set members, IdType membersType, int operation, String amOrgName) throws IdRepoException, SSOException
modifyMemberShip
in interface IdServices
modifyMemberShip
in class IdServicesImpl
IdRepoException
SSOException
public AMIdentity create(SSOToken token, IdType type, String name, Map attrMap, String amOrgName) throws IdRepoException, SSOException
create
in interface IdServices
create
in class IdServicesImpl
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 IdServicesImpl
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 IdServicesImpl
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 IdServicesImpl
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
IdServicesImpl
getFullyQualifiedNames
in interface IdServices
getFullyQualifiedNames
in class IdServicesImpl
token
- SSOToken that can be used by the datastore
to determine the fully qualified nametype
- type of the identityname
- name of the identityIdRepoException
- If there are repository related error conditionsSSOException
- If identity's single sign on token is invalidpublic void notifyChanges()
ConfigurationListener
notifyChanges
in interface ConfigurationListener
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.