- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 42 of file Contacts.java.
◆ exists()
static boolean org.turro.action.Contacts.exists |
( |
String |
idContact | ) |
|
|
static |
◆ getBehavingAs()
static IContact org.turro.action.Contacts.getBehavingAs |
( |
| ) |
|
|
static |
Definition at line 154 of file Contacts.java.
155 Application app = Application.getApplication();
156 IContact contact = (IContact) app.getHttpSession(
false).getAttribute(BEHAVEAS_ICONTACT);
157 if(contact ==
null) {
158 contact = (IContact) app.getHttpSession(
false).getAttribute(
LOGGED_ICONTACT);
◆ getByGrouping() [1/2]
static List<IContact> org.turro.action.Contacts.getByGrouping |
( |
List< String > |
groupings | ) |
|
|
static |
◆ getByGrouping() [2/2]
static List<IContact> org.turro.action.Contacts.getByGrouping |
( |
String |
grouping | ) |
|
|
static |
◆ getByRole()
static List<IContact> org.turro.action.Contacts.getByRole |
( |
String |
role | ) |
|
|
static |
◆ getBySyndication()
static List<IContact> org.turro.action.Contacts.getBySyndication |
( |
String |
syndication | ) |
|
|
static |
◆ getCenters()
static List<IContact> org.turro.action.Contacts.getCenters |
( |
| ) |
|
|
static |
◆ getContact()
static IContact org.turro.action.Contacts.getContact |
( |
Object |
object | ) |
|
|
static |
Definition at line 109 of file Contacts.java.
110 if(
object instanceof String) {
114 if(contact !=
null) {
115 contact.setContact(
object);
◆ getContactByEmail()
static IContact org.turro.action.Contacts.getContactByEmail |
( |
String |
email | ) |
|
|
static |
Definition at line 83 of file Contacts.java.
85 if(iContact !=
null) {
86 iContact = iContact.loadByEmail(email);
◆ getContactById()
static IContact org.turro.action.Contacts.getContactById |
( |
String |
id | ) |
|
|
static |
Definition at line 72 of file Contacts.java.
73 if(!Strings.isBlank(
id) &&
id.startsWith(
"/contact/")) {
74 id =
new Path(
id).getNode(1);
77 if(iContact !=
null && !Strings.isBlank(
id)) {
78 iContact.loadById(
id);
◆ getEmpty()
static IContact org.turro.action.Contacts.getEmpty |
( |
| ) |
|
|
static |
Definition at line 56 of file Contacts.java.
57 for(Class javaClass :
instance().values()) {
58 IContact contact = (IContact) Reflections.of(javaClass).instance();
59 if(contact !=
null)
return contact;
◆ getEmptyFor()
static IContact org.turro.action.Contacts.getEmptyFor |
( |
Object |
object | ) |
|
|
static |
Definition at line 64 of file Contacts.java.
65 for(Class javaClass :
instance().values()) {
66 IContact contact = (IContact) Reflections.of(javaClass).instance();
67 if(contact !=
null && contact.accepts(
object))
return contact;
◆ getLoggedIContact()
Definition at line 122 of file Contacts.java.
123 IContact contact =
getEmptyFor(app.getConstructor().getUser());
124 if(contact !=
null) {
125 contact.loadLogged(app);
◆ getNoEmail()
static String org.turro.action.Contacts.getNoEmail |
( |
| ) |
|
|
static |
◆ getStudents()
static List<IContact> org.turro.action.Contacts.getStudents |
( |
| ) |
|
|
static |
◆ getWebUsers()
static List<IContact> org.turro.action.Contacts.getWebUsers |
( |
List< IContact > |
contacts | ) |
|
|
static |
Definition at line 91 of file Contacts.java.
92 return contacts.stream().filter((contact) -> (contact.isWebUser())).collect(Collectors.toList());
◆ hasValidEmail()
static boolean org.turro.action.Contacts.hasValidEmail |
( |
IContact |
contact | ) |
|
|
static |
◆ instance()
static SortedMap<Integer, Class> org.turro.action.Contacts.instance |
( |
| ) |
|
|
static |
Definition at line 194 of file Contacts.java.
195 return INIT.instance(() -> getContactClasses());
◆ isCenter()
static boolean org.turro.action.Contacts.isCenter |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 174 of file Contacts.java.
175 return Optional.ofNullable(contact).filter(c -> c.isValid() && c.isCenter()).isPresent();
◆ isCompany()
static boolean org.turro.action.Contacts.isCompany |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 170 of file Contacts.java.
171 return Optional.ofNullable(contact).filter(c -> c.isValid() && c.isCompany()).isPresent();
◆ isHHRR()
static boolean org.turro.action.Contacts.isHHRR |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 182 of file Contacts.java.
183 return Optional.ofNullable(contact).filter(c -> c.isValid() && c.isHHRR()).isPresent();
◆ isStudent()
static boolean org.turro.action.Contacts.isStudent |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 186 of file Contacts.java.
187 return Optional.ofNullable(contact).filter(c -> c.isValid() && c.isStudent()).isPresent();
◆ isValid()
static boolean org.turro.action.Contacts.isValid |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 52 of file Contacts.java.
53 return contact !=
null && contact.isValid();
◆ isValidEmail()
static boolean org.turro.action.Contacts.isValidEmail |
( |
String |
email | ) |
|
|
static |
Definition at line 99 of file Contacts.java.
100 if(Strings.isBlank(email) || email.contains(
"nomail"))
return false;
101 return MailValidator.single().silently(email);
◆ isWorker()
static boolean org.turro.action.Contacts.isWorker |
( |
IContact |
contact | ) |
|
|
static |
Definition at line 178 of file Contacts.java.
179 return Optional.ofNullable(contact).filter(c -> c.isValid() && c.isWorker()).isPresent();
◆ reset()
static void org.turro.action.Contacts.reset |
( |
| ) |
|
|
static |
◆ startContactFromValues()
static void org.turro.action.Contacts.startContactFromValues |
( |
KeyValueMap |
values | ) |
|
|
static |
Definition at line 163 of file Contacts.java.
165 if(iContact !=
null) {
166 iContact.startContactFromValues(values);
◆ LOGGED_ICONTACT
final String org.turro.action.Contacts.LOGGED_ICONTACT = "loggedIContact" |
|
static |
The documentation for this class was generated from the following file: