Interface Audience
-
@ConsumerType public interface Audience
Represents an interface for the audiences and is intended to be used by UI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAudienceJson()
Returns the audience JSONString
getAudienceType()
Returns the audience type which can be either 'CC', 'CH', 'AT' or 'folder'.String
getClasses()
Returns the applicable CSS classes.String
getConfigPath()
Returns the path to the cloud configuration.Calendar
getLastModified()
Returns the last modified date.String
getLastModifiedBy()
Returns the formatted user name by whom the item has been modified.Calendar
getLastPublished()
Returns the last publication date.String
getLastPublishedBy()
Returns the formatted user name by whom the item has been published.String
getNavigatorHref()
Returns the navigator HREF attribute.String
getPath()
Returns the path.List<String>
getQuickactionsRels()
Returns the quick actions relations.String
getResourceType()
Returns the resource type.String
getTitle()
Returns the audience titleboolean
isEditable()
Returntrue
if resource is editable.boolean
isFolder()
Returnstrue
if resource is of type folder.
-
-
-
Method Detail
-
getTitle
String getTitle()
Returns the audience title- Returns:
- Title of the resource or the resource name if title is not available.
-
getPath
String getPath()
Returns the path.- Returns:
- Path of the resource.
-
getResourceType
String getResourceType()
Returns the resource type.- Returns:
- Resource type of the resource.
-
getLastModified
Calendar getLastModified()
Returns the last modified date.- Returns:
- Last modification date or
null
-
getLastModifiedBy
String getLastModifiedBy()
Returns the formatted user name by whom the item has been modified.- Returns:
- Formatted user name, identifier or
null
-
getLastPublished
Calendar getLastPublished()
Returns the last publication date.- Returns:
- Last publication date or
null
-
getLastPublishedBy
String getLastPublishedBy()
Returns the formatted user name by whom the item has been published.- Returns:
- Formatted user name, identifier or
null
-
getClasses
String getClasses()
Returns the applicable CSS classes.- Returns:
- Space separated CSS classes or an empty string
-
getAudienceType
String getAudienceType()
Returns the audience type which can be either 'CC', 'CH', 'AT' or 'folder'.- Returns:
- Audience type
-
getAudienceJson
String getAudienceJson()
Returns the audience JSON- Returns:
- Audience JSON or
null
-
getConfigPath
String getConfigPath()
Returns the path to the cloud configuration.- Returns:
- Cloud configuration path or
null
-
getNavigatorHref
String getNavigatorHref()
Returns the navigator HREF attribute.- Returns:
- Navigator href attribute or
null
-
getQuickactionsRels
List<String> getQuickactionsRels()
Returns the quick actions relations.- Returns:
- A list of quick actions relations or an empty list
-
isEditable
boolean isEditable()
Returntrue
if resource is editable.- Returns:
true
it resource is editable,false
otherwise
-
isFolder
boolean isFolder()
Returnstrue
if resource is of type folder.- Returns:
true
if resource is a folder,false
otherwise
-
-