public class ConfiguredOperationPermissionDefinition extends Object implements OperationPermissionDefinition
ADDIBLE, DELETABLE, EXECUTABLE, MOVEABLE, READABLE, WRITABLE
Constructor and Description |
---|
ConfiguredOperationPermissionDefinition() |
Modifier and Type | Method and Description |
---|---|
boolean |
canAdd(User user) |
boolean |
canDelete(User user) |
boolean |
canExecute(User user) |
boolean |
canMove(User user) |
boolean |
canRead(User user) |
boolean |
canWrite(User user) |
AccessDefinition |
getAdd() |
AccessDefinition |
getDelete() |
AccessDefinition |
getExecute() |
AccessDefinition |
getMove() |
AccessDefinition |
getRead() |
AccessDefinition |
getWrite() |
protected boolean |
hasAccess(AccessDefinition accessDefinition,
User user) |
void |
setAdd(AccessDefinition add) |
void |
setDelete(AccessDefinition delete) |
void |
setExecute(AccessDefinition execute) |
void |
setMove(AccessDefinition move) |
void |
setRead(AccessDefinition read) |
void |
setWrite(AccessDefinition change) |
public ConfiguredOperationPermissionDefinition()
public AccessDefinition getDelete()
getDelete
in interface OperationPermissionDefinition
public void setDelete(AccessDefinition delete)
public AccessDefinition getWrite()
getWrite
in interface OperationPermissionDefinition
public void setWrite(AccessDefinition change)
public AccessDefinition getRead()
getRead
in interface OperationPermissionDefinition
public void setRead(AccessDefinition read)
public AccessDefinition getMove()
getMove
in interface OperationPermissionDefinition
public void setMove(AccessDefinition move)
public AccessDefinition getAdd()
getAdd
in interface OperationPermissionDefinition
public void setAdd(AccessDefinition add)
public AccessDefinition getExecute()
getExecute
in interface OperationPermissionDefinition
public void setExecute(AccessDefinition execute)
public boolean canRead(User user)
canRead
in interface OperationPermissionDefinition
public boolean canWrite(User user)
canWrite
in interface OperationPermissionDefinition
public boolean canDelete(User user)
canDelete
in interface OperationPermissionDefinition
public boolean canExecute(User user)
canExecute
in interface OperationPermissionDefinition
public boolean canMove(User user)
canMove
in interface OperationPermissionDefinition
public boolean canAdd(User user)
canAdd
in interface OperationPermissionDefinition
protected boolean hasAccess(AccessDefinition accessDefinition, User user)
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.