BrightSide Workbench Full Report + Source Code
org.turro.erp.resource.ResourceWrapper Class Reference
Inheritance diagram for org.turro.erp.resource.ResourceWrapper:
Collaboration diagram for org.turro.erp.resource.ResourceWrapper:

Public Member Functions

 ResourceWrapper (Resource entity)
 
Resource 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

◆ ResourceWrapper()

org.turro.erp.resource.ResourceWrapper.ResourceWrapper ( Resource  entity)

Member Function Documentation

◆ createDao()

Dao org.turro.erp.resource.ResourceWrapper.createDao ( )
protected

◆ getDossier()

IDossier org.turro.erp.resource.ResourceWrapper.getDossier ( )

Definition at line 49 of file bserp-core/src/main/java/org/turro/erp/resource/ResourceWrapper.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("Resources");
57  cat.setId(8004);
58  cat.setParentId(8000);
59  dossier.setDescription(entity.getId() + entity.getName());
60  dossier.setIdCategory(cat.getId());
61  dossier.setPath(ErpPU.getObjectPath(entity));
62  return dossier;
63  }
64  return null;
65  }
Here is the call graph for this function:

◆ save()

Resource org.turro.erp.resource.ResourceWrapper.save ( )

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

Reimplemented in org.turro.erp.resource.logic.ResourceWrapper.

Definition at line 39 of file bserp-core/src/main/java/org/turro/erp/resource/ResourceWrapper.java.

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

◆ shouldLog()

boolean org.turro.erp.resource.ResourceWrapper.shouldLog ( )
protected

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