BrightSide Workbench Full Report + Source Code
org.turro.hr.aptitude.AptitudeWrapper Class Reference
Inheritance diagram for org.turro.hr.aptitude.AptitudeWrapper:
Collaboration diagram for org.turro.hr.aptitude.AptitudeWrapper:

Public Member Functions

 AptitudeWrapper (Aptitude entity)
 
Aptitude save ()
 
IDossier getDossier ()
 
- 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)
 
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

Constructor & Destructor Documentation

◆ AptitudeWrapper()

org.turro.hr.aptitude.AptitudeWrapper.AptitudeWrapper ( Aptitude  entity)

Member Function Documentation

◆ createDao()

Dao org.turro.hr.aptitude.AptitudeWrapper.createDao ( )
protected

◆ getDossier()

IDossier org.turro.hr.aptitude.AptitudeWrapper.getDossier ( )

Definition at line 51 of file bserp-core/src/main/java/org/turro/hr/aptitude/AptitudeWrapper.java.

51  {
52  if(entity.getId() > 0) {
53  IDossier dossier = (IDossier) PluginChecker.get("dossier");
54  ICategory cat = dossier.addCategory();
55  cat.setDescription("Resource Planning");
56  cat.setId(8000);
57  cat = dossier.addCategory();
58  cat.setDescription("Aptitudes");
59  cat.setId(8003);
60  cat.setParentId(8000);
61  dossier.setDescription(entity.getId() + entity.getName());
62  dossier.setIdCategory(cat.getId());
63  dossier.setPath(ErpPU.getObjectPath(entity));
64  return dossier;
65  }
66  return null;
67  }
Here is the call graph for this function:

◆ save()

Aptitude org.turro.hr.aptitude.AptitudeWrapper.save ( )

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

Definition at line 39 of file bserp-core/src/main/java/org/turro/hr/aptitude/AptitudeWrapper.java.

39  {
40  if(!entity.isEmpty()) {
41  entity = super.save();
42  }
43  return entity;
44  }

◆ shouldLog()

boolean org.turro.hr.aptitude.AptitudeWrapper.shouldLog ( )
protected

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