filtering - rest of client gets
This commit is contained in:
@@ -13,7 +13,7 @@ import org.joda.time.Days;
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@XmlRootElement(name = "client")
|
||||
@JsonIgnoreProperties({ "organisationId","organisationName" })
|
||||
@JsonIgnoreProperties({ "organisationId", "organisationName" })
|
||||
@JsonFilter("myFilter")
|
||||
public class ClientData implements Serializable {
|
||||
|
||||
@@ -27,18 +27,17 @@ public class ClientData implements Serializable {
|
||||
private String displayName;
|
||||
private String externalId;
|
||||
private LocalDate joinedDate;
|
||||
|
||||
|
||||
private List<OfficeLookup> allowedOffices = new ArrayList<OfficeLookup>();
|
||||
|
||||
public ClientData() {
|
||||
//
|
||||
}
|
||||
|
||||
public ClientData(final Long organisationId,
|
||||
final String organisationName, final Long officeId,
|
||||
final String officeName, final Long id, final String firstname,
|
||||
final String lastname, final String externalId,
|
||||
final LocalDate joinedDate) {
|
||||
public ClientData(final Long organisationId, final String organisationName,
|
||||
final Long officeId, final String officeName, final Long id,
|
||||
final String firstname, final String lastname,
|
||||
final String externalId, final LocalDate joinedDate) {
|
||||
this.organisationId = organisationId;
|
||||
this.organisationName = organisationName;
|
||||
this.officeId = officeId;
|
||||
@@ -46,15 +45,15 @@ public class ClientData implements Serializable {
|
||||
this.id = id;
|
||||
this.firstname = firstname;
|
||||
this.lastname = lastname;
|
||||
this.displayName = new StringBuilder(this.firstname).append(' ').append(this.lastname).toString();
|
||||
this.displayName = new StringBuilder(this.firstname).append(' ')
|
||||
.append(this.lastname).toString();
|
||||
this.externalId = externalId;
|
||||
this.joinedDate = joinedDate;
|
||||
}
|
||||
|
||||
|
||||
public int getMaxJoinedOnOffsetFromToday() {
|
||||
return Days.daysBetween(new DateTime(),
|
||||
this.getJoinedDate().toDateMidnight().toDateTime())
|
||||
.getDays();
|
||||
this.getJoinedDate().toDateMidnight().toDateTime()).getDays();
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
|
||||
+3
@@ -5,7 +5,10 @@ import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.codehaus.jackson.map.annotate.JsonFilter;
|
||||
|
||||
@XmlRootElement
|
||||
@JsonFilter("myFilter")
|
||||
public class ClientLoanAccountSummaryCollectionData {
|
||||
|
||||
private List<ClientLoanAccountSummaryData> pendingApprovalLoans = new ArrayList<ClientLoanAccountSummaryData>();
|
||||
|
||||
@@ -19,19 +19,19 @@ public class ClientLoanAccountSummaryData implements Serializable {
|
||||
private boolean waitingForDisbursal;
|
||||
private boolean open;
|
||||
private boolean closed;
|
||||
|
||||
|
||||
private String lifeCycleStatusText;
|
||||
private LocalDate lifeCycleStatusDate;
|
||||
|
||||
// private LocalDate submittedOnDate;
|
||||
// private LocalDate approvedOnDate;
|
||||
// private LocalDate expectedDisbursementDate;
|
||||
// private LocalDate actualDisbursementDate;
|
||||
// private LocalDate expectedFirstRepaymentOnDate;
|
||||
// private LocalDate interestCalculatedFromDate;
|
||||
// private LocalDate expectedMaturityDate;
|
||||
// private LocalDate closedOnDate;
|
||||
|
||||
|
||||
// private LocalDate submittedOnDate;
|
||||
// private LocalDate approvedOnDate;
|
||||
// private LocalDate expectedDisbursementDate;
|
||||
// private LocalDate actualDisbursementDate;
|
||||
// private LocalDate expectedFirstRepaymentOnDate;
|
||||
// private LocalDate interestCalculatedFromDate;
|
||||
// private LocalDate expectedMaturityDate;
|
||||
// private LocalDate closedOnDate;
|
||||
|
||||
public ClientLoanAccountSummaryData() {
|
||||
//
|
||||
}
|
||||
|
||||
@@ -2,9 +2,11 @@ package org.mifosng.data;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.codehaus.jackson.map.annotate.JsonFilter;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
@XmlRootElement(name = "note")
|
||||
@JsonFilter("myFilter")
|
||||
public class NoteData {
|
||||
|
||||
private Long id;
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
package org.mifosng.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class NoteDataList {
|
||||
|
||||
private Collection<NoteData> notes = new ArrayList<NoteData>();
|
||||
|
||||
public NoteDataList() {
|
||||
//
|
||||
}
|
||||
|
||||
public NoteDataList(final Collection<NoteData> notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
|
||||
public Collection<NoteData> getNotes() {
|
||||
return notes;
|
||||
}
|
||||
|
||||
public void setNotes(Collection<NoteData> notes) {
|
||||
this.notes = notes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user