Public Member Functions | |
PublicationEntities () | |
PublicationEntities (String entityPath) | |
PublicationEntities (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) |
IElephantSendable | getSendable () |
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) |
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 (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 57 of file PublicationEntities.java.
org.turro.entities.PublicationEntities.PublicationEntities | ( | ) |
org.turro.entities.PublicationEntities.PublicationEntities | ( | String | entityPath | ) |
Definition at line 62 of file PublicationEntities.java.
org.turro.entities.PublicationEntities.PublicationEntities | ( | Object | entity | ) |
Definition at line 66 of file PublicationEntities.java.
boolean org.turro.entities.PublicationEntities.canEdit | ( | IContact | contact | ) |
Checks when contact has permissions to edit the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 246 of file PublicationEntities.java.
boolean org.turro.entities.PublicationEntities.canPublish | ( | IContact | contact | ) |
Checks when contact has permissions to see the entity.
contact | the contact checked. |
Implements org.turro.entities.IElephantEntity.
Definition at line 259 of file PublicationEntities.java.
boolean org.turro.entities.PublicationEntities.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 345 of file PublicationEntities.java.
Object org.turro.entities.PublicationEntities.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 315 of file PublicationEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 377 of file PublicationEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 398 of file PublicationEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 393 of file PublicationEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 403 of file PublicationEntities.java.
Collection<String> org.turro.entities.PublicationEntities.getAllowedRoots | ( | ) |
Implements org.turro.entities.IElephantEntity.
Definition at line 388 of file PublicationEntities.java.
List<IElephantEntity> org.turro.entities.PublicationEntities.getChildren | ( | ) |
Gets the children for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 207 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getDescription | ( | ) |
Gets the entity description.
Implements org.turro.entities.IElephantEntity.
Definition at line 134 of file PublicationEntities.java.
Collection org.turro.entities.PublicationEntities.getEntitites | ( | String | root, |
String | search, | ||
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 280 of file PublicationEntities.java.
Collection org.turro.entities.PublicationEntities.getEntitites | ( | String | search, |
int | maxResults, | ||
KeyValueMap | kvm | ||
) |
Implements org.turro.entities.IElephantEntity.
Definition at line 271 of file PublicationEntities.java.
Object org.turro.entities.PublicationEntities.getEntity | ( | ) |
Returns the entity for this controller.
Implements org.turro.entities.IElephantEntity.
Definition at line 71 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getExtendedPath | ( | ) |
Gets the extended path for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 217 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getExtendedWebPath | ( | ) |
Returns a unique path for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 350 of file PublicationEntities.java.
File org.turro.entities.PublicationEntities.getFile | ( | ) |
Gets the file represented by the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 222 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getHierarchicalPath | ( | ) |
Gets the hierarchical path for this entity. Mostly used for sorting purposes.
Implements org.turro.entities.IElephantEntity.
Definition at line 182 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getImage | ( | ) |
Gets the entity image based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 162 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getLabel | ( | ) |
Gets the entity label, based on its root.
Implements org.turro.entities.IElephantEntity.
Definition at line 114 of file PublicationEntities.java.
Object org.turro.entities.PublicationEntities.getLabelCtrl | ( | ) |
Gets the label control, usually a clickable LabelControl class.
Implements org.turro.entities.IElephantEntity.
Definition at line 146 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getName | ( | ) |
Gets the entity name.
Implements org.turro.entities.IElephantEntity.
Definition at line 98 of file PublicationEntities.java.
IElephantEntity org.turro.entities.PublicationEntities.getParent | ( | ) |
Gets the parent for this entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 197 of file PublicationEntities.java.
IElephantSendable org.turro.entities.PublicationEntities.getSendable | ( | ) |
Gets sendable control for entity.
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 299 of file PublicationEntities.java.
String org.turro.entities.PublicationEntities.getUserContext | ( | ) |
Returns the user context for this type of entity
Implements org.turro.entities.IElephantEntity.
Definition at line 366 of file PublicationEntities.java.
|
protected |
Reimplemented from org.turro.entities.DefaultElephantEntity.
Definition at line 382 of file PublicationEntities.java.
boolean org.turro.entities.PublicationEntities.showEntity | ( | ) |
Shows the view for the entity.
Implements org.turro.entities.IElephantEntity.
Definition at line 232 of file PublicationEntities.java.
boolean org.turro.entities.PublicationEntities.showPath | ( | ) |
Shows the view for this path.
Implements org.turro.entities.IElephantEntity.
Definition at line 227 of file PublicationEntities.java.