Package org.openiam.esb.core.service
Interface ManagedSystemService
-
- All Superinterfaces:
GetBeansElasticsearchService<ManagedSysDto,ManagedSysEntity,String,ManagedSysSearchBean>
,GetBeansService<ManagedSysDto,ManagedSysEntity,String,ManagedSysSearchBean>
- All Known Implementing Classes:
ManagedSystemServiceImpl
public interface ManagedSystemService extends GetBeansElasticsearchService<ManagedSysDto,ManagedSysEntity,String,ManagedSysSearchBean>
ManagedSystemService interface provides methods for work with Managed System.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AttributeMap
addAttributeMap(AttributeMap attributeMap)
Saves attribute map.StringResponse
cloneManagedSystem(CloneManagedSystemRequest cloneManagedSystemRequest)
void
createDefaultPolicyMapForManagedSystem(String managedSysId)
Creates default Policy Map for managed system with given id.void
deleteAttributesMapList(List<String> ids)
Deletes attribute maps with given ids.List<AuthProviderEntity>
findAuthProvidersByManagedSysId(String managedSysId)
Deprecated.List<ManagedSysDto>
findBeans(SynchronizationRequestSearchBean searchBean)
List<MngSysPolicyDto>
findMngSysPolicies(MngSysPolicySearchBean searchBean, int from, int size)
Returns managed system policies that match search criteria.List<ManagedSysDto>
getAllAutomaticManagedSysDTO()
select all managed systems with isManual flag = false. this is needed to idm for caching managed system dependencies like policy map etc...List<DefaultReconciliationAttributeMap>
getAllDefaultReconAttributeMap()
Returns list of all default reconciliation attribute maps.org.springframework.data.domain.Page<ManagedSysDto>
getAllManagedSysDTO(int from, int size)
Returns list of all Managed Systems.AttributeMap
getAttributeMap(String attributeMapId)
Gets Attribute map that matches given attribute map id.List<AttributeMap>
getAttributeMapsByManagedSysId(String managedSysId)
Returns list of attribute map entities that references managed system with given id.PasswordKeyDTO
getDecryptedPassword(String managedSystemId, String password)
Gets decrypted password for given managed system.ManagedSysDto
getManagedSys(String sysId)
Gets Managed system for given id.ManagedSysEntity
getManagedSysByResource(String id)
Gets managed system for given resource and status.ManagedSysDto
getManagedSysDtoByResource(String resourceId, boolean deep)
Gets Managed System for given resource id.MngSysPolicyDto
getManagedSysPolicyById(String id)
Gets managed system policy by id.int
getMngSysPoliciesCount(MngSysPolicySearchBean searchBean)
Counts number of managed system policies that match given search criteria.List<AttributeMapEntity>
getResourceAttributeMaps(String resourceId)
Deprecated.List<ManagedSystemObjectMatchEntity>
managedSysObjectParam(String managedSystemId, String objectType)
Returns list of managed system object match entities for given criteria.List<ManagedSystemObjectMatch>
managedSysObjectParamDTO(String managedSystemId, String objectType)
Returns Managed System Object Match array for given managed system id and object type.void
removeAttributeMap(String attributeMapId)
Deletes attribute map with given id.void
removeManagedSysById(String id)
Deletes managed system with given id.void
removeMngSysPolicy(String mngSysPolicyId)
Deletes managed system policy with given id.String
save(ManagedSysDto dto)
Saves managed system entity.String
saveManagedSysObjectMatch(ManagedSystemObjectMatch dto)
Saves managed system object match entity.String
saveManagedSystemRequest(ManagedSystemSaveRequest managedSystemCreateRequest)
The special method for creation managed system to support creation default role and copy of policy map based on the provision connector policy map.String
saveMngSysPolicyBean(MngSysPolicyBean mngSysPolicy)
Saves managed system policy bean.AttributeMap
updateAttributeMap(AttributeMap attributeMap)
Updates attribute map.-
Methods inherited from interface org.openiam.esb.core.service.GetBeansElasticsearchService
reindex, reindex, suggestById
-
Methods inherited from interface org.openiam.esb.core.service.GetBeansService
countBeans, find, findBeans, findBeans, get
-
-
-
-
Method Detail
-
getManagedSysPolicyById
MngSysPolicyDto getManagedSysPolicyById(String id)
Gets managed system policy by id.- Parameters:
id
- managed system policy id.- Returns:
- managed system policy that matches given id or null if not found.
-
findMngSysPolicies
List<MngSysPolicyDto> findMngSysPolicies(MngSysPolicySearchBean searchBean, int from, int size)
Returns managed system policies that match search criteria.- Parameters:
searchBean
- search criteria.from
- first item index.size
- number of items to retrieve from first item index.- Returns:
- managed system policies that match search criteria.
-
saveMngSysPolicyBean
String saveMngSysPolicyBean(MngSysPolicyBean mngSysPolicy) throws BasicDataServiceException
Saves managed system policy bean.- Parameters:
mngSysPolicy
- managed system policy bean for saving.- Returns:
- saved managed system policy bean id.
- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
getAttributeMapsByManagedSysId
List<AttributeMap> getAttributeMapsByManagedSysId(String managedSysId)
Returns list of attribute map entities that references managed system with given id.- Parameters:
managedSysId
- managed system id.- Returns:
- list of attribute map entities that references managed system with given id.
-
getMngSysPoliciesCount
int getMngSysPoliciesCount(MngSysPolicySearchBean searchBean)
Counts number of managed system policies that match given search criteria.- Parameters:
searchBean
- search criteria.- Returns:
- number of managed system policies that match given search criteria.
-
getDecryptedPassword
PasswordKeyDTO getDecryptedPassword(String managedSystemId, String password)
Gets decrypted password for given managed system.- Parameters:
managedSystemId
- managed system id.- Returns:
- decrypted password or null if managed system does not have set password.
-
removeManagedSysById
void removeManagedSysById(String id) throws BasicDataServiceException
Deletes managed system with given id.- Parameters:
id
- managed system id.- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
getManagedSysByResource
ManagedSysEntity getManagedSysByResource(String id)
Gets managed system for given resource and status.- Parameters:
id
- resource id- Returns:
- managed system that matches given resource id and has given status or null if not found.
-
getAttributeMap
AttributeMap getAttributeMap(String attributeMapId) throws BasicDataServiceException
Gets Attribute map that matches given attribute map id.- Parameters:
attributeMapId
- attribute map id.- Returns:
- ttribute map that matches given attribute map id or null if not found.
- Throws:
BasicDataServiceException
-
addAttributeMap
AttributeMap addAttributeMap(AttributeMap attributeMap) throws BasicDataServiceException
Saves attribute map.- Parameters:
attributeMap
- attribute map.- Returns:
- attribute map.
- Throws:
BasicDataServiceException
-
updateAttributeMap
AttributeMap updateAttributeMap(AttributeMap attributeMap) throws BasicDataServiceException
Updates attribute map.- Parameters:
attributeMap
- attribute map.- Returns:
- attribute map.
- Throws:
BasicDataServiceException
-
removeAttributeMap
void removeAttributeMap(String attributeMapId) throws BasicDataServiceException
Deletes attribute map with given id.- Parameters:
attributeMapId
- attribute map id.- Throws:
BasicDataServiceException
-
getResourceAttributeMaps
@Deprecated(since="4.2.1.2") List<AttributeMapEntity> getResourceAttributeMaps(String resourceId)
Deprecated.Returns list of attribute map entities for given resource id.- Parameters:
resourceId
- resource id.- Returns:
- list of attribute map entities for given resource id.
-
removeMngSysPolicy
void removeMngSysPolicy(String mngSysPolicyId) throws BasicDataServiceException
Deletes managed system policy with given id.- Parameters:
mngSysPolicyId
- managed system policy id.- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
getAllDefaultReconAttributeMap
List<DefaultReconciliationAttributeMap> getAllDefaultReconAttributeMap()
Returns list of all default reconciliation attribute maps.- Returns:
- list of all default reconciliation attribute maps.
-
managedSysObjectParam
List<ManagedSystemObjectMatchEntity> managedSysObjectParam(String managedSystemId, String objectType)
Returns list of managed system object match entities for given criteria.- Parameters:
managedSystemId
- managed system id.objectType
- object type.- Returns:
- list of managed system object match entities.
-
deleteAttributesMapList
void deleteAttributesMapList(List<String> ids) throws BasicDataServiceException
Deletes attribute maps with given ids.- Parameters:
ids
- ids of attribute maps- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
findAuthProvidersByManagedSysId
@Deprecated(since="4.2.1.2") List<AuthProviderEntity> findAuthProvidersByManagedSysId(String managedSysId)
Deprecated.Returns list of Authentication providers for managed system with given id.- Parameters:
managedSysId
- managed system id.- Returns:
- list of Authentication providers for managed system with given id.
-
save
String save(ManagedSysDto dto) throws BasicDataServiceException
Saves managed system entity.- Parameters:
dto
- managed system entity.- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
saveManagedSystemRequest
String saveManagedSystemRequest(ManagedSystemSaveRequest managedSystemCreateRequest) throws BasicDataServiceException
The special method for creation managed system to support creation default role and copy of policy map based on the provision connector policy map. It will be a COPY, not re-usage of the same Policies.- Parameters:
managedSystemCreateRequest
- - the request information to save managed system- Returns:
- - id of newly created Managed System
- Throws:
BasicDataServiceException
- - in case of any persistence problems
-
saveManagedSysObjectMatch
String saveManagedSysObjectMatch(ManagedSystemObjectMatch dto) throws BasicDataServiceException
Saves managed system object match entity.- Parameters:
dto
- managed system object match entity.- Throws:
BasicDataServiceException
-
getManagedSys
ManagedSysDto getManagedSys(String sysId)
Gets Managed system for given id.- Parameters:
sysId
- managed system id.- Returns:
- managed system with given id or null if not found.
-
managedSysObjectParamDTO
List<ManagedSystemObjectMatch> managedSysObjectParamDTO(String managedSystemId, String objectType) throws BasicDataServiceException
Returns Managed System Object Match array for given managed system id and object type.- Parameters:
managedSystemId
- managed system id.objectType
- object type.- Returns:
- array of Managed System Object Match.
- Throws:
BasicDataServiceException
-
getManagedSysDtoByResource
ManagedSysDto getManagedSysDtoByResource(String resourceId, boolean deep)
Gets Managed System for given resource id.- Parameters:
resourceId
- resource id.deep
- is deep copy.- Returns:
- Managed System.
-
getAllManagedSysDTO
org.springframework.data.domain.Page<ManagedSysDto> getAllManagedSysDTO(int from, int size)
Returns list of all Managed Systems.- Returns:
- list of all Managed Systems.
-
createDefaultPolicyMapForManagedSystem
void createDefaultPolicyMapForManagedSystem(String managedSysId) throws BasicDataServiceException
Creates default Policy Map for managed system with given id.- Parameters:
managedSysId
- managed system id.- Throws:
BasicDataServiceException
- in case of any problems related to creation
-
getAllAutomaticManagedSysDTO
List<ManagedSysDto> getAllAutomaticManagedSysDTO()
select all managed systems with isManual flag = false. this is needed to idm for caching managed system dependencies like policy map etc...- Returns:
- - the list of all managed systems with flag
ManagedSysDto#isManual()
equals false;
-
findBeans
List<ManagedSysDto> findBeans(SynchronizationRequestSearchBean searchBean)
-
cloneManagedSystem
StringResponse cloneManagedSystem(CloneManagedSystemRequest cloneManagedSystemRequest) throws BasicDataServiceException
- Parameters:
cloneManagedSystemRequest
- - request with control information about cloning procedure.- Returns:
- the ID of newly created managed system.
- Throws:
BasicDataServiceException
- in case of any problems related to clon procedure
-
-