public class BrowseEntity extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BrowseEntity.PrefixComparator |
static class |
BrowseEntity.TitleComparator |
| Constructor and Description |
|---|
BrowseEntity(String prefix)
Minimal constructor
|
BrowseEntity(String prefix,
String title,
String description)
Constructor for types with no children or access provider
|
BrowseEntity(String prefix,
String title,
String description,
String[] nestedPrefixes,
String[] entityViewKeys)
Constructor for complete types with most optional information,
all optionals can be null
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityViewKeys(String entityViewKey)
Adds a view key which is known to be supported by this entity types access provider
|
void |
addNestedPrefix(String prefix)
Adds a nested prefix which is a child of this entity type
|
boolean |
equals(Object obj) |
String |
getDescription() |
List<String> |
getEntityAccessViews()
Get the list of entity access views (e.g.
|
List<String> |
getNestedPrefixes()
Gets all the nested children prefixes for this entity type (if there are any)
|
String |
getParentPrefix() |
String |
getPrefix() |
String |
getTitle() |
int |
hashCode() |
void |
setEntityViewKeys(String[] entityViewKeys) |
void |
setNestedPrefixes(String[] nestedPrefixes) |
void |
setParentPrefix(String parentPrefix) |
void |
setTitleDesc(String title,
String description) |
String |
toString() |
public BrowseEntity(String prefix)
prefix - an entity prefixpublic BrowseEntity(String prefix, String title, String description)
prefix - an entity prefixtitle - a display titledescription - (optional) display descriptionpublic BrowseEntity(String prefix, String title, String description, String[] nestedPrefixes, String[] entityViewKeys)
prefix - an entity prefixtitle - a display titledescription - (optional) display descriptionnestedPrefixes - (optional) the list of nested (children) prefixesentityViewKeys - (optional) the list of handled views for the access providerpublic void setNestedPrefixes(String[] nestedPrefixes)
public void setEntityViewKeys(String[] entityViewKeys)
public void addNestedPrefix(String prefix)
prefix - an entity prefixpublic void addEntityViewKeys(String entityViewKey)
entityViewKey - an entity view key (e.g. EntityView.VIEW_NEW)public void setParentPrefix(String parentPrefix)
public String getPrefix()
public String getTitle()
public String getDescription()
public String getParentPrefix()
public List<String> getNestedPrefixes()
public List<String> getEntityAccessViews()
EntityView.VIEW_NEW) that are known to be handled by this entity typeCopyright © 2007–2019 Sakai Project. All rights reserved.