sample.contact
Class ContactManagerBackend

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by sample.contact.ContactManagerBackend
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, ContactManager

public class ContactManagerBackend
extends org.springframework.context.support.ApplicationObjectSupport
implements ContactManager, org.springframework.beans.factory.InitializingBean

Concrete implementation of ContactManager.

Version:
$Id: ContactManagerBackend.java 1754 2006-11-17 02:01:21Z benalex $
Author:
Ben Alex

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
ContactManagerBackend()
           
 
Method Summary
 void addPermission(Contact contact, Sid recipient, Permission permission)
           
 void afterPropertiesSet()
           
 void create(Contact contact)
           
 void delete(Contact contact)
           
 void deletePermission(Contact contact, Sid recipient, Permission permission)
           
 List getAll()
           
 List getAllRecipients()
           
 Contact getById(Long id)
           
 Contact getRandomContact()
          This is a public method.
protected  String getUsername()
           
 void setContactDao(ContactDao contactDao)
           
 void setMutableAclService(MutableAclService mutableAclService)
           
 void update(Contact contact)
           
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactManagerBackend

public ContactManagerBackend()
Method Detail

addPermission

public void addPermission(Contact contact,
                          Sid recipient,
                          Permission permission)
Specified by:
addPermission in interface ContactManager

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

create

public void create(Contact contact)
Specified by:
create in interface ContactManager

delete

public void delete(Contact contact)
Specified by:
delete in interface ContactManager

deletePermission

public void deletePermission(Contact contact,
                             Sid recipient,
                             Permission permission)
Specified by:
deletePermission in interface ContactManager

getAll

public List getAll()
Specified by:
getAll in interface ContactManager

getAllRecipients

public List getAllRecipients()
Specified by:
getAllRecipients in interface ContactManager

getById

public Contact getById(Long id)
Specified by:
getById in interface ContactManager

getRandomContact

public Contact getRandomContact()
This is a public method.

Specified by:
getRandomContact in interface ContactManager
Returns:
DOCUMENT ME!

getUsername

protected String getUsername()

setContactDao

public void setContactDao(ContactDao contactDao)

setMutableAclService

public void setMutableAclService(MutableAclService mutableAclService)

update

public void update(Contact contact)


Copyright © 2004-2012 Interface21, Inc. All Rights Reserved.