it.sistematica.isharedoc.service.addressbook
Class AddressBookServerLdapImpl

java.lang.Object
  extended by it.sistematica.isharedoc.service.addressbook.AddressBookServerLdapImpl
All Implemented Interfaces:
AddressBookServer

public class AddressBookServerLdapImpl
extends java.lang.Object
implements AddressBookServer


Constructor Summary
AddressBookServerLdapImpl(AddressBook addressBook)
           
 
Method Summary
 java.lang.Boolean canCreateRow()
          Can create row.
 java.lang.Boolean canDeleteRow()
          Can delete row.
 java.lang.Boolean canUpdateRow()
          Can update row.
 void delete(AddressBookEntry entry)
          Delete.
 AddressBook getAddressBook()
          Gets the address book.
 java.lang.String getLastResultMessage()
          Gets the last result message.
 java.util.Map<java.lang.String,java.lang.String> getServerProperties()
          Gets the server properties.
 java.lang.Boolean isEnabled()
          Checks if is enabled.
 AddressBookEntries listEntries(java.lang.String search, int first, int max)
          List entries.
 AddressBookEntries listEntries(java.lang.String attributeName, java.lang.String spotlight, int first, int max)
          List entries.
 AddressBookEntry load(java.lang.String id)
          Load.
 AddressBookEntry makeEmptyEntry()
          Make empty entry.
 void save(AddressBookEntry entry)
          Save.
 AddressBookEntries searchEntries(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Search entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressBookServerLdapImpl

public AddressBookServerLdapImpl(AddressBook addressBook)
Method Detail

getAddressBook

public AddressBook getAddressBook()
Description copied from interface: AddressBookServer
Gets the address book.

Specified by:
getAddressBook in interface AddressBookServer
Returns:
the address book

getLastResultMessage

public java.lang.String getLastResultMessage()
Description copied from interface: AddressBookServer
Gets the last result message.

Specified by:
getLastResultMessage in interface AddressBookServer
Returns:
the last result message

getServerProperties

public java.util.Map<java.lang.String,java.lang.String> getServerProperties()
Description copied from interface: AddressBookServer
Gets the server properties.

Specified by:
getServerProperties in interface AddressBookServer
Returns:
the server properties

isEnabled

public java.lang.Boolean isEnabled()
Description copied from interface: AddressBookServer
Checks if is enabled.

Specified by:
isEnabled in interface AddressBookServer
Returns:
the boolean

canCreateRow

public java.lang.Boolean canCreateRow()
Description copied from interface: AddressBookServer
Can create row.

Specified by:
canCreateRow in interface AddressBookServer
Returns:
the boolean

canUpdateRow

public java.lang.Boolean canUpdateRow()
Description copied from interface: AddressBookServer
Can update row.

Specified by:
canUpdateRow in interface AddressBookServer
Returns:
the boolean

canDeleteRow

public java.lang.Boolean canDeleteRow()
Description copied from interface: AddressBookServer
Can delete row.

Specified by:
canDeleteRow in interface AddressBookServer
Returns:
the boolean

listEntries

public AddressBookEntries listEntries(java.lang.String search,
                                      int first,
                                      int max)
Description copied from interface: AddressBookServer
List entries.

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

listEntries

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

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

searchEntries

@Transactional
public AddressBookEntries searchEntries(java.util.Map<java.lang.String,java.lang.Object> attributes)
Description copied from interface: AddressBookServer
Search entries.

Specified by:
searchEntries in interface AddressBookServer
Parameters:
attributes - the attributes
Returns:
the address book entries

makeEmptyEntry

@Transactional
public AddressBookEntry makeEmptyEntry()
Description copied from interface: AddressBookServer
Make empty entry.

Specified by:
makeEmptyEntry in interface AddressBookServer
Returns:
the address book entry

load

public AddressBookEntry load(java.lang.String id)
Description copied from interface: AddressBookServer
Load.

Specified by:
load in interface AddressBookServer
Parameters:
id - the id
Returns:
the address book entry

save

public void save(AddressBookEntry entry)
Description copied from interface: AddressBookServer
Save.

Specified by:
save in interface AddressBookServer
Parameters:
entry - the entry

delete

public void delete(AddressBookEntry entry)
Description copied from interface: AddressBookServer
Delete.

Specified by:
delete in interface AddressBookServer
Parameters:
entry - the entry