Package org.apache.syncope.core.logic
Class ApplicationLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<ApplicationTO>
-
- org.apache.syncope.core.logic.ApplicationLogic
-
public class ApplicationLogic extends AbstractTransactionalLogic<ApplicationTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationDAO
applicationDAO
protected ApplicationDataBinder
binder
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description ApplicationLogic(ApplicationDataBinder binder, ApplicationDAO applicationDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationTO
create(ApplicationTO applicationTO)
ApplicationTO
delete(String key)
List<ApplicationTO>
list()
ApplicationTO
read(String key)
PrivilegeTO
readPrivilege(String key)
protected ApplicationTO
resolveReference(Method method, Object... args)
ApplicationTO
update(ApplicationTO applicationTO)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
binder
protected final ApplicationDataBinder binder
-
applicationDAO
protected final ApplicationDAO applicationDAO
-
-
Constructor Detail
-
ApplicationLogic
public ApplicationLogic(ApplicationDataBinder binder, ApplicationDAO applicationDAO)
-
-
Method Detail
-
read
@PreAuthorize("hasRole(\'APPLICATION_READ\')") @Transactional(readOnly=true) public ApplicationTO read(String key)
-
readPrivilege
@PreAuthorize("hasRole(\'APPLICATION_READ\')") @Transactional(readOnly=true) public PrivilegeTO readPrivilege(String key)
-
list
@PreAuthorize("hasRole(\'APPLICATION_LIST\')") @Transactional(readOnly=true) public List<ApplicationTO> list()
-
create
@PreAuthorize("hasRole(\'APPLICATION_CREATE\')") public ApplicationTO create(ApplicationTO applicationTO)
-
update
@PreAuthorize("hasRole(\'APPLICATION_UPDATE\')") public ApplicationTO update(ApplicationTO applicationTO)
-
delete
@PreAuthorize("hasRole(\'APPLICATION_DELETE\')") public ApplicationTO delete(String key)
-
resolveReference
protected ApplicationTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<ApplicationTO>
- Throws:
UnresolvedReferenceException
-
-