Package org.apache.syncope.core.logic
Class RoleLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<RoleTO>
-
- org.apache.syncope.core.logic.RoleLogic
-
public class RoleLogic extends AbstractTransactionalLogic<RoleTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected RoleDataBinderbinderprotected RoleDAOroleDAO-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description RoleLogic(RoleDataBinder binder, RoleDAO roleDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoleTOcreate(RoleTO roleTO)RoleTOdelete(String key)StringgetAnyLayout(String key)List<RoleTO>list()RoleTOread(String key)protected RoleTOresolveReference(Method method, Object... args)voidsetAnyLayout(String key, String consoleLayout)RoleTOupdate(RoleTO roleTO)-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
binder
protected final RoleDataBinder binder
-
roleDAO
protected final RoleDAO roleDAO
-
-
Constructor Detail
-
RoleLogic
public RoleLogic(RoleDataBinder binder, RoleDAO roleDAO)
-
-
Method Detail
-
read
@PreAuthorize("hasRole(\'ROLE_READ\')") @Transactional(readOnly=true) public RoleTO read(String key)
-
list
@PreAuthorize("hasRole(\'ROLE_LIST\')") @Transactional(readOnly=true) public List<RoleTO> list()
-
create
@PreAuthorize("hasRole(\'ROLE_CREATE\')") public RoleTO create(RoleTO roleTO)
-
update
@PreAuthorize("hasRole(\'ROLE_UPDATE\')") public RoleTO update(RoleTO roleTO)
-
delete
@PreAuthorize("hasRole(\'ROLE_DELETE\')") public RoleTO delete(String key)
-
getAnyLayout
@PreAuthorize("isAuthenticated()") public String getAnyLayout(String key)
-
setAnyLayout
@PreAuthorize("hasRole(\'ROLE_UPDATE\')") public void setAnyLayout(String key, String consoleLayout)
-
resolveReference
protected RoleTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReferencein classAbstractLogic<RoleTO>- Throws:
UnresolvedReferenceException
-
-