Public Member Functions | |
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 | getEntityUrl (LinkType type, String contextPath) |
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 () |
Object | getObject (Path entityPath) |
IElephantEntity | getMain (Object entity) |
int | hashCode () |
boolean | equals (Object obj) |
Public Member Functions inherited from org.turro.entities.IElephantEntity | |
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) |
Collection< String > | getAllowedRoots () |
Object | configureCtrl (Object ctrl, IContact contact) |
boolean | canShowInContext (IContact contact, Object relatedEntity) |
String | getExtendedWebPath () |
String | getUserContext () |
Protected Member Functions | |
boolean | itsMine (String rootPath) |
abstract Dao | createDao () |
abstract boolean | itsMine (Object entity) |
abstract IElephantEntity | createInstance (String entityPath) |
abstract IElephantEntity | createInstance (Object entity) |
abstract Path | createPath () |
boolean | isValidLongEntity () |
Dao | getDao () |
Protected Attributes | |
String | entityPath |
Path | path |
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 55 of file DefaultElephantEntity.java.
org.turro.entities.DefaultElephantEntity.DefaultElephantEntity | ( | ) |
Definition at line 61 of file DefaultElephantEntity.java.
org.turro.entities.DefaultElephantEntity.DefaultElephantEntity | ( | String | entityPath | ) |
Definition at line 64 of file DefaultElephantEntity.java.
org.turro.entities.DefaultElephantEntity.DefaultElephantEntity | ( | Object | entity | ) |
Definition at line 69 of file DefaultElephantEntity.java.
|
abstractprotected |
Reimplemented in org.turro.entities.StudentsEntities, org.turro.entities.ElephantEntities, org.turro.entities.AllianceEntities, org.turro.entities.PublicationEntities, org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
|
abstractprotected |
Reimplemented in org.turro.entities.StudentsEntities, org.turro.entities.ElephantEntities, org.turro.entities.AllianceEntities, org.turro.entities.PublicationEntities, org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
|
abstractprotected |
Reimplemented in org.turro.entities.StudentsEntities, org.turro.entities.ElephantEntities, org.turro.entities.AllianceEntities, org.turro.entities.PublicationEntities, org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
|
abstractprotected |
Reimplemented in org.turro.entities.StudentsEntities, org.turro.entities.ElephantEntities, org.turro.entities.AllianceEntities, org.turro.entities.PublicationEntities, org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
boolean org.turro.entities.DefaultElephantEntity.equals | ( | Object | obj | ) |
Definition at line 366 of file DefaultElephantEntity.java.
Script org.turro.entities.DefaultElephantEntity.getActorScript | ( | ) |
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entitites.DossierEntities.
Definition at line 314 of file DefaultElephantEntity.java.
EntitySet org.turro.entities.DefaultElephantEntity.getAllChildren | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 301 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getAppUrl | ( | ) |
Returns the app link for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 172 of file DefaultElephantEntity.java.
ConceptPermission org.turro.entities.DefaultElephantEntity.getConceptPermission | ( | String | name | ) |
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entitites.DossierEntities.
Definition at line 329 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.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 257 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.getControl | ( | String | name, |
IContact | contact | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 251 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.getControl | ( | String | name, |
String | entityPath, | ||
IContact | contact | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 263 of file DefaultElephantEntity.java.
IElephantEntity org.turro.entities.DefaultElephantEntity.getController | ( | Object | entity | ) |
Gets a controller for entity.
entity | the entity object. |
Implements org.turro.entities.IElephantEntity.
Definition at line 83 of file DefaultElephantEntity.java.
IElephantEntity org.turro.entities.DefaultElephantEntity.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 74 of file DefaultElephantEntity.java.
|
protected |
Definition at line 241 of file DefaultElephantEntity.java.
Folder org.turro.entities.DefaultElephantEntity.getDeliverables | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 336 of file DefaultElephantEntity.java.
Collection org.turro.entities.DefaultElephantEntity.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 136 of file DefaultElephantEntity.java.
Collection org.turro.entities.DefaultElephantEntity.getEntitites | ( | String | search, |
int | maxResults | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 131 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getEntityUrl | ( | ) |
Returns the web url for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 162 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.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.
Reimplemented in org.turro.entities.StudentsEntities, and org.turro.entities.ElephantEntities.
Definition at line 187 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getLinkRoot | ( | ) |
Returns the link root, defaults to path root.
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entitites.DossierEntities.
Definition at line 156 of file DefaultElephantEntity.java.
IElephantEntity org.turro.entities.DefaultElephantEntity.getMain | ( | Object | entity | ) |
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entitites.DossierEntities, and org.turro.entities.ContactEntities.
Definition at line 352 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getMemberUrl | ( | ) |
Returns the member link for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 167 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getNameOrLabel | ( | ) |
Gets the entity name or label, if name is null.
Implements org.turro.entities.IElephantEntity.
Definition at line 102 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.getObject | ( | Path | entityPath | ) |
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entities.ElephantEntities, org.turro.entitites.DossierEntities, and org.turro.entities.ContactEntities.
Definition at line 347 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.getParticipationControl | ( | IConstructor | constructor, |
IContact | contact, | ||
ParticipationReason | reason | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 276 of file DefaultElephantEntity.java.
Object org.turro.entities.DefaultElephantEntity.getParticipationControl | ( | IConstructor | constructor, |
ParticipationReason | reason | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 271 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getPath | ( | ) |
Gets the entity's path.
Implements org.turro.entities.IElephantEntity.
Definition at line 113 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.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 201 of file DefaultElephantEntity.java.
Collection<Object> org.turro.entities.DefaultElephantEntity.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.
Reimplemented in org.turro.entities.FinancialsEntities.
Definition at line 146 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getRoot | ( | ) |
Gets the entity's root.
Implements org.turro.entities.IElephantEntity.
Definition at line 107 of file DefaultElephantEntity.java.
IElephantSendable org.turro.entities.DefaultElephantEntity.getSendable | ( | ) |
Gets sendable control for entity.
Implements org.turro.entities.IElephantEntity.
Reimplemented in org.turro.entities.PublicationEntities, and org.turro.entities.ContactEntities.
Definition at line 141 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.getStringId | ( | ) |
Returns de id part of the entity's path.
Implements org.turro.entities.IElephantEntity.
Definition at line 96 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.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 121 of file DefaultElephantEntity.java.
int org.turro.entities.DefaultElephantEntity.hashCode | ( | ) |
Definition at line 359 of file DefaultElephantEntity.java.
boolean org.turro.entities.DefaultElephantEntity.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.
Reimplemented in org.turro.entitites.DossierEntities, and org.turro.entities.FinancialsEntities.
Definition at line 151 of file DefaultElephantEntity.java.
boolean org.turro.entities.DefaultElephantEntity.isActor | ( | IContact | contact, |
String | actor | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 324 of file DefaultElephantEntity.java.
boolean org.turro.entities.DefaultElephantEntity.isActor | ( | String | actor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 319 of file DefaultElephantEntity.java.
boolean org.turro.entities.DefaultElephantEntity.isEmpty | ( | ) |
Is the empty controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 91 of file DefaultElephantEntity.java.
|
protected |
Definition at line 232 of file DefaultElephantEntity.java.
|
abstractprotected |
Reimplemented in org.turro.entities.StudentsEntities, org.turro.entities.ElephantEntities, org.turro.entities.AllianceEntities, org.turro.entities.PublicationEntities, org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
|
protected |
Reimplemented in org.turro.entitites.DossierEntities, org.turro.entities.CrmEntities, org.turro.entities.AttachEntities, org.turro.entities.ContactEntities, and org.turro.entities.FinancialsEntities.
Definition at line 220 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.parseFollowCtrl | ( | IConstructor | constructor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 293 of file DefaultElephantEntity.java.
String org.turro.entities.DefaultElephantEntity.parseSpamCtrl | ( | IConstructor | constructor | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 287 of file DefaultElephantEntity.java.
|
protected |
Definition at line 59 of file DefaultElephantEntity.java.
|
protected |
Definition at line 57 of file DefaultElephantEntity.java.
|
protected |
Definition at line 58 of file DefaultElephantEntity.java.