- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 48 of file WsMember.java.
◆ entityId()
Object org.turro.ws.WsMember.entityId |
( |
| ) |
|
◆ from()
static WsMember org.turro.ws.WsMember.from |
( |
String |
memberDomain, |
|
|
String |
service |
|
) |
| |
|
static |
Definition at line 172 of file WsMember.java.
173 WsMember member =
new WsMember();
174 member.setMemberDomain(memberDomain);
175 member.setService(service);
◆ getContact()
IContact org.turro.ws.WsMember.getContact |
( |
| ) |
|
Definition at line 130 of file WsMember.java.
131 return Contacts.getContactById(contactId);
◆ getContactId()
String org.turro.ws.WsMember.getContactId |
( |
| ) |
|
◆ getMemberDomain()
String org.turro.ws.WsMember.getMemberDomain |
( |
| ) |
|
◆ getMemberId()
Long org.turro.ws.WsMember.getMemberId |
( |
| ) |
|
◆ getMemberUrl()
String org.turro.ws.WsMember.getMemberUrl |
( |
| ) |
|
Definition at line 103 of file WsMember.java.
104 if(memberDomain.contains(
"localhost")) {
105 return "http://" + memberDomain;
107 return "https://" + memberDomain;
◆ getName()
String org.turro.ws.WsMember.getName |
( |
| ) |
|
◆ getService()
String org.turro.ws.WsMember.getService |
( |
| ) |
|
◆ getServiceName()
Definition at line 119 of file WsMember.java.
120 return serviceName ==
null ?
new ServiceNamePair(service, service) : serviceName;
◆ isEmpty()
boolean org.turro.ws.WsMember.isEmpty |
( |
| ) |
|
◆ isValidIP()
boolean org.turro.ws.WsMember.isValidIP |
( |
String |
ip | ) |
|
Definition at line 93 of file WsMember.java.
95 String[] parts = memberDomain.split(
"[\\:\\/]");
96 return URIs.validIP(parts[0], ip);
97 }
catch (UnknownHostException ex) {
98 Logger.getLogger(WsMember.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ prepareSave()
void org.turro.ws.WsMember.prepareSave |
( |
| ) |
|
Implements org.turro.jpa.entity.IDaoEntity.
Definition at line 151 of file WsMember.java.
152 IDaoEntity.super.prepareSave();
153 if(Zero.orNull(memberId)) {
154 memberId = IdUtils.getNewLongIdFromLong(
new ElephantPU(),
"WsMember",
"memberId");
◆ setContact()
void org.turro.ws.WsMember.setContact |
( |
IContact |
contact | ) |
|
Definition at line 134 of file WsMember.java.
135 contactId = contact ==
null ? null : contact.getId();
◆ setContactId()
void org.turro.ws.WsMember.setContactId |
( |
String |
contactId | ) |
|
Definition at line 71 of file WsMember.java.
72 this.contactId = contactId;
◆ setMemberDomain()
void org.turro.ws.WsMember.setMemberDomain |
( |
String |
memberDomain | ) |
|
Definition at line 79 of file WsMember.java.
80 this.memberDomain = memberDomain;
◆ setMemberId()
void org.turro.ws.WsMember.setMemberId |
( |
Long |
memberId | ) |
|
◆ setService()
void org.turro.ws.WsMember.setService |
( |
String |
service | ) |
|
◆ setServiceName()
Definition at line 123 of file WsMember.java.
124 this.serviceName = serviceName;
◆ toJson() [1/2]
String org.turro.ws.WsMember.toJson |
( |
| ) |
|
◆ toJson() [2/2]
String org.turro.ws.WsMember.toJson |
( |
Map< String, Object > |
properties | ) |
|
The documentation for this class was generated from the following file: