it.sistematica.isharedoc.service.addressbook
Class AddressBookServiceImpl

java.lang.Object
  extended by it.sistematica.isharedoc.service.addressbook.AddressBookServiceImpl
All Implemented Interfaces:
AddressBookService, org.springframework.beans.factory.InitializingBean

public class AddressBookServiceImpl
extends java.lang.Object
implements AddressBookService, org.springframework.beans.factory.InitializingBean


Field Summary
(package private)  it.neverworks.data.EntityManager entities
           
(package private)  it.neverworks.application.service.UserInfo userInfo
           
 
Constructor Summary
AddressBookServiceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 AddressBook getAddressBook(java.lang.String addressBookId)
          Gets the address book.
 AddressBookServer getConnection(AddressBook addressBook)
          Gets the connection.
 AddressBookEntries listEntries(AddressBook addressBook, java.lang.String spotlight, int first, int max)
          List entries.
 AddressBookEntries listEntries(AddressBook addressBook, java.lang.String attributeName, java.lang.String spotlight, int first, int max)
          List entries.
 void setAddressbooks(java.util.List<AddressBookServer> addressbooks)
           
 void setDataSourceFile(java.lang.String dataSourceFile)
           
 java.util.List<AddressBook> sources(java.lang.Boolean enabledOnly)
          Sources.
 java.util.List<AddressBook> sources(java.lang.Boolean enabledOnly, AddressBook.AddressBookType... types)
          Sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entities

it.neverworks.data.EntityManager entities

userInfo

it.neverworks.application.service.UserInfo userInfo
Constructor Detail

AddressBookServiceImpl

public AddressBookServiceImpl()
Method Detail

setDataSourceFile

public void setDataSourceFile(java.lang.String dataSourceFile)

setAddressbooks

public void setAddressbooks(java.util.List<AddressBookServer> addressbooks)

afterPropertiesSet

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

getAddressBook

public AddressBook getAddressBook(java.lang.String addressBookId)
Description copied from interface: AddressBookService
Gets the address book.

Specified by:
getAddressBook in interface AddressBookService
Parameters:
addressBookId - the address book id
Returns:
the address book

getConnection

public AddressBookServer getConnection(AddressBook addressBook)
Description copied from interface: AddressBookService
Gets the connection.

Specified by:
getConnection in interface AddressBookService
Parameters:
addressBook - the address book
Returns:
the connection

sources

@Transactional
public java.util.List<AddressBook> sources(java.lang.Boolean enabledOnly)
Description copied from interface: AddressBookService
Sources.

Specified by:
sources in interface AddressBookService
Parameters:
enabledOnly - the enabled only
Returns:
the list

sources

@Transactional
public java.util.List<AddressBook> sources(java.lang.Boolean enabledOnly,
                                                         AddressBook.AddressBookType... types)
Description copied from interface: AddressBookService
Sources.

Specified by:
sources in interface AddressBookService
Parameters:
enabledOnly - the enabled only
types - the types
Returns:
the list

listEntries

public AddressBookEntries listEntries(AddressBook addressBook,
                                      java.lang.String spotlight,
                                      int first,
                                      int max)
Description copied from interface: AddressBookService
List entries.

Specified by:
listEntries in interface AddressBookService
Parameters:
addressBook - the address book
spotlight - the spotlight
first - the first
max - the max
Returns:
the address book entries

listEntries

public AddressBookEntries listEntries(AddressBook addressBook,
                                      java.lang.String attributeName,
                                      java.lang.String spotlight,
                                      int first,
                                      int max)
Description copied from interface: AddressBookService
List entries.

Specified by:
listEntries in interface AddressBookService
Parameters:
addressBook - the address book
attributeName - the attribute name
spotlight - the spotlight
first - the first
max - the max
Returns:
the address book entries