Package org.apache.syncope.core.logic
Class AbstractAnyLogic<TO extends AnyTO,C extends AnyCR,U extends AnyUR>
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<A>
-
- org.apache.syncope.core.logic.AbstractResourceAssociator<TO>
-
- org.apache.syncope.core.logic.AbstractAnyLogic<TO,C,U>
-
- Direct Known Subclasses:
AnyObjectLogic
,GroupLogic
,UserLogic
public abstract class AbstractAnyLogic<TO extends AnyTO,C extends AnyCR,U extends AnyUR> extends AbstractResourceAssociator<TO>
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyTypeDAO
anyTypeDAO
protected Map<String,LogicActions>
perContextActions
protected RealmDAO
realmDAO
protected static String
REST_CONTEXT
protected TemplateUtils
templateUtils
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description AbstractAnyLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ProvisioningResult<TO>
afterCreate(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
protected ProvisioningResult<TO>
afterDelete(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
protected ProvisioningResult<TO>
afterUpdate(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
protected Pair<C,List<LogicActions>>
beforeCreate(C input)
protected Pair<TO,List<LogicActions>>
beforeDelete(TO input)
protected Pair<U,List<LogicActions>>
beforeUpdate(U input, String realmPath)
abstract ProvisioningResult<TO>
delete(String key, boolean nullPriorityAsync)
protected List<LogicActions>
getActions(Realm realm)
abstract TO
read(String key)
abstract Pair<Integer,List<TO>>
search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
abstract ProvisioningResult<TO>
update(U updateReq, boolean nullPriorityAsync)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractResourceAssociator
assign, deprovision, link, provision, unassign, unlink
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference, resolveReference
-
-
-
-
Field Detail
-
REST_CONTEXT
protected static final String REST_CONTEXT
- See Also:
- Constant Field Values
-
realmDAO
protected final RealmDAO realmDAO
-
anyTypeDAO
protected final AnyTypeDAO anyTypeDAO
-
templateUtils
protected final TemplateUtils templateUtils
-
perContextActions
protected final Map<String,LogicActions> perContextActions
-
-
Constructor Detail
-
AbstractAnyLogic
public AbstractAnyLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils)
-
-
Method Detail
-
getActions
protected List<LogicActions> getActions(Realm realm)
-
beforeCreate
protected Pair<C,List<LogicActions>> beforeCreate(C input)
-
beforeDelete
protected Pair<TO,List<LogicActions>> beforeDelete(TO input)
-
afterCreate
protected ProvisioningResult<TO> afterCreate(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
-
afterUpdate
protected ProvisioningResult<TO> afterUpdate(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
-
afterDelete
protected ProvisioningResult<TO> afterDelete(TO input, List<PropagationStatus> statuses, List<LogicActions> actions)
-
search
public abstract Pair<Integer,List<TO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
-
update
public abstract ProvisioningResult<TO> update(U updateReq, boolean nullPriorityAsync)
-
delete
public abstract ProvisioningResult<TO> delete(String key, boolean nullPriorityAsync)
-
-