Class ChildItem

    • Constructor Detail

    • Method Detail

      • initPermissions

        void initPermissions​(int granted,
                             int denied)
                      throws BaseException
        If 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.
        Overrides:
        initPermissions in class BasicItem
        Parameters:
        granted - Permissions that have been granted by the subclass
        denied - Permissions that have been denied by the subclass
        Throws:
        BaseException - If the permissions couldn't be initialised
      • getPermissionForWriteDeleteAndCreate

        Permission 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.
      • getPermissionForUse

        Permission getPermissionForUse()
        Get the permission that is required on the parent item that gives use permission on the child item. The defult permission is use.
        Since:
        3.3.1
      • getSharedParent

        abstract SharedData getSharedParent()
        Get the shareable parent item of this child item. This is used by the initPermissions(int, int) method to calculate the logged in user's permissions for the child item.
        Returns:
        The parent item