info.magnolia.cms.security.operations
Class ConfiguredOperationPermissionDefinition
java.lang.Object
info.magnolia.cms.security.operations.ConfiguredOperationPermissionDefinition
- All Implemented Interfaces:
- OperationPermissionDefinition
public class ConfiguredOperationPermissionDefinition
- extends Object
- implements OperationPermissionDefinition
Configured definition for actions permissions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfiguredOperationPermissionDefinition
public ConfiguredOperationPermissionDefinition()
getDelete
public AccessDefinition getDelete()
- Specified by:
getDelete
in interface OperationPermissionDefinition
setDelete
public void setDelete(AccessDefinition delete)
getWrite
public AccessDefinition getWrite()
- Specified by:
getWrite
in interface OperationPermissionDefinition
setWrite
public void setWrite(AccessDefinition change)
getRead
public AccessDefinition getRead()
- Specified by:
getRead
in interface OperationPermissionDefinition
setRead
public void setRead(AccessDefinition read)
getMove
public AccessDefinition getMove()
- Specified by:
getMove
in interface OperationPermissionDefinition
setMove
public void setMove(AccessDefinition move)
getAdd
public AccessDefinition getAdd()
- Specified by:
getAdd
in interface OperationPermissionDefinition
setAdd
public void setAdd(AccessDefinition add)
getExecute
public AccessDefinition getExecute()
- Specified by:
getExecute
in interface OperationPermissionDefinition
setExecute
public void setExecute(AccessDefinition execute)
canRead
public boolean canRead(User user)
- Specified by:
canRead
in interface OperationPermissionDefinition
canWrite
public boolean canWrite(User user)
- Specified by:
canWrite
in interface OperationPermissionDefinition
canDelete
public boolean canDelete(User user)
- Specified by:
canDelete
in interface OperationPermissionDefinition
canExecute
public boolean canExecute(User user)
- Specified by:
canExecute
in interface OperationPermissionDefinition
canMove
public boolean canMove(User user)
- Specified by:
canMove
in interface OperationPermissionDefinition
canAdd
public boolean canAdd(User user)
- Specified by:
canAdd
in interface OperationPermissionDefinition
hasAccess
protected boolean hasAccess(AccessDefinition accessDefinition,
User user)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.