info.magnolia.cms.security.operations
Class ConfiguredOperationPermissionDefinition

java.lang.Object
  extended by info.magnolia.cms.security.operations.ConfiguredOperationPermissionDefinition
All Implemented Interfaces:
OperationPermissionDefinition

public class ConfiguredOperationPermissionDefinition
extends Object
implements OperationPermissionDefinition

Configured definition for actions permissions.


Field Summary
 
Fields inherited from interface info.magnolia.cms.security.operations.OperationPermissionDefinition
ADDIBLE, DELETABLE, EXECUTABLE, MOVEABLE, READABLE, WRITABLE
 
Constructor Summary
ConfiguredOperationPermissionDefinition()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfiguredOperationPermissionDefinition

public ConfiguredOperationPermissionDefinition()
Method Detail

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-2013 Magnolia International Ltd.. All Rights Reserved.