Public Member Functions | |
IElephantEntity | getController (String entityPath) |
IElephantEntity | getController (Object entity) |
boolean | isEmpty () |
String | getTreeLabel () |
String | getStringId () |
Object | getEntity () |
String | getName () |
String | getLabel () |
String | getNameOrLabel () |
String | getDescription () |
Object | getLabelCtrl () |
String | getImage () |
String | getRoot () |
String | getPath () |
String | getHierarchicalPath () |
IElephantEntity | getParent () |
List< IElephantEntity > | getChildren () |
String | getExtendedPath () |
File | getFile () |
boolean | showPath () |
boolean | showEntity () |
boolean | canEdit (IContact contact) |
boolean | canPublish (IContact contact) |
Collection< String > | getAllowedRoots () |
IElephantSendable | getSendable () |
Collection | getEntitites (String search, int maxResults) |
Collection | getEntitites (String root, String search, int maxResults) |
Collection | getEntitites (String search, int maxResults, KeyValueMap kvm) |
Collection | getEntitites (String root, String search, int maxResults, KeyValueMap kvm) |
Object | configureCtrl (Object ctrl, IContact contact) |
boolean | canShowInContext (IContact contact, Object relatedEntity) |
Collection< Object > | getRelatedByRole (EntityRole role, IContact contact) |
boolean | hasRelatedRole (EntityRole role, IContact contact) |
String | getExtendedWebPath () |
String | getEntityUrl () |
String | getMemberUrl () |
String | getAppUrl () |
String | getEntityUrl (LinkType type, String contextPath) |
String | getReadAllUrl (LinkType type, String contextPath) |
String | getLinkRoot () |
String | getUserContext () |
Object | getControl (String name, IContact contact) |
Object | getControl (String name, IConstructor constructor, IContact contact) |
Object | getControl (String name, String entityPath, IContact contact) |
Object | getParticipationControl (IConstructor constructor, ParticipationReason reason) |
Object | getParticipationControl (IConstructor constructor, IContact contact, ParticipationReason reason) |
String | parseSpamCtrl (IConstructor constructor) |
String | parseFollowCtrl (IConstructor constructor) |
EntitySet | getAllChildren () |
Script | getActorScript () |
boolean | isActor (String actor) |
boolean | isActor (IContact contact, String actor) |
ConceptPermission | getConceptPermission (String name) |
Folder | getDeliverables () |
Object | getObject (Path entityPath) |
IElephantEntity | getMain (Object entity) |
Additional Inherited Members | |
Static Public Attributes inherited from org.turro.entities.IElephantEntity | |
static final String | EMPTY_ID = "#" |
static final String | PATH_SEPARATOR = ";" |
Definition at line 41 of file EmptyController.java.
boolean org.turro.entities.EmptyController.canEdit | ( | IContact | contact | ) |
Checks when contact has permissions to edit the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 149 of file EmptyController.java.
boolean org.turro.entities.EmptyController.canPublish | ( | IContact | contact | ) |
Checks when contact has permissions to see the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 154 of file EmptyController.java.
boolean org.turro.entities.EmptyController.canShowInContext | ( | IContact | contact, |
Object | relatedEntity | ||
) |
Checks whether the related entity can be shown to the given contact.
contact | the contact to be checked against. |
relatedEntity | the related entity to be shown. |
Implements org.turro.entities.IElephantEntity.
Definition at line 194 of file EmptyController.java.
Object org.turro.entities.EmptyController.configureCtrl | ( | Object | ctrl, |
IContact | contact | ||
) |
Configures specific entity related controls for the given contact.
ctrl | the control to configure. |
contact | the contact who receive the control. |
Implements org.turro.entities.IElephantEntity.
Definition at line 189 of file EmptyController.java.
Script org.turro.entities.EmptyController.getActorScript | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 289 of file EmptyController.java.
EntitySet org.turro.entities.EmptyController.getAllChildren | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 284 of file EmptyController.java.
Collection<String> org.turro.entities.EmptyController.getAllowedRoots | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 159 of file EmptyController.java.
String org.turro.entities.EmptyController.getAppUrl | ( | ) |
Returns the app link for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 224 of file EmptyController.java.
List<IElephantEntity> org.turro.entities.EmptyController.getChildren | ( | ) |
Gets the children for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 124 of file EmptyController.java.
ConceptPermission org.turro.entities.EmptyController.getConceptPermission | ( | String | name | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 304 of file EmptyController.java.
Object org.turro.entities.EmptyController.getControl | ( | String | name, |
IConstructor | constructor, | ||
IContact | contact | ||
) |
Returns a configured control based on this entity
name | control name |
contact | contact viewing this control |
Implements org.turro.entities.IElephantEntity.
Definition at line 254 of file EmptyController.java.
Object org.turro.entities.EmptyController.getControl | ( | String | name, |
IContact | contact | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 249 of file EmptyController.java.
Object org.turro.entities.EmptyController.getControl | ( | String | name, |
String | entityPath, | ||
IContact | contact | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 259 of file EmptyController.java.
IElephantEntity org.turro.entities.EmptyController.getController | ( | Object | entity | ) |
Gets a controller for entity.
entity | the entity object. |
Implements org.turro.entities.IElephantEntity.
Definition at line 49 of file EmptyController.java.
IElephantEntity org.turro.entities.EmptyController.getController | ( | String | entityPath | ) |
Gets a controller for entityPath.
entityPath | representing the path for entity or entity's root. |
Implements org.turro.entities.IElephantEntity.
Definition at line 44 of file EmptyController.java.
Folder org.turro.entities.EmptyController.getDeliverables | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 309 of file EmptyController.java.
String org.turro.entities.EmptyController.getDescription | ( | ) |
Gets the entity description.
Implements org.turro.entities.IElephantEntity.
Definition at line 89 of file EmptyController.java.
Collection org.turro.entities.EmptyController.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 174 of file EmptyController.java.
Collection org.turro.entities.EmptyController.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 184 of file EmptyController.java.
Collection org.turro.entities.EmptyController.getEntitites | ( | String | search, |
int | maxResults | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 169 of file EmptyController.java.
Collection org.turro.entities.EmptyController.getEntitites | ( | String | search, |
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 179 of file EmptyController.java.
Object org.turro.entities.EmptyController.getEntity | ( | ) |
Returns the entity for this controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 69 of file EmptyController.java.
String org.turro.entities.EmptyController.getEntityUrl | ( | ) |
Returns the web url for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 214 of file EmptyController.java.
String org.turro.entities.EmptyController.getEntityUrl | ( | LinkType | type, |
String | contextPath | ||
) |
Returns the web link for this entity.
type | web, member or app. |
contextPath | if specified, will be used instead of defaults. |
Implements org.turro.entities.IElephantEntity.
Definition at line 229 of file EmptyController.java.
String org.turro.entities.EmptyController.getExtendedPath | ( | ) |
Gets the extended path for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 129 of file EmptyController.java.
String org.turro.entities.EmptyController.getExtendedWebPath | ( | ) |
Returns a unique path for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 209 of file EmptyController.java.
File org.turro.entities.EmptyController.getFile | ( | ) |
Gets the file represented by the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 134 of file EmptyController.java.
String org.turro.entities.EmptyController.getHierarchicalPath | ( | ) |
Gets the hierarchical path for this entity. Mostly used for sorting purposes.
Implements org.turro.entities.IElephantEntity.
Definition at line 114 of file EmptyController.java.
String org.turro.entities.EmptyController.getImage | ( | ) |
Gets the entity image based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 99 of file EmptyController.java.
String org.turro.entities.EmptyController.getLabel | ( | ) |
Gets the entity label, based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 79 of file EmptyController.java.
Object org.turro.entities.EmptyController.getLabelCtrl | ( | ) |
Gets the label control, usually a clickable LabelControl class.
Implements org.turro.entities.IElephantEntity.
Definition at line 94 of file EmptyController.java.
String org.turro.entities.EmptyController.getLinkRoot | ( | ) |
Returns the link root, defaults to path root.
Implements org.turro.entities.IElephantEntity.
Definition at line 239 of file EmptyController.java.
IElephantEntity org.turro.entities.EmptyController.getMain | ( | Object | entity | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 319 of file EmptyController.java.
String org.turro.entities.EmptyController.getMemberUrl | ( | ) |
Returns the member link for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 219 of file EmptyController.java.
String org.turro.entities.EmptyController.getName | ( | ) |
Gets the entity name.
Implements org.turro.entities.IElephantEntity.
Definition at line 74 of file EmptyController.java.
String org.turro.entities.EmptyController.getNameOrLabel | ( | ) |
Gets the entity name or label, if name is null.
Implements org.turro.entities.IElephantEntity.
Definition at line 84 of file EmptyController.java.
Object org.turro.entities.EmptyController.getObject | ( | Path | entityPath | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 314 of file EmptyController.java.
IElephantEntity org.turro.entities.EmptyController.getParent | ( | ) |
Gets the parent for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 119 of file EmptyController.java.
Object org.turro.entities.EmptyController.getParticipationControl | ( | IConstructor | constructor, |
IContact | contact, | ||
ParticipationReason | reason | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 269 of file EmptyController.java.
Object org.turro.entities.EmptyController.getParticipationControl | ( | IConstructor | constructor, |
ParticipationReason | reason | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 264 of file EmptyController.java.
String org.turro.entities.EmptyController.getPath | ( | ) |
Gets the entity's path.
Implements org.turro.entities.IElephantEntity.
Definition at line 109 of file EmptyController.java.
String org.turro.entities.EmptyController.getReadAllUrl | ( | LinkType | type, |
String | contextPath | ||
) |
Returns the read all web link for this type of entity.
type | web, member or app. |
contextPath | if specified, will be used instead of defaults. |
Implements org.turro.entities.IElephantEntity.
Definition at line 234 of file EmptyController.java.
Collection<Object> org.turro.entities.EmptyController.getRelatedByRole | ( | EntityRole | role, |
IContact | contact | ||
) |
Gets entities where contact has the specified role.
role | the role to conform. |
contact | the contact to check. |
Implements org.turro.entities.IElephantEntity.
Definition at line 199 of file EmptyController.java.
String org.turro.entities.EmptyController.getRoot | ( | ) |
Gets the entity's root.
Implements org.turro.entities.IElephantEntity.
Definition at line 104 of file EmptyController.java.
IElephantSendable org.turro.entities.EmptyController.getSendable | ( | ) |
Gets sendable control for entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 164 of file EmptyController.java.
String org.turro.entities.EmptyController.getStringId | ( | ) |
Returns de id part of the entity's path.
Implements org.turro.entities.IElephantEntity.
Definition at line 64 of file EmptyController.java.
String org.turro.entities.EmptyController.getTreeLabel | ( | ) |
Returns de string label for the entity or entity's path. Usually a generic when the path is a root, or the entity's name.
Implements org.turro.entities.IElephantEntity.
Definition at line 59 of file EmptyController.java.
String org.turro.entities.EmptyController.getUserContext | ( | ) |
Returns the user context for this type of entity
Implements org.turro.entities.IElephantEntity.
Definition at line 244 of file EmptyController.java.
boolean org.turro.entities.EmptyController.hasRelatedRole | ( | EntityRole | role, |
IContact | contact | ||
) |
Checks whether contact has the specified role.
role | the role to conform. |
contact | the contact to check. |
Implements org.turro.entities.IElephantEntity.
Definition at line 204 of file EmptyController.java.
boolean org.turro.entities.EmptyController.isActor | ( | IContact | contact, |
String | actor | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 299 of file EmptyController.java.
boolean org.turro.entities.EmptyController.isActor | ( | String | actor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 294 of file EmptyController.java.
boolean org.turro.entities.EmptyController.isEmpty | ( | ) |
Is the empty controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 54 of file EmptyController.java.
String org.turro.entities.EmptyController.parseFollowCtrl | ( | IConstructor | constructor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 279 of file EmptyController.java.
String org.turro.entities.EmptyController.parseSpamCtrl | ( | IConstructor | constructor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 274 of file EmptyController.java.
boolean org.turro.entities.EmptyController.showEntity | ( | ) |
Shows the view for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 144 of file EmptyController.java.
boolean org.turro.entities.EmptyController.showPath | ( | ) |
Shows the view for this path.
Implements org.turro.entities.IElephantEntity.
Definition at line 139 of file EmptyController.java.