- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file OldLogEntry.java.
◆ OldLogEntry()
org.turro.log.OldLogEntry.OldLogEntry |
( |
int |
type, |
|
|
String |
path, |
|
|
String |
idUser, |
|
|
String |
name, |
|
|
Date |
dateLog, |
|
|
String |
comment, |
|
|
byte[] |
data |
|
) |
| |
Definition at line 40 of file OldLogEntry.java.
45 this.dateLog = dateLog;
46 this.comment = comment;
◆ getComment()
String org.turro.log.OldLogEntry.getComment |
( |
| ) |
|
◆ getData()
byte [] org.turro.log.OldLogEntry.getData |
( |
| ) |
|
◆ getDateLog()
Date org.turro.log.OldLogEntry.getDateLog |
( |
| ) |
|
◆ getIdUser()
String org.turro.log.OldLogEntry.getIdUser |
( |
| ) |
|
◆ getName()
String org.turro.log.OldLogEntry.getName |
( |
| ) |
|
◆ getPath()
String org.turro.log.OldLogEntry.getPath |
( |
| ) |
|
◆ getType()
int org.turro.log.OldLogEntry.getType |
( |
| ) |
|
◆ migrate()
void org.turro.log.OldLogEntry.migrate |
( |
Dao |
dao | ) |
|
Definition at line 78 of file OldLogEntry.java.
79 SystemLog entry =
new SystemLog();
80 entry.setDateLog(dateLog);
81 if(Strings.isBlank(idUser) || idUser.length() < 20) {
82 entry.setGeneratorPath(Strings.isBlank(idUser,
"#"));
83 entry.setGeneratorName(
"Unknown");
85 entry.setGeneratorPath(
"/contact/" + idUser);
86 entry.setGeneratorName(name);
88 IElephantEntity entity = Entities.getController(path);
89 if((entity ==
null) || (entity instanceof EmptyController)) {
90 entry.setEntityPath(path);
91 entry.setEntityName(
"Unknown");
93 entry.setEntityPath(entity.getPath());
94 entry.setEntityName(entity.getName());
96 entry.setComment(comment);
100 entry.setLogType(SystemLogType.LOG_WARNING);
103 entry.setLogType(SystemLogType.LOG_SEVERE);
106 entry.setLogType(SystemLogType.LOG_INFO);
109 dao.saveObject(entry);
The documentation for this class was generated from the following file: