SEC-51 and SEC-67 related changes. Tested all functions of "filters" version in web browser OK.

This commit is contained in:
Ben Alex
2005-11-04 04:15:57 +00:00
parent 9be82a3d8f
commit 2d74db9a0c
12 changed files with 64 additions and 54 deletions

View File

@@ -87,7 +87,7 @@ public class ContactManagerBackend extends ApplicationObjectSupport
@Secured ({"ROLE_USER","AFTER_ACL_READ"})
@Transactional(readOnly=true)
public Contact getById(Integer id) {
public Contact getById(Long id) {
if (logger.isDebugEnabled()) {
logger.debug("Returning contact with id: " + id);
}
@@ -143,7 +143,7 @@ public class ContactManagerBackend extends ApplicationObjectSupport
@Secured ({"ROLE_USER"})
public void create(Contact contact) {
// Create the Contact itself
contact.setId(new Integer(counter++));
contact.setId(new Long(counter++));
contactDao.create(contact);
// Grant the current principal access to the contact