BrightSide Workbench Full Report + Source Code
org.turro.entities.EmptyController Class Reference
Inheritance diagram for org.turro.entities.EmptyController:
Collaboration diagram for org.turro.entities.EmptyController:

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< IElephantEntitygetChildren ()
 
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 = ";"
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 41 of file EmptyController.java.

Member Function Documentation

◆ canEdit()

boolean org.turro.entities.EmptyController.canEdit ( IContact  contact)

Checks when contact has permissions to edit the entity.

Parameters
contactthe contact checked.
Returns
true when the contact can edit.

Implements org.turro.entities.IElephantEntity.

Definition at line 149 of file EmptyController.java.

149  {
150  return false;
151  }

◆ canPublish()

boolean org.turro.entities.EmptyController.canPublish ( IContact  contact)

Checks when contact has permissions to see the entity.

Parameters
contactthe contact checked.
Returns
true when the contact can see.

Implements org.turro.entities.IElephantEntity.

Definition at line 154 of file EmptyController.java.

154  {
155  return false;
156  }

◆ canShowInContext()

boolean org.turro.entities.EmptyController.canShowInContext ( IContact  contact,
Object  relatedEntity 
)

Checks whether the related entity can be shown to the given contact.

Parameters
contactthe contact to be checked against.
relatedEntitythe related entity to be shown.
Returns
true if can be shown.

Implements org.turro.entities.IElephantEntity.

Definition at line 194 of file EmptyController.java.

194  {
195  return true;
196  }

◆ configureCtrl()

Object org.turro.entities.EmptyController.configureCtrl ( Object  ctrl,
IContact  contact 
)

Configures specific entity related controls for the given contact.

Parameters
ctrlthe control to configure.
contactthe contact who receive the control.
Returns
the configured control.

Implements org.turro.entities.IElephantEntity.

Definition at line 189 of file EmptyController.java.

189  {
190  return ctrl;
191  }

◆ getActorScript()

Script org.turro.entities.EmptyController.getActorScript ( )

Implements org.turro.entities.IElephantEntity.

Definition at line 289 of file EmptyController.java.

289  {
290  return null;
291  }

◆ getAllChildren()

EntitySet org.turro.entities.EmptyController.getAllChildren ( )

Implements org.turro.entities.IElephantEntity.

Definition at line 284 of file EmptyController.java.

284  {
285  return (EntitySet) Collections.EMPTY_SET;
286  }

◆ getAllowedRoots()

Collection<String> org.turro.entities.EmptyController.getAllowedRoots ( )

Implements org.turro.entities.IElephantEntity.

Definition at line 159 of file EmptyController.java.

159  {
160  return Collections.EMPTY_LIST;
161  }

◆ getAppUrl()

String org.turro.entities.EmptyController.getAppUrl ( )

Returns the app link for this entity.

Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 224 of file EmptyController.java.

224  {
225  return null;
226  }

◆ getChildren()

List<IElephantEntity> org.turro.entities.EmptyController.getChildren ( )

Gets the children for this entity.

Returns
the children controllers.

Implements org.turro.entities.IElephantEntity.

Definition at line 124 of file EmptyController.java.

124  {
125  return Collections.EMPTY_LIST;
126  }

◆ getConceptPermission()

ConceptPermission org.turro.entities.EmptyController.getConceptPermission ( String  name)

Implements org.turro.entities.IElephantEntity.

Definition at line 304 of file EmptyController.java.

304  {
305  return null;
306  }

◆ getControl() [1/3]

Object org.turro.entities.EmptyController.getControl ( String  name,
IConstructor  constructor,
IContact  contact 
)

Returns a configured control based on this entity

Parameters
namecontrol name
contactcontact viewing this control
Returns
a web control

Implements org.turro.entities.IElephantEntity.

Definition at line 254 of file EmptyController.java.

254  {
255  return null;
256  }

◆ getControl() [2/3]

Object org.turro.entities.EmptyController.getControl ( String  name,
IContact  contact 
)

