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 RoleDataBinder
binder
protected RoleDAO
roleDAO
-
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 RoleTO
create(RoleTO roleTO)
RoleTO
delete(String key)
String
getAnyLayout(String key)
List<RoleTO>
list()
RoleTO
read(String key)
protected RoleTO
resolveReference(Method method, Object... args)
void
setAnyLayout(String key, String consoleLayout)
RoleTO
update(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:
resolveReference
in classAbstractLogic<RoleTO>
- Throws:
UnresolvedReferenceException
-
-