Package org.apache.syncope.core.logic
Class ResourceLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<ResourceTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<ResourceTO>
org.apache.syncope.core.logic.ResourceLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnyTypeDAO
protected final AnyUtilsFactory
protected final ResourceDataBinder
protected final ConnectorManager
protected final ConnInstanceDAO
protected final ConnInstanceDataBinder
protected final MappingManager
protected final OutboundMatcher
protected final ExternalResourceDAO
protected final VirAttrHandler
protected final VirSchemaDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionResourceLogic
(ExternalResourceDAO resourceDAO, AnyTypeDAO anyTypeDAO, ConnInstanceDAO connInstanceDAO, VirSchemaDAO virSchemaDAO, VirAttrHandler virAttrHandler, ResourceDataBinder binder, ConnInstanceDataBinder connInstanceDataBinder, OutboundMatcher outboundMatcher, MappingManager mappingManager, ConnectorManager connectorManager, AnyUtilsFactory anyUtilsFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
check
(ResourceTO resourceTO) create
(ResourceTO resourceTO) protected ExternalResource
doSave
(ExternalResource resource) getConnObjectKeyValue
(String key, String anyTypeKey, String anyKey) protected Triple
<AnyType, ExternalResource, Provision> getProvision
(String anyTypeKey, String resourceKey) list()
readConnObjectByAnyKey
(String key, String anyTypeKey, String anyKey) readConnObjectByConnObjectKeyValue
(String key, String anyTypeKey, String connObjectKeyValue) void
removeSyncToken
(String key, String anyTypeKey) protected ResourceTO
resolveReference
(Method method, Object... args) searchConnObjects
(Filter filter, Set<String> moreAttrsToGet, String key, String anyTypeKey, int size, String pagedResultsCookie, List<org.springframework.data.domain.Sort.Order> sort) protected void
securityChecks
(Set<String> effectiveRealms, String realm, String key) void
setLatestSyncToken
(String key, String anyTypeKey) update
(ResourceTO resourceTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
resourceDAO
-
anyTypeDAO
-
connInstanceDAO
-
virSchemaDAO
-
virAttrHandler
-
binder
-
connInstanceDataBinder
-
outboundMatcher
-
mappingManager
-
connectorManager
-
anyUtilsFactory
-
-
Constructor Details
-
ResourceLogic
public ResourceLogic(ExternalResourceDAO resourceDAO, AnyTypeDAO anyTypeDAO, ConnInstanceDAO connInstanceDAO, VirSchemaDAO virSchemaDAO, VirAttrHandler virAttrHandler, ResourceDataBinder binder, ConnInstanceDataBinder connInstanceDataBinder, OutboundMatcher outboundMatcher, MappingManager mappingManager, ConnectorManager connectorManager, AnyUtilsFactory anyUtilsFactory)
-
-
Method Details
-
securityChecks
-
doSave
-
create
-
update
-
setLatestSyncToken
@PreAuthorize("hasRole(\'RESOURCE_UPDATE\')") public void setLatestSyncToken(String key, String anyTypeKey) -
removeSyncToken
@PreAuthorize("hasRole(\'RESOURCE_UPDATE\')") public void removeSyncToken(String key, String anyTypeKey) -
delete
-
read
@PreAuthorize("hasRole(\'RESOURCE_READ\')") @Transactional(readOnly=true) public ResourceTO read(String key) -
list
@PreAuthorize("hasRole(\'RESOURCE_LIST\')") @Transactional(readOnly=true) public List<ResourceTO> list() -
getProvision
-
getConnObjectKeyValue
@PreAuthorize("hasRole(\'RESOURCE_GET_CONNOBJECT\')") @Transactional(readOnly=true) public String getConnObjectKeyValue(String key, String anyTypeKey, String anyKey) -
readConnObjectByAnyKey
@PreAuthorize("hasRole(\'RESOURCE_GET_CONNOBJECT\')") @Transactional(readOnly=true) public ConnObject readConnObjectByAnyKey(String key, String anyTypeKey, String anyKey) -
readConnObjectByConnObjectKeyValue
@PreAuthorize("hasRole(\'RESOURCE_GET_CONNOBJECT\')") @Transactional(readOnly=true) public ConnObject readConnObjectByConnObjectKeyValue(String key, String anyTypeKey, String connObjectKeyValue) -
searchConnObjects
@PreAuthorize("hasRole(\'RESOURCE_LIST_CONNOBJECT\')") @Transactional(readOnly=true) public Pair<SearchResult,List<ConnObject>> searchConnObjects(Filter filter, Set<String> moreAttrsToGet, String key, String anyTypeKey, int size, String pagedResultsCookie, List<org.springframework.data.domain.Sort.Order> sort) -
check
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public void check(ResourceTO resourceTO) -
resolveReference
protected ResourceTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<ResourceTO>
- Throws:
UnresolvedReferenceException
-