Package org.apache.syncope.core.logic
Class ConnectorLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<ConnInstanceTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<ConnInstanceTO>
org.apache.syncope.core.logic.ConnectorLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ConnInstanceDataBinder
protected final ConnectorManager
protected final ConnIdBundleManager
protected final ConnInstanceDAO
protected final ExternalResourceDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionConnectorLogic
(ConnIdBundleManager connIdBundleManager, ConnectorManager connectorManager, ExternalResourceDAO resourceDAO, ConnInstanceDAO connInstanceDAO, ConnInstanceDataBinder binder) -
Method Summary
Modifier and TypeMethodDescriptionbuildObjectClassInfo
(ConnInstanceTO connInstanceTO, boolean includeSpecial) void
check
(ConnInstanceTO connInstanceTO) create
(ConnInstanceTO connInstanceTO) protected ConnInstance
doSave
(ConnInstance connInstance) getBundles
(String lang) readByResource
(String resourceName, String lang) void
reload()
protected ConnInstanceTO
resolveReference
(Method method, Object... args) protected void
securityChecks
(Set<String> effectiveRealms, String realm, String key) update
(ConnInstanceTO connInstanceTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
connIdBundleManager
-
connectorManager
-
resourceDAO
-
connInstanceDAO
-
binder
-
-
Constructor Details
-
ConnectorLogic
public ConnectorLogic(ConnIdBundleManager connIdBundleManager, ConnectorManager connectorManager, ExternalResourceDAO resourceDAO, ConnInstanceDAO connInstanceDAO, ConnInstanceDataBinder binder)
-
-
Method Details
-
securityChecks
-
doSave
-
create
@PreAuthorize("hasRole(\'CONNECTOR_CREATE\')") public ConnInstanceTO create(ConnInstanceTO connInstanceTO) -
update
@PreAuthorize("hasRole(\'CONNECTOR_UPDATE\')") public ConnInstanceTO update(ConnInstanceTO connInstanceTO) -
delete
-
list
@PreAuthorize("hasRole(\'CONNECTOR_LIST\')") @Transactional(readOnly=true) public List<ConnInstanceTO> list(String lang) -
read
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public ConnInstanceTO read(String key, String lang) -
getBundles
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public List<ConnIdBundle> getBundles(String lang) -
buildObjectClassInfo
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") public List<ConnIdObjectClass> buildObjectClassInfo(ConnInstanceTO connInstanceTO, boolean includeSpecial) -
check
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public void check(ConnInstanceTO connInstanceTO) -
readByResource
@PreAuthorize("hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public ConnInstanceTO readByResource(String resourceName, String lang) -
reload
-
resolveReference
protected ConnInstanceTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<ConnInstanceTO>
- Throws:
UnresolvedReferenceException
-