Public Member Functions | |
ElephantEntities () | |
ElephantEntities (String entityPath) | |
ElephantEntities (Object entity) | |
Object | getEntity () |
String | getName () |
String | getLabel () |
String | getDescription () |
Object | getLabelCtrl () |
String | getImage () |
String | getHierarchicalPath () |
IElephantEntity | getParent () |
List< IElephantEntity > | getChildren () |
String | getExtendedPath () |
File | getFile () |
boolean | showPath () |
boolean | showEntity () |
boolean | canEdit (IContact contact) |
boolean | canPublish (IContact contact) |
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) |
String | getExtendedWebPath () |
String | getUserContext () |
Collection< String > | getAllowedRoots () |
Object | getObject (Path entityPath) |
String | getEntityUrl (LinkType type, String contextPath) |
Public Member Functions inherited from org.turro.entities.DefaultElephantEntity | |
DefaultElephantEntity () | |
DefaultElephantEntity (String entityPath) | |
DefaultElephantEntity (Object entity) | |
IElephantEntity | getController (String entityPath) |
IElephantEntity | getController (Object entity) |
boolean | isEmpty () |
String | getStringId () |
String | getNameOrLabel () |
String | getRoot () |
String | getPath () |
String | getTreeLabel () |
Collection | getEntitites (String search, int maxResults) |
Collection | getEntitites (String root, String search, int maxResults) |
IElephantSendable | getSendable () |
Collection< Object > | getRelatedByRole (EntityRole role, IContact contact) |
boolean | hasRelatedRole (EntityRole role, IContact contact) |
String | getLinkRoot () |
String | getEntityUrl () |
String | getMemberUrl () |
String | getAppUrl () |
String | getReadAllUrl (LinkType type, String contextPath) |
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 () |
IElephantEntity | getMain (Object entity) |
int | hashCode () |
boolean | equals (Object obj) |
Protected Member Functions | |
Dao | createDao () |
boolean | itsMine (Object entity) |
IElephantEntity | createInstance (String entityPath) |
IElephantEntity | createInstance (Object entity) |
Path | createPath () |
Protected Member Functions inherited from org.turro.entities.DefaultElephantEntity | |
boolean | itsMine (String rootPath) |
boolean | isValidLongEntity () |
Dao | getDao () |
Additional Inherited Members | |
Static Public Attributes inherited from org.turro.entities.IElephantEntity | |
static final String | EMPTY_ID = "#" |
static final String | PATH_SEPARATOR = ";" |
Protected Attributes inherited from org.turro.entities.DefaultElephantEntity | |
String | entityPath |
Path | path |
Object | entity |
Definition at line 51 of file ElephantEntities.java.
org.turro.entities.ElephantEntities.ElephantEntities | ( | ) |
org.turro.entities.ElephantEntities.ElephantEntities | ( | String | entityPath | ) |
Definition at line 56 of file ElephantEntities.java.
org.turro.entities.ElephantEntities.ElephantEntities | ( | Object | entity | ) |
Definition at line 60 of file ElephantEntities.java.
boolean org.turro.entities.ElephantEntities.canEdit | ( | IContact | contact | ) |
Checks when contact has permissions to edit the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 237 of file ElephantEntities.java.
boolean org.turro.entities.ElephantEntities.canPublish | ( | IContact | contact | ) |
Checks when contact has permissions to see the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 242 of file ElephantEntities.java.
boolean org.turro.entities.ElephantEntities.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 277 of file ElephantEntities.java.
Object org.turro.entities.ElephantEntities.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 272 of file ElephantEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 306 of file ElephantEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 327 of file ElephantEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 322 of file ElephantEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 332 of file ElephantEntities.java.
Collection<String> org.turro.entities.ElephantEntities.getAllowedRoots | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 317 of file ElephantEntities.java.
List<IElephantEntity> org.turro.entities.ElephantEntities.getChildren | ( | ) |
Gets the children for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 205 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getDescription | ( | ) |
Gets the entity description.
Implements org.turro.entities.IElephantEntity.
Definition at line 139 of file ElephantEntities.java.
Collection org.turro.entities.ElephantEntities.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 259 of file ElephantEntities.java.
Collection org.turro.entities.ElephantEntities.getEntitites | ( | String | search, |
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 252 of file ElephantEntities.java.
Object org.turro.entities.ElephantEntities.getEntity | ( | ) |
Returns the entity for this controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 65 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.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. |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 354 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getExtendedPath | ( | ) |
Gets the extended path for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 217 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getExtendedWebPath | ( | ) |
Returns a unique path for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 282 of file ElephantEntities.java.
File org.turro.entities.ElephantEntities.getFile | ( | ) |
Gets the file represented by the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 222 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getHierarchicalPath | ( | ) |
Gets the hierarchical path for this entity. Mostly used for sorting purposes.
Implements org.turro.entities.IElephantEntity.
Definition at line 169 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getImage | ( | ) |
Gets the entity image based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 149 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getLabel | ( | ) |
Gets the entity label, based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 119 of file ElephantEntities.java.
Object org.turro.entities.ElephantEntities.getLabelCtrl | ( | ) |
Gets the label control, usually a clickable LabelControl class.
Implements org.turro.entities.IElephantEntity.
Definition at line 144 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getName | ( | ) |
Gets the entity name.
Implements org.turro.entities.IElephantEntity.
Definition at line 100 of file ElephantEntities.java.
Object org.turro.entities.ElephantEntities.getObject | ( | Path | entityPath | ) |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 337 of file ElephantEntities.java.
IElephantEntity org.turro.entities.ElephantEntities.getParent | ( | ) |
Gets the parent for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 189 of file ElephantEntities.java.
String org.turro.entities.ElephantEntities.getUserContext | ( | ) |
Returns the user context for this type of entity
Implements org.turro.entities.IElephantEntity.
Definition at line 294 of file ElephantEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 311 of file ElephantEntities.java.
boolean org.turro.entities.ElephantEntities.showEntity | ( | ) |
Shows the view for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 232 of file ElephantEntities.java.
boolean org.turro.entities.ElephantEntities.showPath | ( | ) |
Shows the view for this path.
Implements org.turro.entities.IElephantEntity.
Definition at line 227 of file ElephantEntities.java.