Public Member Functions | |
AttachEntities () | |
AttachEntities (String entityPath) | |
AttachEntities (Object entity) | |
Object | getEntity () |
String | getName () |
String | getLabel () |
String | getDescription () |
Object | getLabelCtrl () |
String | getImage () |
String | getMimeImage () |
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 () |
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 | 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) |
Protected Member Functions | |
Dao | createDao () |
boolean | itsMine (String rootPath) |
boolean | itsMine (Object entity) |
IElephantEntity | createInstance (String entityPath) |
IElephantEntity | createInstance (Object entity) |
Path | createPath () |
Protected Member Functions inherited from org.turro.entities.DefaultElephantEntity | |
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 52 of file AttachEntities.java.
org.turro.entities.AttachEntities.AttachEntities | ( | ) |
org.turro.entities.AttachEntities.AttachEntities | ( | String | entityPath | ) |
Definition at line 57 of file AttachEntities.java.
org.turro.entities.AttachEntities.AttachEntities | ( | Object | entity | ) |
Definition at line 61 of file AttachEntities.java.
boolean org.turro.entities.AttachEntities.canEdit | ( | IContact | contact | ) |
Checks when contact has permissions to edit the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 227 of file AttachEntities.java.
boolean org.turro.entities.AttachEntities.canPublish | ( | IContact | contact | ) |
Checks when contact has permissions to see the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 239 of file AttachEntities.java.
boolean org.turro.entities.AttachEntities.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 284 of file AttachEntities.java.
Object org.turro.entities.AttachEntities.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 279 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 299 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 324 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 319 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 329 of file AttachEntities.java.
Collection<String> org.turro.entities.AttachEntities.getAllowedRoots | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 314 of file AttachEntities.java.
List<IElephantEntity> org.turro.entities.AttachEntities.getChildren | ( | ) |
Gets the children for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 180 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getDescription | ( | ) |
Gets the entity description.
Implements org.turro.entities.IElephantEntity.
Definition at line 117 of file AttachEntities.java.
Collection org.turro.entities.AttachEntities.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 266 of file AttachEntities.java.
Collection org.turro.entities.AttachEntities.getEntitites | ( | String | search, |
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 259 of file AttachEntities.java.
Object org.turro.entities.AttachEntities.getEntity | ( | ) |
Returns the entity for this controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 66 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getExtendedPath | ( | ) |
Gets the extended path for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 185 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getExtendedWebPath | ( | ) |
Returns a unique path for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 289 of file AttachEntities.java.
File org.turro.entities.AttachEntities.getFile | ( | ) |
Gets the file represented by the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 190 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getHierarchicalPath | ( | ) |
Gets the hierarchical path for this entity. Mostly used for sorting purposes.
Implements org.turro.entities.IElephantEntity.
Definition at line 158 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getImage | ( | ) |
Gets the entity image based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 127 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getLabel | ( | ) |
Gets the entity label, based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 101 of file AttachEntities.java.
Object org.turro.entities.AttachEntities.getLabelCtrl | ( | ) |
Gets the label control, usually a clickable LabelControl class.
Implements org.turro.entities.IElephantEntity.
Definition at line 122 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getMimeImage | ( | ) |
Definition at line 142 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getName | ( | ) |
Gets the entity name.
Implements org.turro.entities.IElephantEntity.
Definition at line 89 of file AttachEntities.java.
IElephantEntity org.turro.entities.AttachEntities.getParent | ( | ) |
Gets the parent for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 170 of file AttachEntities.java.
String org.turro.entities.AttachEntities.getUserContext | ( | ) |
Returns the user context for this type of entity
Implements org.turro.entities.IElephantEntity.
Definition at line 294 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 309 of file AttachEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 304 of file AttachEntities.java.
boolean org.turro.entities.AttachEntities.showEntity | ( | ) |
Shows the view for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 213 of file AttachEntities.java.
boolean org.turro.entities.AttachEntities.showPath | ( | ) |
Shows the view for this path.
Implements org.turro.entities.IElephantEntity.
Definition at line 208 of file AttachEntities.java.