delete some list dtos
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
package org.mifosng.data;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
@XmlRootElement
|
|
||||||
public class CurrencyList {
|
|
||||||
|
|
||||||
private Collection<CurrencyData> currencies = new ArrayList<CurrencyData>();
|
|
||||||
|
|
||||||
protected CurrencyList() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
public CurrencyList(final List<CurrencyData> currencyOptions) {
|
|
||||||
this.currencies = currencyOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Collection<CurrencyData> getCurrencies() {
|
|
||||||
return this.currencies;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCurrencies(final Collection<CurrencyData> currencies) {
|
|
||||||
this.currencies = currencies;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
package org.mifosng.data;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Collection;
|
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
|
||||||
|
|
||||||
@XmlRootElement
|
|
||||||
public class OrganisationList {
|
|
||||||
|
|
||||||
private Collection<OrganisationReadModel> organisations = new ArrayList<OrganisationReadModel>();
|
|
||||||
|
|
||||||
protected OrganisationList() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
public OrganisationList(
|
|
||||||
final Collection<OrganisationReadModel> organisations) {
|
|
||||||
this.organisations = organisations;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Collection<OrganisationReadModel> getOrganisations() {
|
|
||||||
return this.organisations;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOrganisations(
|
|
||||||
final Collection<OrganisationReadModel> organisations) {
|
|
||||||
this.organisations = organisations;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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 PermissionList {
|
|
||||||
|
|
||||||
private Collection<PermissionData> permissions = new ArrayList<PermissionData>();
|
|
||||||
|
|
||||||
protected PermissionList() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
public PermissionList(final Collection<PermissionData> permissions) {
|
|
||||||
this.permissions = permissions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Collection<PermissionData> getPermissions() {
|
|
||||||
return this.permissions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPermissions(final Collection<PermissionData> permissions) {
|
|
||||||
this.permissions = permissions;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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 UserList {
|
|
||||||
|
|
||||||
private Collection<AppUserData> users = new ArrayList<AppUserData>();
|
|
||||||
|
|
||||||
protected UserList() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
public UserList(final Collection<AppUserData> users) {
|
|
||||||
this.users = users;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Collection<AppUserData> getUsers() {
|
|
||||||
return this.users;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUsers(final Collection<AppUserData> users) {
|
|
||||||
this.users = users;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -22,6 +22,7 @@ import org.mifosng.data.NoteDataList;
|
|||||||
import org.mifosng.data.command.ClientCommand;
|
import org.mifosng.data.command.ClientCommand;
|
||||||
import org.mifosng.data.command.NoteCommand;
|
import org.mifosng.data.command.NoteCommand;
|
||||||
import org.mifosng.platform.api.infrastructure.ApiDataConversionService;
|
import org.mifosng.platform.api.infrastructure.ApiDataConversionService;
|
||||||
|
import org.mifosng.platform.api.infrastructure.ApiJSONFormattingService;
|
||||||
import org.mifosng.platform.client.service.ClientReadPlatformService;
|
import org.mifosng.platform.client.service.ClientReadPlatformService;
|
||||||
import org.mifosng.platform.client.service.ClientWritePlatformService;
|
import org.mifosng.platform.client.service.ClientWritePlatformService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -33,6 +34,10 @@ import org.springframework.stereotype.Component;
|
|||||||
@Scope("singleton")
|
@Scope("singleton")
|
||||||
public class ClientApiResource {
|
public class ClientApiResource {
|
||||||
|
|
||||||
|
private String defaultFieldList = "openingDate";
|
||||||
|
private String allowedFieldList = "allowedParents";
|
||||||
|
private String filterName = "myFilter";
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ClientReadPlatformService clientReadPlatformService;
|
private ClientReadPlatformService clientReadPlatformService;
|
||||||
|
|
||||||
@@ -42,6 +47,9 @@ public class ClientApiResource {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ApiDataConversionService apiDataConversionService;
|
private ApiDataConversionService apiDataConversionService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ApiJSONFormattingService jsonFormattingService;
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
||||||
@Produces({MediaType.APPLICATION_JSON})
|
@Produces({MediaType.APPLICATION_JSON})
|
||||||
|
|||||||
Reference in New Issue
Block a user