Implements org.turro.entities.IElephantEntity.

Definition at line 249 of file EmptyController.java.

249  {
250  return null;
251  }

◆ getControl() [3/3]

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.

259  {
260  return null;
261  }

◆ getController() [1/2]

IElephantEntity org.turro.entities.EmptyController.getController ( Object  entity)

Gets a controller for entity.

Parameters
entitythe entity object.
Returns
the elephant entity controller.

Implements org.turro.entities.IElephantEntity.

Definition at line 49 of file EmptyController.java.

49  {
50  return new EmptyController();
51  }

◆ getController() [2/2]

IElephantEntity org.turro.entities.EmptyController.getController ( String  entityPath)

Gets a controller for entityPath.

Parameters
entityPathrepresenting the path for entity or entity's root.
Returns
the elephant entity controller.

Implements org.turro.entities.IElephantEntity.

Definition at line 44 of file EmptyController.java.

44  {
45  return new EmptyController();
46  }

◆ getDeliverables()

Folder org.turro.entities.EmptyController.getDeliverables ( )

Implements org.turro.entities.IElephantEntity.

Definition at line 309 of file EmptyController.java.

309  {
310  return null;
311  }

◆ getDescription()

String org.turro.entities.EmptyController.getDescription ( )

Gets the entity description.

Returns
the description string.

Implements org.turro.entities.IElephantEntity.

Definition at line 89 of file EmptyController.java.

89  {
90  return null;
91  }

◆ getEntitites() [1/4]

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.

174  {
175  return getEntitites(root, search, maxResults, new KeyValueMap(new HashMap()));
176  }
Collection getEntitites(String search, int maxResults)
Here is the call graph for this function:

◆ getEntitites() [2/4]

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.

184  {
185  return Collections.EMPTY_LIST;
186  }

◆ getEntitites() [3/4]

Collection org.turro.entities.EmptyController.getEntitites ( String  search,
int  maxResults 
)

Implements org.turro.entities.IElephantEntity.

Definition at line 169 of file EmptyController.java.

169  {
170  return getEntitites(search, maxResults, new KeyValueMap(new HashMap()));
171  }
Here is the caller graph for this function:

◆ getEntitites() [4/4]

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.

179  {
180  return Collections.EMPTY_LIST;
181  }

◆ getEntity()

Object org.turro.entities.EmptyController.getEntity ( )

Returns the entity for this controller.

Returns
the entity's object.

Implements org.turro.entities.IElephantEntity.

Definition at line 69 of file EmptyController.java.

69  {
70  return null;
71  }

◆ getEntityUrl() [1/2]

String org.turro.entities.EmptyController.getEntityUrl ( )

Returns the web url for this entity.

Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 214 of file EmptyController.java.

214  {
215  return null;
216  }

◆ getEntityUrl() [2/2]

String org.turro.entities.EmptyController.getEntityUrl ( LinkType  type,
String  contextPath 
)

Returns the web link for this entity.

Parameters
typeweb, member or app.
contextPathif specified, will be used instead of defaults.
Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 229 of file EmptyController.java.

229  {
230  return null;
231  }

◆ getExtendedPath()

String org.turro.entities.EmptyController.getExtendedPath ( )

Gets the extended path for this entity.

Returns
the extended path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 129 of file EmptyController.java.

129  {
130  return null;
131  }

◆ getExtendedWebPath()

String org.turro.entities.EmptyController.getExtendedWebPath ( )

Returns a unique path for the entity.

Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 209 of file EmptyController.java.

209  {
210  return null;
211  }

◆ getFile()

File org.turro.entities.EmptyController.getFile ( )

Gets the file represented by the entity.

Returns
the entity file.

Implements org.turro.entities.IElephantEntity.

Definition at line 134 of file EmptyController.java.

134  {
135  return null;
136  }

◆ getHierarchicalPath()

String org.turro.entities.EmptyController.getHierarchicalPath ( )

