BrightSide Workbench Full Report + Source Code
org.turro.newsletter.NewsletterWrapper Class Reference
Inheritance diagram for org.turro.newsletter.NewsletterWrapper:
Collaboration diagram for org.turro.newsletter.NewsletterWrapper:

Public Member Functions

 NewsletterWrapper (Newsletter entity)
 
String getTabLabel ()
 
String getSelfLabel ()
 
String getTooltiptext ()
 
Newsletter save ()
 
- 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

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

Definition at line 33 of file NewsletterWrapper.java.

Constructor & Destructor Documentation

◆ NewsletterWrapper()

org.turro.newsletter.NewsletterWrapper.NewsletterWrapper ( Newsletter  entity)

Definition at line 35 of file NewsletterWrapper.java.

35  {
36  super(entity);
37  }

Member Function Documentation

◆ createDao()

Dao org.turro.newsletter.NewsletterWrapper.createDao ( )
protected

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

Definition at line 40 of file NewsletterWrapper.java.

40  {
41  return new PublicationPU();
42  }

◆ getSelfLabel()

String org.turro.newsletter.NewsletterWrapper.getSelfLabel ( )

Definition at line 48 of file NewsletterWrapper.java.

48  {
49  return I_.get("Newsletter");
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabLabel()

String org.turro.newsletter.NewsletterWrapper.getTabLabel ( )

Definition at line 44 of file NewsletterWrapper.java.

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

◆ getTooltiptext()

String org.turro.newsletter.NewsletterWrapper.getTooltiptext ( )

Definition at line 52 of file NewsletterWrapper.java.

52  {
53  try {
54  return entity.getTitle();
55  } catch(Exception ex) {
56  return null;
57  }
58  }
Here is the caller graph for this function:

◆ save()

Newsletter org.turro.newsletter.NewsletterWrapper.save ( )

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

Definition at line 61 of file NewsletterWrapper.java.

61  {
62  super.save();
63  if(entity.getId() != null && entity.isAccepted() && !EntityWebUrls.existsEntity("/newsletter/" + entity.getId())) {
64  EntityWebUrls.addWebUrl(
65  "/newsletter/" + entity.getId(),
66  "/" + entity.getId() + "/" + Strings.unpunctuate(entity.getTitle()).toLowerCase());
67  }
68  return entity;
69  }
Here is the call graph for this function:

◆ shouldLog()

boolean org.turro.newsletter.NewsletterWrapper.shouldLog ( )
protected

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

Definition at line 72 of file NewsletterWrapper.java.

72  {
73  return false;
74  }

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