Package org.apache.syncope.core.logic
Class CommandLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<EntityTO>
-
- org.apache.syncope.core.logic.CommandLogic
-
public class CommandLogic extends AbstractLogic<EntityTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected ImplementationDAOimplementationDAOprotected Map<String,Command<?>>perContextCommandsprotected javax.validation.Validatorvalidator-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description CommandLogic(ImplementationDAO implementationDAO, javax.validation.Validator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandTOread(String key)protected EntityTOresolveReference(Method method, Object... args)Stringrun(CommandTO command)Pair<Integer,List<CommandTO>>search(int page, int size, String keyword)-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
implementationDAO
protected final ImplementationDAO implementationDAO
-
validator
protected final javax.validation.Validator validator
-
-
Constructor Detail
-
CommandLogic
public CommandLogic(ImplementationDAO implementationDAO, javax.validation.Validator validator)
-
-
Method Detail
-
search
@PreAuthorize("hasRole(\'IMPLEMENTATION_LIST\')") @Transactional(readOnly=true) public Pair<Integer,List<CommandTO>> search(int page, int size, String keyword)
-
read
@PreAuthorize("hasRole(\'IMPLEMENTATION_READ\')") @Transactional(readOnly=true) public CommandTO read(String key)
-
run
@PreAuthorize("hasRole(\'COMMAND_RUN\')") public String run(CommandTO command)
-
resolveReference
protected EntityTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReferencein classAbstractLogic<EntityTO>- Throws:
UnresolvedReferenceException
-
-