BrightSide Workbench Full Report + Source Code
org.turro.dossier.grant.ProjectGrantWrapper Class Reference
Inheritance diagram for org.turro.dossier.grant.ProjectGrantWrapper:
Collaboration diagram for org.turro.dossier.grant.ProjectGrantWrapper:

Public Member Functions

 ProjectGrantWrapper (ProjectGrant entity)
 
String getTabLabel ()
 
String getSelfLabel ()
 
String getTooltiptext ()
 
- Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
 DaoEntity ()
 
 DaoEntity (Class< T > persistentClass)
 
 DaoEntity (T entity)
 
Dao getDao ()
 
getEntity ()
 
IElephantEntity getIee ()
 
find (ID id)
 
save ()
 
boolean delete ()
 
ID getId ()
 
List< String > getMessages ()
 
boolean canDelete ()
 
boolean canSave ()
 
boolean equals (Object obj)
 
int hashCode ()
 

Protected Member Functions

Dao createDao ()
 
boolean shouldLog ()
 
- Protected Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
void logEntity (SystemLogType logType, Object entity, String action, String data)
 
String dataEntity (Object entity)
 
void initOperation ()
 
void addMessage (String message)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
static Object getEntityId (Object entity)
 
static boolean isNewId (Object id)
 
- Protected Attributes inherited from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >
entity
 
ID id
 
List< String > messages = new ArrayList<>()
 

Detailed Description

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

Definition at line 32 of file ProjectGrantWrapper.java.

Constructor & Destructor Documentation

◆ ProjectGrantWrapper()

org.turro.dossier.grant.ProjectGrantWrapper.ProjectGrantWrapper ( ProjectGrant  entity)

Definition at line 34 of file ProjectGrantWrapper.java.

34  {
35  super(entity);
36  }

Member Function Documentation

◆ createDao()

Dao org.turro.dossier.grant.ProjectGrantWrapper.createDao ( )
protected

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 39 of file ProjectGrantWrapper.java.

39  {
40  return new DossierPU();
41  }

◆ getSelfLabel()

String org.turro.dossier.grant.ProjectGrantWrapper.getSelfLabel ( )

Definition at line 52 of file ProjectGrantWrapper.java.

52  {
53  return I_.get("Project grant");
54  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabLabel()

String org.turro.dossier.grant.ProjectGrantWrapper.getTabLabel ( )

Definition at line 48 of file ProjectGrantWrapper.java.

48  {
49  return getSelfLabel() + " #" + (entity.getId() == null ? "" : entity.getId());
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTooltiptext()

String org.turro.dossier.grant.ProjectGrantWrapper.getTooltiptext ( )

Definition at line 56 of file ProjectGrantWrapper.java.

56  {
57  try {
58  return HtmlContent.plain(entity.getGoal().getText(), 150);
59  } catch(Exception ex) {
60  return null;
61  }
62  }
Here is the caller graph for this function:

◆ shouldLog()

boolean org.turro.dossier.grant.ProjectGrantWrapper.shouldLog ( )
protected

Reimplemented from org.turro.jpa.entity.DaoEntity< T extends IDaoEntity, ID extends Serializable >.

Definition at line 44 of file ProjectGrantWrapper.java.

44  {
45  return false;
46  }

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