Gets the hierarchical path for this entity. Mostly used for sorting purposes.

Returns
the hierarchical path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 114 of file EmptyController.java.

114  {
115  return null;
116  }

◆ getImage()

String org.turro.entities.EmptyController.getImage ( )

Gets the entity image based on its root.

Returns
the string image location.

Implements org.turro.entities.IElephantEntity.

Definition at line 99 of file EmptyController.java.

99  {
100  return null;
101  }

◆ getLabel()

String org.turro.entities.EmptyController.getLabel ( )

Gets the entity label, based on its root.

Returns
the entity string label.

Implements org.turro.entities.IElephantEntity.

Definition at line 79 of file EmptyController.java.

79  {
80  return null;
81  }

◆ getLabelCtrl()

Object org.turro.entities.EmptyController.getLabelCtrl ( )

Gets the label control, usually a clickable LabelControl class.

Returns
a clickable label control.

Implements org.turro.entities.IElephantEntity.

Definition at line 94 of file EmptyController.java.

94  {
95  return null;
96  }

◆ getLinkRoot()

String org.turro.entities.EmptyController.getLinkRoot ( )

Returns the link root, defaults to path root.

Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 239 of file EmptyController.java.

239  {
240  return null;
241  }

◆ getMain()

IElephantEntity org.turro.entities.EmptyController.getMain ( Object  entity)

Implements org.turro.entities.IElephantEntity.

Definition at line 319 of file EmptyController.java.

319  {
320  return null;
321  }

◆ getMemberUrl()

String org.turro.entities.EmptyController.getMemberUrl ( )

Returns the member link for this entity.

Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 219 of file EmptyController.java.

219  {
220  return null;
221  }

◆ getName()

String org.turro.entities.EmptyController.getName ( )

Gets the entity name.

Returns
the string name.

Implements org.turro.entities.IElephantEntity.

Definition at line 74 of file EmptyController.java.

74  {
75  return null;
76  }

◆ getNameOrLabel()

String org.turro.entities.EmptyController.getNameOrLabel ( )

Gets the entity name or label, if name is null.

Returns
the entity string name or label.

Implements org.turro.entities.IElephantEntity.

Definition at line 84 of file EmptyController.java.

84  {
85  return null;
86  }

◆ getObject()

Object org.turro.entities.EmptyController.getObject ( Path  entityPath)

Implements org.turro.entities.IElephantEntity.

Definition at line 314 of file EmptyController.java.

314  {
315  return null;
316  }

◆ getParent()

IElephantEntity org.turro.entities.EmptyController.getParent ( )

Gets the parent for this entity.

Returns
the parent controller.

Implements org.turro.entities.IElephantEntity.

Definition at line 119 of file EmptyController.java.

119  {
120  return null;
121  }

◆ getParticipationControl() [1/2]

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.

269  {
270  return null;
271  }

◆ getParticipationControl() [2/2]

Object org.turro.entities.EmptyController.getParticipationControl ( IConstructor  constructor,
ParticipationReason  reason 
)

Implements org.turro.entities.IElephantEntity.

Definition at line 264 of file EmptyController.java.

264  {
265  return null;
266  }

◆ getPath()

String org.turro.entities.EmptyController.getPath ( )

Gets the entity's path.

Returns
the entityPath string.

Implements org.turro.entities.IElephantEntity.

Definition at line 109 of file EmptyController.java.

109  {
110  return null;
111  }

◆ getReadAllUrl()

String org.turro.entities.EmptyController.getReadAllUrl ( LinkType  type,
String  contextPath 
)

Returns the read all web link for this type of entity.

Parameters
typeweb, member or app.
contextPathif specified, will be used instead of defaults.
Returns
the path string.

Implements org.turro.entities.IElephantEntity.

Definition at line 234 of file EmptyController.java.

234  {
235  return null;
236  }

◆ getRelatedByRole()

Collection<Object> org.turro.entities.EmptyController.getRelatedByRole ( EntityRole  role,
IContact  contact 
)

Gets entities where contact has the specified role.

Parameters
rolethe role to conform.
contactthe contact to check.
Returns
a collection of entities.

Implements org.turro.entities.IElephantEntity.

Definition at line 199 of file EmptyController.java.

199  {
200  return null;
201  }

◆ getRoot()

String org.turro.entities.EmptyController.getRoot ( )

Gets the entity's root.

Returns
the entityPath root string.

Implements org.turro.entities.IElephantEntity.

Definition at line 104 of file EmptyController.java.

104  {
105  return null;
106  }

◆ getSendable()

IElephantSendable org.turro.entities.EmptyController.getSendable ( )

Gets sendable control for entity.

Returns
the sendable control.

Implements org.turro.entities.IElephantEntity.

Definition at line 164 of file EmptyController.java.

164  {
165  return null;
166  }

◆ getStringId()

String org.turro.entities.EmptyController.getStringId ( )

Returns de id part of the entity's path.

Returns
the id as a string.

Implements org.turro.entities.IElephantEntity.

Definition at line 64 of file EmptyController.java.

64  {
65  return EMPTY_ID;
66  }

◆ getTreeLabel()

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.

Returns
the string label.

Implements org.turro.entities.IElephantEntity.

Definition at line 59 of file EmptyController.java.

59  {
60  return null;
61  }

◆ getUserContext()

String org.turro.entities.EmptyController.getUserContext ( )

Returns the user context for this type of entity

Returns
the path string;

Implements org.turro.entities.IElephantEntity.

Definition at line 244 of file EmptyController.java.

244  {
245  return "/user";
246  }

◆ hasRelatedRole()

boolean org.turro.entities.EmptyController.hasRelatedRole ( EntityRole  role,
IContact  contact 
)

Checks whether contact has the specified role.

Parameters
rolethe role to conform.
contactthe contact to check.
Returns
true if contact has role.

Implements org.turro.entities.IElephantEntity.

Definition at line 204 of file EmptyController.java.

204  {
205  return false;
206  }

◆ isActor() [1/2]

boolean org.turro.entities.EmptyController.isActor ( IContact  contact,
String  actor 
)

Implements org.turro.entities.IElephantEntity.

Definition at line 299 of file EmptyController.java.

299  {
300  return false;
301  }

◆ isActor() [2/2]

boolean org.turro.entities.EmptyController.isActor ( String  actor)

Implements org.turro.entities.IElephantEntity.

Definition at line 294 of file EmptyController.java.

294  {
295  return false;
296  }

◆ isEmpty()

boolean org.turro.entities.EmptyController.isEmpty ( )

Is the empty controller.

Returns
true when is the empty controller.

Implements org.turro.entities.IElephantEntity.

Definition at line 54 of file EmptyController.java.

54  {
55  return true;
56  }

◆ parseFollowCtrl()

String org.turro.entities.EmptyController.parseFollowCtrl ( IConstructor  constructor)

Implements org.turro.entities.IElephantEntity.

Definition at line 279 of file EmptyController.java.

279  {
280  return null;
281  }

◆ parseSpamCtrl()

String org.turro.entities.EmptyController.parseSpamCtrl ( IConstructor  constructor)

Implements org.turro.entities.IElephantEntity.

Definition at line 274 of file EmptyController.java.

274  {
275  return null;
276  }

◆ showEntity()

boolean org.turro.entities.EmptyController.showEntity ( )

Shows the view for the entity.

Returns
true when a view is shown.

Implements org.turro.entities.IElephantEntity.

Definition at line 144 of file EmptyController.java.

144  {
145  return false;
146  }

◆ showPath()

boolean org.turro.entities.EmptyController.showPath ( )

Shows the view for this path.

Returns
true when a view is shown.

Implements org.turro.entities.IElephantEntity.

Definition at line 139 of file EmptyController.java.

139  {
140  return false;
141  }

The documentation for this class was generated from the following file: