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

Public Member Functions

 DefaultEntityLastActivity (Object activity, String entityPath, Date date, String reason)
 
String getEntityPath ()
 
Date getDate ()
 
AssistantSet getParticipants ()
 
Object getActivity ()
 
String getReason ()
 
String getSortPath ()
 
void setSortPath (String sortPath)
 
IElephantEntity getEntity ()
 
IElephantEntity getMainEntity ()
 
String getActivityText ()
 

Detailed Description

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

Definition at line 35 of file DefaultEntityLastActivity.java.

Constructor & Destructor Documentation

◆ DefaultEntityLastActivity()

org.turro.activity.DefaultEntityLastActivity.DefaultEntityLastActivity ( Object  activity,
String  entityPath,
Date  date,
String  reason 
)

Definition at line 45 of file DefaultEntityLastActivity.java.

45  {
46  this.activityPath = Entities.getController(activity).getPath();
47  if(activityPath == null) {
48  this.activity = activity;
49  } else {
50  this.activity = null;
51  }
52  this.entityPath = entityPath;
53  this.date = date;
54  this.reason = reason;
55  this.activityText = formatActivityText();
56  setSortPath(entityPath);
57  }
Here is the call graph for this function:

Member Function Documentation

◆ getActivity()

Object org.turro.activity.DefaultEntityLastActivity.getActivity ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 79 of file DefaultEntityLastActivity.java.

79  {
80  if(realActivity == null) {
81  realActivity = activity == null ? Entities.getController(activityPath).getEntity() : activity;
82  }
83  return realActivity;
84  }
Here is the call graph for this function:

◆ getActivityText()

String org.turro.activity.DefaultEntityLastActivity.getActivityText ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 124 of file DefaultEntityLastActivity.java.

124  {
125  return activityText;
126  }

◆ getDate()

Date org.turro.activity.DefaultEntityLastActivity.getDate ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 65 of file DefaultEntityLastActivity.java.

65  {
66  return date;
67  }

◆ getEntity()

IElephantEntity org.turro.activity.DefaultEntityLastActivity.getEntity ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 107 of file DefaultEntityLastActivity.java.

107  {
108  if(entity == null) {
109  entity = Entities.getController(entityPath);
110  }
111  return entity;
112  }
IElephantEntity getController(String entityPath)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntityPath()

String org.turro.activity.DefaultEntityLastActivity.getEntityPath ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 60 of file DefaultEntityLastActivity.java.

60  {
61  return entityPath;
62  }

◆ getMainEntity()

IElephantEntity org.turro.activity.DefaultEntityLastActivity.getMainEntity ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 115 of file DefaultEntityLastActivity.java.

115  {
116  if(mainEntity == null) {
117  mainEntity = Entities.getController(
118  LastActivities.getMainEntity(getEntity().getEntity()));
119  }
120  return mainEntity;
121  }
Here is the call graph for this function:

◆ getParticipants()

AssistantSet org.turro.activity.DefaultEntityLastActivity.getParticipants ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 70 of file DefaultEntityLastActivity.java.

70  {
71  if(participants == null) {
72  participants = new AssistantSet();
73  Assistants.addAssistants(entityPath, true, participants, AssistantConstants.all());
74  }
75  return participants;
76  }
Here is the call graph for this function:

◆ getReason()

String org.turro.activity.DefaultEntityLastActivity.getReason ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 87 of file DefaultEntityLastActivity.java.

87  {
88  return reason;
89  }

◆ getSortPath()

String org.turro.activity.DefaultEntityLastActivity.getSortPath ( )

Implements org.turro.activity.IEntityLastActivity.

Definition at line 92 of file DefaultEntityLastActivity.java.

92  {
93  return sortPath;
94  }

◆ setSortPath()

void org.turro.activity.DefaultEntityLastActivity.setSortPath ( String  sortPath)

Ensure wont mix /entity/5 -> /entity/54 -> /entity/5/entity/1 By adding a separator /entity/5~ -> /entity/5~/entity/1 -> /entity/54~

Implements org.turro.activity.IEntityLastActivity.

Definition at line 97 of file DefaultEntityLastActivity.java.

97  {
103  this.sortPath = sortPath + IElephantEntity.PATH_SEPARATOR;
104  }
Here is the caller graph for this function:

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