BrightSide Workbench Full Report + Source Code
org.turro.crm.zul.customer.CustomerWrapper Class Reference
Inheritance diagram for org.turro.crm.zul.customer.CustomerWrapper:
Collaboration diagram for org.turro.crm.zul.customer.CustomerWrapper:

Public Member Functions

 CustomerWrapper (Customer entity)
 
String getTabLabel ()
 
String getSelfLabel ()
 
boolean canDelete ()
 
- 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 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 31 of file CustomerWrapper.java.

Constructor & Destructor Documentation

◆ CustomerWrapper()

org.turro.crm.zul.customer.CustomerWrapper.CustomerWrapper ( Customer  entity)

Definition at line 33 of file CustomerWrapper.java.

33  {
34  super(entity);
35  }

Member Function Documentation

◆ canDelete()

boolean org.turro.crm.zul.customer.CustomerWrapper.canDelete ( )

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

Definition at line 51 of file CustomerWrapper.java.

51  {
52  return super.canDelete() && entity.getSaleProspects().isEmpty();
53  }

◆ createDao()

Dao org.turro.crm.zul.customer.CustomerWrapper.createDao ( )
protected

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

Definition at line 46 of file CustomerWrapper.java.

46  {
47  return new CrmPU();
48  }

◆ getSelfLabel()

String org.turro.crm.zul.customer.CustomerWrapper.getSelfLabel ( )

Definition at line 41 of file CustomerWrapper.java.

41  {
42  return I_.get("Customer");
43  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabLabel()

String org.turro.crm.zul.customer.CustomerWrapper.getTabLabel ( )

Definition at line 37 of file CustomerWrapper.java.

37  {
38  return getSelfLabel() + " #" + entity.getId();
39  }
Here is the call graph for this function:

◆ shouldLog()

boolean org.turro.crm.zul.customer.CustomerWrapper.shouldLog ( )
protected

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

Definition at line 56 of file CustomerWrapper.java.

56  {
57  return true;
58  }

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