◆ CategoryWrapper()
org.turro.dossier.dossier.CategoryWrapper.CategoryWrapper |
( |
Category |
category | ) |
|
Definition at line 42 of file CategoryWrapper.java.
43 this.category = category;
44 contact = Authentication.getIContact();
◆ canDelete()
boolean org.turro.dossier.dossier.CategoryWrapper.canDelete |
( |
| ) |
|
Definition at line 79 of file CategoryWrapper.java.
80 Dao dao =
new DossierPU();
81 List l = dao.getResultList(
82 "select d from Dossier d where d.category = ?",
83 new Object[] { category });
87 l = dao.getResultList(
88 "select c from Category c where c.parent = ?",
89 new Object[] { category });
◆ delete()
void org.turro.dossier.dossier.CategoryWrapper.delete |
( |
| ) |
|
Definition at line 96 of file CategoryWrapper.java.
97 Dao dao =
new DossierPU();
99 dao.deleteObject(category);
Set< CategoryParticipant > getParticipants()
◆ getCanShowAllAttachments()
boolean org.turro.dossier.dossier.CategoryWrapper.getCanShowAllAttachments |
( |
| ) |
|
Definition at line 102 of file CategoryWrapper.java.
107 if(p.getIdContact().equals(contact.
getId()) && p.isShowAllAttachments()) {
ParticipantSet< IDossierParticipant > getFullParticipants()
◆ isAssistant()
boolean org.turro.dossier.dossier.CategoryWrapper.isAssistant |
( |
| ) |
|
Definition at line 74 of file CategoryWrapper.java.
75 if(category ==
null)
return false;
76 return getRole().contains(ParticipantRole.PARTICIPANT_ASSISTANT);
◆ isChildrenParticipant()
boolean org.turro.dossier.dossier.CategoryWrapper.isChildrenParticipant |
( |
| ) |
|
Definition at line 47 of file CategoryWrapper.java.
CategoryWrapper(Category category)
boolean isChildrenParticipant()
Set< Category > getChildren()
◆ isOwner()
boolean org.turro.dossier.dossier.CategoryWrapper.isOwner |
( |
| ) |
|
Definition at line 64 of file CategoryWrapper.java.
65 if(category ==
null)
return false;
66 return getRole().contains(ParticipantRole.PARTICIPANT_OWNER);
◆ isParticipant()
boolean org.turro.dossier.dossier.CategoryWrapper.isParticipant |
( |
| ) |
|
Definition at line 59 of file CategoryWrapper.java.
60 if(category ==
null)
return false;
61 return getRole() !=
null && !getRole().isEmpty();
◆ isSubject()
boolean org.turro.dossier.dossier.CategoryWrapper.isSubject |
( |
| ) |
|
Definition at line 69 of file CategoryWrapper.java.
70 if(category ==
null)
return false;
71 return getRole().contains(ParticipantRole.PARTICIPANT_SUBJECT);
The documentation for this class was generated from the following file: