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

Public Member Functions

 HumanResourceWrapper (HumanResource entity)
 
HumanResource 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

◆ HumanResourceWrapper()

org.turro.hr.humanres.HumanResourceWrapper.HumanResourceWrapper ( HumanResource  entity)

Member Function Documentation

◆ createDao()

Dao org.turro.hr.humanres.HumanResourceWrapper.createDao ( )
protected

◆ getDossier()

IDossier org.turro.hr.humanres.HumanResourceWrapper.getDossier ( )

Definition at line 49 of file bserp-core/src/main/java/org/turro/hr/humanres/HumanResourceWrapper.java.

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

◆ save()

HumanResource org.turro.hr.humanres.HumanResourceWrapper.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/humanres/HumanResourceWrapper.java.

39  {
40  entity.prepareForSaving();
41  return super.save();
42  }

◆ shouldLog()

boolean org.turro.hr.humanres.HumanResourceWrapper.shouldLog ( )
protected

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