Interface NavigationBar

    • Method Detail

      • getOwnerSubject

        Subject getOwnerSubject()
        Get the OwnerSubject.
        Specified by:
        getOwnerSubject in interface HasOwner
        Returns:
        OwnerSubject
        Throws:
        com.redwood.scheduler.api.exception.ObjectDeletedException - If this method is called when the object has been marked for deletion.
        com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException - If this method is called when the object has been removed from it's session.
      • setOwnerSubject

        void setOwnerSubject​(Subject newOwnerSubject)
        Set the value for OwnerSubject. This value is mandatory.
        Parameters:
        newOwnerSubject - is the object to set OwnerSubject to. Who Created this navigation bar If this is null, then the object cannot be persisted.
      • getNavigationBarItemByParentNavigationBarItemDisplayOrder

        NavigationBarItem getNavigationBarItemByParentNavigationBarItemDisplayOrder​(NavigationBarItem parentNavigationBarItem,
                                                                                    Long displayOrder)
        Get the NavigationBarItem by NameParent.
        Parameters:
        parentNavigationBarItem -
        displayOrder -
        Returns:
        the NavigationBarItem, or null if it could not be found
      • checkCreatePrivilege

        RequiredPermission checkCreatePrivilege()
        Check whether or not the create action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkViewPrivilege

        RequiredPermission checkViewPrivilege()
        Check whether or not the view action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkEditPrivilege

        RequiredPermission checkEditPrivilege()
        Check whether or not the edit action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.
      • checkDeletePrivilege

        RequiredPermission checkDeletePrivilege()
        Check whether or not the delete action can be performed on this object.
        Returns:
        a RequiredPermission instance indicating whether the current user has the privilege. To check this, use isAllowed() on the returned permission.