- Author
- llturro
Definition at line 23 of file SaleAction.java.
◆ checkDate()
void org.turro.crm.entity.SaleAction.checkDate |
( |
| ) |
|
Definition at line 181 of file SaleAction.java.
182 if(actionDate ==
null) {
183 actionDate =
new Date();
184 finalDate =
new Date();
186 if(CompareUtil.compare(actionDate, finalDate) > 0) {
187 finalDate.setTime(actionDate.getTime());
◆ compareTo()
int org.turro.crm.entity.SaleAction.compareTo |
( |
SaleAction |
o | ) |
|
Definition at line 141 of file SaleAction.java.
142 return CompareUtil.compare(actionDate, o.actionDate);
◆ entityId()
Object org.turro.crm.entity.SaleAction.entityId |
( |
| ) |
|
◆ getActionDate()
Date org.turro.crm.entity.SaleAction.getActionDate |
( |
| ) |
|
◆ getActionType()
Set<String> org.turro.crm.entity.SaleAction.getActionType |
( |
| ) |
|
◆ getAddress()
Address org.turro.crm.entity.SaleAction.getAddress |
( |
| ) |
|
Definition at line 209 of file SaleAction.java.
210 return (!Strings.isBlank(addressId) ?
211 new ContactsPU().find(Address.class, addressId) :
null);
◆ getAddressId()
String org.turro.crm.entity.SaleAction.getAddressId |
( |
| ) |
|
◆ getAttendees()
Set<String> org.turro.crm.entity.SaleAction.getAttendees |
( |
| ) |
|
◆ getComment()
String org.turro.crm.entity.SaleAction.getComment |
( |
| ) |
|
◆ getEndingTouchPoint()
TouchPoint org.turro.crm.entity.SaleAction.getEndingTouchPoint |
( |
| ) |
|
Definition at line 238 of file SaleAction.java.
240 if(tp.isEndsSale()) {
Set< TouchPoint > getTouchPoints()
◆ getFinalDate()
Date org.turro.crm.entity.SaleAction.getFinalDate |
( |
| ) |
|
◆ getIAttendees()
Collection<IContact> org.turro.crm.entity.SaleAction.getIAttendees |
( |
| ) |
|
Contact Helpers
Definition at line 193 of file SaleAction.java.
194 ArrayList<IContact> list =
new ArrayList<>();
195 for(String s : attendees) {
196 IContact c = Contacts.getContactById(s);
197 if(c.isValid()) list.add(c);
◆ getId()
long org.turro.crm.entity.SaleAction.getId |
( |
| ) |
|
◆ getProcessTouchPoints()
Set<TouchPoint> org.turro.crm.entity.SaleAction.getProcessTouchPoints |
( |
| ) |
|
Definition at line 218 of file SaleAction.java.
219 HashSet<TouchPoint> hs =
new HashSet<TouchPoint>();
221 if(!tp.isEndsSale()) {
◆ getStatus()
int org.turro.crm.entity.SaleAction.getStatus |
( |
| ) |
|
◆ getTouchPoints()
Set<TouchPoint> org.turro.crm.entity.SaleAction.getTouchPoints |
( |
| ) |
|
◆ getVendorProspect()
◆ isEmpty()
boolean org.turro.crm.entity.SaleAction.isEmpty |
( |
| ) |
|
Implements org.turro.jpa.entity.IDaoEntity.
Definition at line 153 of file SaleAction.java.
154 return actionDate ==
null ||
156 actionDate.after(finalDate) ||
157 Strings.isBlank(comment) ||
158 vendorProspect ==
null ||
159 actionType.isEmpty();
◆ isOverdue()
boolean org.turro.crm.entity.SaleAction.isOverdue |
( |
Date |
now | ) |
|
Definition at line 176 of file SaleAction.java.
177 return actionDate !=
null &&
178 actionDate.after(now);
◆ removeEmpties()
void org.turro.crm.entity.SaleAction.removeEmpties |
( |
| ) |
|
◆ setActionDate()
void org.turro.crm.entity.SaleAction.setActionDate |
( |
Date |
actionDate | ) |
|
◆ setActionType()
void org.turro.crm.entity.SaleAction.setActionType |
( |
Set< String > |
actionType | ) |
|
◆ setAddress()
void org.turro.crm.entity.SaleAction.setAddress |
( |
Address |
address | ) |
|
Definition at line 214 of file SaleAction.java.
215 addressId = (address !=
null ? address.getId() :
null);
◆ setAddressId()
void org.turro.crm.entity.SaleAction.setAddressId |
( |
String |
addressId | ) |
|
◆ setAttendees()
void org.turro.crm.entity.SaleAction.setAttendees |
( |
Set< String > |
attendees | ) |
|
◆ setComment()
void org.turro.crm.entity.SaleAction.setComment |
( |
String |
comment | ) |
|
◆ setEndingTouchPoint()
void org.turro.crm.entity.SaleAction.setEndingTouchPoint |
( |
TouchPoint |
tp | ) |
|
Definition at line 247 of file SaleAction.java.
249 while(it.hasNext()) {
250 if(it.next().isEndsSale()) {
◆ setFinalDate()
void org.turro.crm.entity.SaleAction.setFinalDate |
( |
Date |
finalDate | ) |
|
◆ setIAttendees()
void org.turro.crm.entity.SaleAction.setIAttendees |
( |
Collection< IContact > |
contacts | ) |
|
Definition at line 202 of file SaleAction.java.
204 for(IContact c : contacts) {
205 if(c.isValid()) attendees.add(c.getId());
◆ setId()
void org.turro.crm.entity.SaleAction.setId |
( |
long |
id | ) |
|
◆ setProcessTouchPoints()
void org.turro.crm.entity.SaleAction.setProcessTouchPoints |
( |
Set< TouchPoint > |
stp | ) |
|
Definition at line 228 of file SaleAction.java.
230 while(it.hasNext()) {
231 if(!it.next().isEndsSale()) {
◆ setStatus()
void org.turro.crm.entity.SaleAction.setStatus |
( |
int |
status | ) |
|
◆ setTouchPoints()
void org.turro.crm.entity.SaleAction.setTouchPoints |
( |
Set< TouchPoint > |
touchPoints | ) |
|
◆ setVendorProspect()
void org.turro.crm.entity.SaleAction.setVendorProspect |
( |
VendorProspect |
vendorProspect | ) |
|
◆ SA_PENDING
final int org.turro.crm.entity.SaleAction.SA_PENDING = 0 |
|
static |
The documentation for this class was generated from the following file: