update patch numbers and remove some unused code(non note related).

This commit is contained in:
Keith Woodlock
2013-03-06 17:55:34 +00:00
parent a497aeec55
commit 66232baa01
3 changed files with 4 additions and 10 deletions
@@ -28,7 +28,6 @@ import org.mifosplatform.portfolio.client.exception.ClientNotFoundException;
import org.mifosplatform.portfolio.loanaccount.data.LoanStatusEnumData; import org.mifosplatform.portfolio.loanaccount.data.LoanStatusEnumData;
import org.mifosplatform.portfolio.loanproduct.service.LoanEnumerations; import org.mifosplatform.portfolio.loanproduct.service.LoanEnumerations;
import org.mifosplatform.useradministration.domain.AppUser; import org.mifosplatform.useradministration.domain.AppUser;
import org.mifosplatform.useradministration.service.AppUserReadPlatformService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.JdbcTemplate;
@@ -41,14 +40,12 @@ public class ClientReadPlatformServiceImpl implements ClientReadPlatformService
private final JdbcTemplate jdbcTemplate; private final JdbcTemplate jdbcTemplate;
private final PlatformSecurityContext context; private final PlatformSecurityContext context;
private final OfficeReadPlatformService officeReadPlatformService; private final OfficeReadPlatformService officeReadPlatformService;
private final AppUserReadPlatformService appUserReadPlatformService;
@Autowired @Autowired
public ClientReadPlatformServiceImpl(final PlatformSecurityContext context, final TenantAwareRoutingDataSource dataSource, public ClientReadPlatformServiceImpl(final PlatformSecurityContext context, final TenantAwareRoutingDataSource dataSource,
final OfficeReadPlatformService officeReadPlatformService, final AppUserReadPlatformService appUserReadPlatformService) { final OfficeReadPlatformService officeReadPlatformService) {
this.context = context; this.context = context;
this.officeReadPlatformService = officeReadPlatformService; this.officeReadPlatformService = officeReadPlatformService;
this.appUserReadPlatformService = appUserReadPlatformService;
this.jdbcTemplate = new JdbcTemplate(dataSource); this.jdbcTemplate = new JdbcTemplate(dataSource);
} }
@@ -162,8 +159,7 @@ public class ClientReadPlatformServiceImpl implements ClientReadPlatformService
private static final class ClientLookupMapper implements RowMapper<ClientLookup> { private static final class ClientLookupMapper implements RowMapper<ClientLookup> {
public String clientLookupSchema() { public String clientLookupSchema() {
return "c.id as id, c.display_name as displayName, " return "c.id as id, c.display_name as displayName, " + "c.office_id as officeId, o.name as officeName "
+ "c.office_id as officeId, o.name as officeName "
+ "from m_client c join m_office o on o.id = c.office_id where c.is_deleted=0 "; + "from m_client c join m_office o on o.id = c.office_id where c.is_deleted=0 ";
} }
@@ -350,7 +346,6 @@ public class ClientReadPlatformServiceImpl implements ClientReadPlatformService
} }
} }
@Override @Override
public Collection<ClientIdentifierData> retrieveClientIdentifiers(final Long clientId) { public Collection<ClientIdentifierData> retrieveClientIdentifiers(final Long clientId) {
@@ -47,7 +47,6 @@ public class Group extends AbstractPersistable<Long> {
@JoinColumn(name = "staff_id", nullable = true) @JoinColumn(name = "staff_id", nullable = true)
private Staff staff; private Staff staff;
@SuppressWarnings("unused")
@Column(name = "level_id", nullable = false) @Column(name = "level_id", nullable = false)
private Long levelId; private Long levelId;
@@ -116,7 +115,7 @@ public class Group extends AbstractPersistable<Long> {
} }
public void setStaff(Staff staff) { public void setStaff(final Staff staff) {
this.staff = staff; this.staff = staff;
} }
@@ -130,7 +129,7 @@ public class Group extends AbstractPersistable<Long> {
} }
public void setLevelId(Long levelId) { public void setLevelId(final Long levelId) {
this.levelId = levelId; this.levelId = levelId;
} }