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 ImplementationDAO
implementationDAO
protected Map<String,Command<?>>
perContextCommands
protected javax.validation.Validator
validator
-
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 CommandTO
read(String key)
protected EntityTO
resolveReference(Method method, Object... args)
String
run(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:
resolveReference
in classAbstractLogic<EntityTO>
- Throws:
UnresolvedReferenceException
-
-