org.apache.hupa.server.preferences
Class InSessionUserPreferencesStorage

java.lang.Object
  extended by org.apache.hupa.server.preferences.UserPreferencesStorage
      extended by org.apache.hupa.server.preferences.InSessionUserPreferencesStorage

public class InSessionUserPreferencesStorage
extends UserPreferencesStorage

A preferences storage which uses session as repository data


Field Summary
 
Fields inherited from class org.apache.hupa.server.preferences.UserPreferencesStorage
CONTACTS_ATTR, REGEX_OMITTED_EMAILS
 
Constructor Summary
InSessionUserPreferencesStorage(IMAPStoreCache cache, org.apache.commons.logging.Log logger, com.google.inject.Provider<javax.servlet.http.HttpSession> sessionProvider)
           
 
Method Summary
 void addContact(ContactsResult.Contact... contacts)
          Add a new contact to the list.
 ContactsResult.Contact[] getContacts()
          Get the list of contacts
 
Methods inherited from class org.apache.hupa.server.preferences.UserPreferencesStorage
addContact, addContact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InSessionUserPreferencesStorage

@Inject
public InSessionUserPreferencesStorage(IMAPStoreCache cache,
                                              org.apache.commons.logging.Log logger,
                                              com.google.inject.Provider<javax.servlet.http.HttpSession> sessionProvider)
Method Detail

addContact

public void addContact(ContactsResult.Contact... contacts)
Description copied from class: UserPreferencesStorage
Add a new contact to the list. The implementation has to check for duplicates

Specified by:
addContact in class UserPreferencesStorage

getContacts

public ContactsResult.Contact[] getContacts()
Description copied from class: UserPreferencesStorage
Get the list of contacts

Specified by:
getContacts in class UserPreferencesStorage


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.