Package org.apache.syncope.core.logic
Class ResourceLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<ResourceTO>
-
- org.apache.syncope.core.logic.ResourceLogic
-
public class ResourceLogic extends AbstractTransactionalLogic<ResourceTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyTypeDAO
anyTypeDAO
protected AnyUtilsFactory
anyUtilsFactory
protected ResourceDataBinder
binder
protected ConnectorManager
connectorManager
protected ConnInstanceDAO
connInstanceDAO
protected ConnInstanceDataBinder
connInstanceDataBinder
protected MappingManager
mappingManager
protected OutboundMatcher
outboundMatcher
protected ExternalResourceDAO
resourceDAO
protected VirAttrHandler
virAttrHandler
protected VirSchemaDAO
virSchemaDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description ResourceLogic(ExternalResourceDAO resourceDAO, AnyTypeDAO anyTypeDAO, ConnInstanceDAO connInstanceDAO, VirSchemaDAO virSchemaDAO, VirAttrHandler virAttrHandler, ResourceDataBinder binder, ConnInstanceDataBinder connInstanceDataBinder, OutboundMatcher outboundMatcher, MappingManager mappingManager, ConnectorManager connectorManager, AnyUtilsFactory anyUtilsFactory)
-
Method Summary
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
resourceDAO
protected final ExternalResourceDAO resourceDAO
-
anyTypeDAO
protected final AnyTypeDAO anyTypeDAO
-
connInstanceDAO
protected final ConnInstanceDAO connInstanceDAO
-
virSchemaDAO
protected final VirSchemaDAO virSchemaDAO
-
virAttrHandler
protected final VirAttrHandler virAttrHandler
-
binder
protected final ResourceDataBinder binder
-
connInstanceDataBinder
protected final ConnInstanceDataBinder connInstanceDataBinder
-
outboundMatcher
protected final OutboundMatcher outboundMatcher
-
mappingManager
protected final MappingManager mappingManager
-
connectorManager
protected final ConnectorManager connectorManager
-
anyUtilsFactory
protected final AnyUtilsFactory anyUtilsFactory
-
-
Constructor Detail
-
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 Detail
-
securityChecks
protected void securityChecks(Set<String> effectiveRealms, String realm, String key)
-
doSave
protected ExternalResource doSave(ExternalResource resource)
-
create
@PreAuthorize("hasRole(\'RESOURCE_CREATE\')") public ResourceTO create(ResourceTO resourceTO)
-
update
@PreAuthorize("hasRole(\'RESOURCE_UPDATE\')") public ResourceTO update(ResourceTO resourceTO)
-
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
@PreAuthorize("hasRole(\'RESOURCE_DELETE\')") public ResourceTO delete(String key)
-
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
protected Triple<AnyType,ExternalResource,Provision> getProvision(String anyTypeKey, String resourceKey)
-
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<OrderByClause> orderBy)
-
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
-
-