Package com.redwood.scheduler.api.model
Interface NavigationBarItem
-
- All Superinterfaces:
BusinessKeyObject,Detail,NavigationBarItemComp,Readable,SchedulerEntity,SchedulerEntityComp
public interface NavigationBarItem extends NavigationBarItemComp, Detail, BusinessKeyObject, Readable
An item that is part of the navigation bar A NavigationBarItem is shown in the navigation bar.
-
-
Field Summary
Fields Modifier and Type Field Description static StringOBJECT_TYPEString that will be returned fromSchedulerEntity.getObjectType()for "NavigationBarItem" objects.static StringSEC_RANK_ALLThis rank is made of the following privileges:static StringSEC_RANK_NONEThis rank has no privileges assigned to it.static QueryObjectType<NavigationBarItem>TYPEType that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).-
Fields inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
ACTION_AUDIT, ACTION_EXPORT, ACTION_READ, BEHAVIOR_DEPRECATED, BEHAVIOR_NONE, BEHAVIOR_SYSTEM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NavigationBarItemgetChildNavigationBarItemByNavigationBarDisplayOrder(NavigationBar navigationBar, Long displayOrder)Get the NavigationBarItem by NameParent.RWIterable<NavigationBarItem>getChildNavigationBarItems()Get anRWIterableover a collection ofChildNavigationBarItems, the collection will be ordered by DisplayOrder.LonggetDisplayOrder()Get the value for DisplayOrder.StringgetIconURL()Get the value for IconURL.StringgetLinkData()Get the value for LinkData.StringgetName()Get the value for Name.NavigationBargetNavigationBar()Get the NavigationBar.LonggetNumItems()Get the value for NumItems.NavigationBarItemgetParentNavigationBarItem()Get the ParentNavigationBarItem.StringgetSearchName()Get the value for SearchName.NavigationBarItemTypegetType()Get the value for Type.voidsetDisplayOrder(Long newDisplayOrder)Set the value for DisplayOrder.voidsetIconURL(String newIconURL)Set the value for IconURL.voidsetLinkData(String newLinkData)Set the value for LinkData.voidsetName(String newName)Set the value for Name.voidsetParentNavigationBarItem(NavigationBarItem newParentNavigationBarItem)Set the value for ParentNavigationBarItem.voidsetType(NavigationBarItemType newType)Set the value for Type.-
Methods inherited from interface com.redwood.scheduler.api.model.BusinessKeyObject
getBusinessKey
-
Methods inherited from interface com.redwood.scheduler.api.model.SchedulerEntity
canPerform, createSubjectObjectPrivilegeGrant, deleteObject, getAuditTrail, getAuditTrailSize, getBehavior, getEffectiveBehavior, getErrorNameEN, getErrorNameKey, getLLPVersion, getLOV, getLOVSupport, getObjectType, getParentSchedulerEntities, getRuntime, getSubjectObjectPrivilegeGrantBySubject, getSubjectObjectPrivilegeGrants, getUniqueId, getUrl, getUrl, isCreated, isDeletable, isDeleted, isModifiable, isModified, isSelectVersioned, processRelatedObjects, processRelatedObjects, processRelatedObjects, refreshObject, resetObject, resetObject, resetValuesToDefault, selectForRead
-
-
-
-
Field Detail
-
OBJECT_TYPE
static final String OBJECT_TYPE
String that will be returned fromSchedulerEntity.getObjectType()for "NavigationBarItem" objects.- See Also:
- Constant Field Values
-
TYPE
static final QueryObjectType<NavigationBarItem> TYPE
Type that can be used inSchedulerSession.executeObjectQuery(QueryObjectType, String, Object...).
-
SEC_RANK_NONE
static final String SEC_RANK_NONE
This rank has no privileges assigned to it.- See Also:
- Constant Field Values
-
SEC_RANK_ALL
static final String SEC_RANK_ALL
This rank is made of the following privileges:- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
String getName()
Get the value for Name. (Defines the name of the navigation bar item)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getType
NavigationBarItemType getType()
Get the value for Type. (Defines the type of the navigation bar item) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getIconURL
String getIconURL()
Get the value for IconURL. (Defines the icon URL of the navigation bar item)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getLinkData
String getLinkData()
Get the value for LinkData. (Defines the data for creating the action which will be performed when clicked)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getDisplayOrder
Long getDisplayOrder()
Get the value for DisplayOrder. (Defines the order of the item in the group or the order of the group in the group list) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getSearchName
String getSearchName()
Get the value for SearchName. (The internal name, normalized to allow for convenient database searching.)- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getNumItems
Long getNumItems()
Get the value for NumItems. (Number of child items.) This value is mandatory, and therefore will not benullif this object has been retrieved from the database.- Returns:
- the field
- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setName
void setName(String newName)
Set the value for Name. (Defines the name of the navigation bar item) This value is optional.- Parameters:
newName- the new value for Name.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setType
void setType(NavigationBarItemType newType)
Set the value for Type. (Defines the type of the navigation bar item) This value is mandatory.- Parameters:
newType- the new value for Type. If this isnull, then the object cannot be persisted.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setIconURL
void setIconURL(String newIconURL)
Set the value for IconURL. (Defines the icon URL of the navigation bar item) This value is optional.- Parameters:
newIconURL- the new value for IconURL.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setLinkData
void setLinkData(String newLinkData)
Set the value for LinkData. (Defines the data for creating the action which will be performed when clicked) This value is optional.- Parameters:
newLinkData- the new value for LinkData.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
setDisplayOrder
void setDisplayOrder(Long newDisplayOrder)
Set the value for DisplayOrder. (Defines the order of the item in the group or the order of the group in the group list) This value is mandatory.- Parameters:
newDisplayOrder- the new value for DisplayOrder. If this isnull, then the object cannot be persisted.- Throws:
com.redwood.scheduler.api.exception.ObjectNotAttachedToSessionException- This will be thrown if this method is called while the object is not attached to a session.
-
getNavigationBar
NavigationBar getNavigationBar()
Get the NavigationBar.- Returns:
- NavigationBar
- 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.
-
getParentNavigationBarItem
NavigationBarItem getParentNavigationBarItem()
Get the ParentNavigationBarItem.- Returns:
- ParentNavigationBarItem
- 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.
-
setParentNavigationBarItem
void setParentNavigationBarItem(NavigationBarItem newParentNavigationBarItem)
Set the value for ParentNavigationBarItem. This value is optional.- Parameters:
newParentNavigationBarItem- is the object to set ParentNavigationBarItem to. Parent-child relationship for navigation bar items.
-
getChildNavigationBarItems
RWIterable<NavigationBarItem> getChildNavigationBarItems()
Get anRWIterableover a collection ofChildNavigationBarItems, the collection will be ordered by DisplayOrder. If the collection is empty, an empty iterator will be returned, that is, this method will never returnnull. Parent-child relationship for navigation bar items.- Specified by:
getChildNavigationBarItemsin interfaceNavigationBarItemComp- Returns:
- An
RWIterableover a collection ofNavigationBarItemobjects , the collection will be ordered by DisplayOrder.
-
getChildNavigationBarItemByNavigationBarDisplayOrder
NavigationBarItem getChildNavigationBarItemByNavigationBarDisplayOrder(NavigationBar navigationBar, Long displayOrder)
Get the NavigationBarItem by NameParent.- Parameters:
navigationBar-displayOrder-- Returns:
- the NavigationBarItem, or
nullif it could not be found
-
-