◆ getAvatar()
String org.turro.marker.ContactIdentity.getAvatar |
( |
| ) |
|
Definition at line 77 of file ContactIdentity.java.
78 IContact logged = (IContact) Application.getUser();
79 if(logged !=
null && logged.isValid()) {
80 File favatar =
new File(ElephantContext.getRealPath(
"/_internal/files/contact/" + logged.getId() +
"/profile/face.png"));
81 if(favatar.exists()) {
82 return ElephantContext.getRootWebPath() +
"/_internal/files/contact/" + logged.getId() +
"/profile/face.png";
◆ getContact()
IContact org.turro.marker.ContactIdentity.getContact |
( |
| ) |
|
Definition at line 108 of file ContactIdentity.java.
109 IContact logged = (IContact) Application.getUser();
110 return logged !=
null && logged.isValid() ? logged :
null;
◆ getEmail()
String org.turro.marker.ContactIdentity.getEmail |
( |
| ) |
|
Definition at line 98 of file ContactIdentity.java.
99 IContact logged = (IContact) Application.getUser();
100 return logged !=
null && logged.isValid() ? logged.getEmail() :
null;
◆ getName()
String org.turro.marker.ContactIdentity.getName |
( |
| ) |
|
Definition at line 93 of file ContactIdentity.java.
94 IContact logged = (IContact) Application.getUser();
95 return logged !=
null && logged.isValid() ? logged.getName() :
null;
◆ getPermissionMap()
PermissionMap org.turro.marker.ContactIdentity.getPermissionMap |
( |
| ) |
|
Definition at line 115 of file ContactIdentity.java.
117 return contact !=
null ? contact.getPermissions().asMap() : EMPTY_PERMISSIONS;
◆ getPhone()
String org.turro.marker.ContactIdentity.getPhone |
( |
| ) |
|
Definition at line 103 of file ContactIdentity.java.
104 IContact logged = (IContact) Application.getUser();
105 return logged !=
null && logged.isValid() ? logged.getProfile().getPhone() :
null;
◆ getProfile()
IProfile org.turro.marker.ContactIdentity.getProfile |
( |
| ) |
|
Definition at line 88 of file ContactIdentity.java.
89 IContact logged = (IContact) Application.getUser();
90 return logged !=
null && logged.isValid() ? logged.getProfile() :
null;
◆ isAppAdministrator()
boolean org.turro.marker.ContactIdentity.isAppAdministrator |
( |
| ) |
|
◆ isContactAdministrator()
boolean org.turro.marker.ContactIdentity.isContactAdministrator |
( |
| ) |
|
Definition at line 39 of file ContactIdentity.java.
40 return Application.getApplication().isInRole(
"contact:all");
◆ isContactLogged()
boolean org.turro.marker.ContactIdentity.isContactLogged |
( |
| ) |
|
Definition at line 61 of file ContactIdentity.java.
62 return Application.getApplication().isInRole(
"user:in");
◆ isDossierAdministrator()
boolean org.turro.marker.ContactIdentity.isDossierAdministrator |
( |
| ) |
|
Definition at line 43 of file ContactIdentity.java.
44 return Application.getApplication().isInRole(
"dossier:all");
◆ isInRole()
boolean org.turro.marker.ContactIdentity.isInRole |
( |
String |
role | ) |
|
◆ isMe()
boolean org.turro.marker.ContactIdentity.isMe |
( |
IContact |
contact | ) |
|
Definition at line 69 of file ContactIdentity.java.
70 IContact logged = (IContact) Application.getUser();
71 if(logged !=
null && logged.isValid() && contact !=
null && contact.isValid()) {
72 return logged.getId().equals(contact.getId());
◆ isMember()
boolean org.turro.marker.ContactIdentity.isMember |
( |
String |
identity | ) |
|
Definition at line 57 of file ContactIdentity.java.
58 return Application.getApplication().isInRole(identity +
":member");
◆ isUserMenu()
boolean org.turro.marker.ContactIdentity.isUserMenu |
( |
| ) |
|
Definition at line 52 of file ContactIdentity.java.
53 IContact logged = (IContact) Application.getUser();
54 return logged !=
null && logged.isValid() && logged.isUserMenu();
◆ isWebapp()
boolean org.turro.marker.ContactIdentity.isWebapp |
( |
| ) |
|
Definition at line 47 of file ContactIdentity.java.
48 IContact logged = (IContact) Application.getUser();
49 return logged !=
null && logged.isValid() && logged.isWebapp();
The documentation for this class was generated from the following file: