Package org.apache.syncope.core.logic
Class AnyObjectLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<A>
-
- org.apache.syncope.core.logic.AbstractResourceAssociator<TO>
-
- org.apache.syncope.core.logic.AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
- org.apache.syncope.core.logic.AnyObjectLogic
-
public class AnyObjectLogic extends AbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
Note that this controller does not extendAbstractTransactionalLogic
, hence does not provide any Spring's Transactional logic at class level.
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyObjectDAO
anyObjectDAO
protected AnyObjectDataBinder
binder
protected AnyObjectProvisioningManager
provisioningManager
protected AnySearchDAO
searchDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
anyTypeDAO, perContextActions, realmDAO, REST_CONTEXT, templateUtils
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description AnyObjectLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, AnyObjectDAO anyObjectDAO, AnySearchDAO searchDAO, AnyObjectDataBinder binder, AnyObjectProvisioningManager provisioningManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningResult<AnyObjectTO>
assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
ProvisioningResult<AnyObjectTO>
create(AnyObjectCR createReq, boolean nullPriorityAsync)
ProvisioningResult<AnyObjectTO>
delete(String key, boolean nullPriorityAsync)
ProvisioningResult<AnyObjectTO>
deprovision(String key, List<String> resources, boolean nullPriorityAsync)
protected Set<String>
groups(AnyObjectTO anyObjectTO)
AnyObjectTO
link(String key, Collection<String> resources)
ProvisioningResult<AnyObjectTO>
provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
AnyObjectTO
read(String key)
AnyObjectTO
read(String type, String name)
protected AnyObjectTO
resolveReference(Method method, Object... args)
Pair<Integer,List<AnyObjectTO>>
search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
ProvisioningResult<AnyObjectTO>
unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
AnyObjectTO
unlink(String key, Collection<String> resources)
ProvisioningResult<AnyObjectTO>
update(AnyObjectUR req, boolean nullPriorityAsync)
protected void
updateChecks(String key)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
anyObjectDAO
protected final AnyObjectDAO anyObjectDAO
-
searchDAO
protected final AnySearchDAO searchDAO
-
binder
protected final AnyObjectDataBinder binder
-
provisioningManager
protected final AnyObjectProvisioningManager provisioningManager
-
-
Constructor Detail
-
AnyObjectLogic
public AnyObjectLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, AnyObjectDAO anyObjectDAO, AnySearchDAO searchDAO, AnyObjectDataBinder binder, AnyObjectProvisioningManager provisioningManager)
-
-
Method Detail
-
read
@Transactional(readOnly=true) public AnyObjectTO read(String key)
- Specified by:
read
in classAbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
read
@Transactional(readOnly=true) public AnyObjectTO read(String type, String name)
-
search
@Transactional(readOnly=true) public Pair<Integer,List<AnyObjectTO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
- Specified by:
search
in classAbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
create
public ProvisioningResult<AnyObjectTO> create(AnyObjectCR createReq, boolean nullPriorityAsync)
-
groups
protected Set<String> groups(AnyObjectTO anyObjectTO)
-
update
public ProvisioningResult<AnyObjectTO> update(AnyObjectUR req, boolean nullPriorityAsync)
- Specified by:
update
in classAbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
delete
public ProvisioningResult<AnyObjectTO> delete(String key, boolean nullPriorityAsync)
- Specified by:
delete
in classAbstractAnyLogic<AnyObjectTO,AnyObjectCR,AnyObjectUR>
-
updateChecks
protected void updateChecks(String key)
-
unlink
public AnyObjectTO unlink(String key, Collection<String> resources)
- Specified by:
unlink
in classAbstractResourceAssociator<AnyObjectTO>
-
link
public AnyObjectTO link(String key, Collection<String> resources)
- Specified by:
link
in classAbstractResourceAssociator<AnyObjectTO>
-
unassign
public ProvisioningResult<AnyObjectTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
- Specified by:
unassign
in classAbstractResourceAssociator<AnyObjectTO>
-
assign
public ProvisioningResult<AnyObjectTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
- Specified by:
assign
in classAbstractResourceAssociator<AnyObjectTO>
-
deprovision
public ProvisioningResult<AnyObjectTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync)
- Specified by:
deprovision
in classAbstractResourceAssociator<AnyObjectTO>
-
provision
public ProvisioningResult<AnyObjectTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
- Specified by:
provision
in classAbstractResourceAssociator<AnyObjectTO>
-
resolveReference
protected AnyObjectTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<AnyObjectTO>
- Throws:
UnresolvedReferenceException
-
-