Class ApplicationNavigationItem
java.lang.Object
com.appiancorp.suiteapi.applications.ApplicationNavigationItem
- All Implemented Interfaces:
Cloneable
Represents each item in the navigation definition of the application.
-
Constructor Summary
ConstructorDescriptionApplicationNavigationItem
(String displayName, String pageUuid, String urlIdentifier) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Retrieves the display name of the navigation item.Retrieves the UUID of the page targeted by the navigation item.Retrieves the URL identifier which will allow direct access to the navigation item.void
setDisplayName
(String displayName) Sets the display name of the navigation item.void
setPageUuid
(String pageUuid) Sets the UUID of the page targeted by the navigation item.void
setUrlIdentifier
(String urlIdentifier) Sets the URL identifier which will allow direct access to the navigation item.void
validate()
Validates that thisApplicationNavigationItem
is correct.
-
Constructor Details
-
ApplicationNavigationItem
public ApplicationNavigationItem() -
ApplicationNavigationItem
-
-
Method Details
-
clone
-
validate
Validates that thisApplicationNavigationItem
is correct. A valid Item consists of a Non-empty displayName and pageUuid, and a valid urlIdentifier (only letters, numbers, dashes, underscores, less than 256 characters).- Throws:
InvalidNavigationItemException
- If any of the checks is not met.
-
setDisplayName
Sets the display name of the navigation item.- Parameters:
displayName
-
-
getDisplayName
Retrieves the display name of the navigation item.- Returns:
- the display name for this navigation element
-
setPageUuid
Sets the UUID of the page targeted by the navigation item.- Parameters:
pageUuid
-
-
getPageUuid
@ConvertWith(com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public String getPageUuid()Retrieves the UUID of the page targeted by the navigation item.- Returns:
- the UUID
-
setUrlIdentifier
Sets the URL identifier which will allow direct access to the navigation item.- Parameters:
urlIdentifier
- The URL identifier
-
getUrlIdentifier
Retrieves the URL identifier which will allow direct access to the navigation item.- Returns:
- the URL identifier of this navigation item
-