abstract class BasicChildItem extends BasicItem
BasicItemparent item. This class implements the
initPermissions(int, int)method and sets the permissions for the child item based on the permissions for type of the parent item.
If the logged in user has read/use permission for the parent, READ/USE permission is granted. If the logged in user has write permission for the parent, WRITE, DELETE and CREATE permission is granted.
This class should only be used if the parent item itself hasn't
initPermissions method, since that method
is never called.
- Last modified
- $Date: 2015-04-17 14:02:22 +0200 (fr, 17 apr 2015) $
Constructors Constructor Description
Modifier and Type Method Description
(package private) abstract Item
()Get the type of item that is the parent of this item.
(package private) Permission
()Get the permission that is required on the parent item that gives write, delete and create permission on the child item.
(package private) PluginPermission
(package private) void
(int granted, int denied)If the logged in user has read permission for the parent, read permission is granted.
Methods inherited from class net.sf.basedb.core.BasicItem
addAnnotatableParents, addUsingItems, addUsingItems, breakCircularReferences, checkBatchAnnotatableUsage, checkPermission, equals, getBasicData, getData, getDbControl, getId, getPermissions, getSessionControl, getUsingItems, getVersion, hashCode, hasPermission, isDetached, isInDatabase, isUsed, onAfterCommit, onAfterInsert, onBeforeCommit, onRollback, setDbControl, setProjectDefaults, toString, validate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
initPermissionsvoid initPermissions(int granted, int denied) throws BaseExceptionIf the logged in user has read permission for the parent, read permission is granted. If the logged in user has the permission returned by the
getPermissionForWriteDeleteAndCreate()method for the parent, WRITE, DELETE and CREATE permission is granted.
getPermissionForWriteDeleteAndCreatePermission getPermissionForWriteDeleteAndCreate()Get the permission that is required on the parent item that gives write, delete and create permission on the child item. The defult permission is write.
getParentTypeabstract Item getParentType()Get the type of item that is the parent of this item.
- The item type of the parent item