Java Doc for AddressBookBean.java in  » Groupware » ivatagroupware » com » ivata » groupware » business » addressbook » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » ivatagroupware » com.ivata.groupware.business.addressbook 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ivata.groupware.business.addressbook.AddressBookBean

AddressBookBean
public class AddressBookBean implements SessionBean,AddressBook(Code)

This address book provides clients with access to the register of people within the ivata groupware system.

Actions are here to retrieve people, change their details and enter new people into the system. This bean manages people's street and telecommunications addresses, together with which people are users and what group(s) each person is a member of.

Furthermore, this bean is responsible for assigning and maintaining employee information.

Note, however that whilst the addressbook may react on which people are users (it checks those people always have an email address), this EJB is not responsible for adding, removing or amending users or their passwords. For that functionality, see the com.ivata.groupware.admin.security.SecurityBeanSecurityBean .


since:
   2002-05-12
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.4 $
version:
   TODO: the employee and user methods need to check the user rights


Field Summary
 SessionContextsessionContext
    


Method Summary
public  GroupDOaddAddressBook(SecuritySession securitySession, GroupDO groupDO)
    
public  GroupDOaddGroup(SecuritySession securitySession, GroupDO groupDO)
    

Add a new group to the address book.


Parameters:
  userName - the name of the user who wants to add the group.
public  PersonDOaddPerson(SecuritySession securitySession, PersonDO personDO)
    

Add a new person to the address book.


Parameters:
  personDO - data object containing the details of theperson you want to add.
public  GroupDOaddUserGroup(SecuritySession securitySession, GroupDO groupDO)
    
public  GroupDOamendGroup(SecuritySession securitySession, GroupDO groupDO)
    

Amend the details of a group in the public address book.


Parameters:
  userName - the name of the user who wants to amend the group.
public  PersonDOamendPerson(SecuritySession securitySession, PersonDO personDO)
    

Change/update a person's details in the addressbook.


Parameters:
  personDO - data object containing the details of theperson you want to amend.
public  voidejbActivate()
    
public  voidejbCreate()
    

Called by the container just after the bean has been created.


exception:
  CreateException - if any error occurs.
public  voidejbPassivate()
    

Called by the container to notify the entity object it will be deactivated.

final public  voidejbRemove()
    

This method is called by the container when the bean is about to be removed.

This method will be called after a client calls the remove method of the remote/local home interface.


throws:
  RemoveException - if any error occurs.
public  ListfindAddressBooks(SecuritySession securitySession, boolean includePersonal)
    
public  ListfindAllCountries(SecuritySession securitySession)
    
public  ListfindAllPeopleInGroup(SecuritySession securitySession, GroupDO group, String initialLetter)
    
public  CountryDOfindCountryByCode(SecuritySession securitySession, String countryCode)
    

Find a single county identified by its two-letter country code.


Parameters:
  countryCode - two-letter internet country code.
public  GroupDOfindGroupByPrimaryKey(SecuritySession securitySession, Integer id)
    

Find a group in the address book by its unique identifier.


Parameters:
  id - the unique identifier of the group to find.
public  ListfindGroupsByParent(SecuritySession securitySession, Integer parentId)
    

Find all groups which are siblings, identified by the parent group.

public  PersonDOfindPersonByPrimaryKey(SecuritySession securitySession, String id)
    

Find a person in the address book by their unique identifier.


Parameters:
  id - the unique identifier of the person to find.
public  PersonDOfindPersonByUserName(SecuritySession securitySession, String userName)
    

Find a person in the address book by their user name.


Parameters:
  userName - Name of the user to find.
public  GroupDOfindPersonalAddressBook(SecuritySession securitySession)
    
public  ListfindUserGroups(SecuritySession securitySession, boolean includeAdministrator)
    
public  voidremoveGroup(SecuritySession securitySession, Integer id)
    

Remove a group from the public address book.


Parameters:
  userName - the name of the user who wants to remove the group.
public  voidremovePerson(SecuritySession securitySession, Integer id)
    

Remove a person from the address book.


Parameters:
  personDO - data object containing the details of theperson you want to remove.
final public  voidsetSessionContext(SessionContext sessionContext)
    

Set up the context for this entity object.

public  ValidationErrorsvalidate(SecuritySession securitySession, AddressDO addressDO)
    

Confirm all of the elements of the person are address and valid, before the message is sent.


Parameters:
  addressDO - data object to check for consistency andcompleteness.
public  ValidationErrorsvalidate(SecuritySession securitySession, GroupDO groupDO)
    

Confirm all of the elements of the group are present and valid, before the message is sent.


Parameters:
  groupDO - data object to check for consistency andcompleteness.
public  ValidationErrorsvalidate(SecuritySession securitySession, PersonDO personDO)
    

Confirm all of the elements of the person are present and valid, before the message is sent.


Parameters:
  personDO - data object to check for consistency andcompleteness.

Field Detail
sessionContext
SessionContext sessionContext(Code)

Provides the session bean with container-specific information.






Method Detail
addAddressBook
public GroupDO addAddressBook(SecuritySession securitySession, GroupDO groupDO) throws SystemException(Code)

Add bew AddressBook.


Parameters:
  userName -
Parameters:
  groupDO -



addGroup
public GroupDO addGroup(SecuritySession securitySession, GroupDO groupDO) throws SystemException(Code)

Add a new group to the address book.


Parameters:
  userName - the name of the user who wants to add the group. This isused to check user rights.
Parameters:
  groupDO - a data object containing all the detailsof the group to add.
exception:
  com.ivata.groupware.ejb.entity.UserRightException - if the userprovided is not entitled to add this group
exception:
  com.ivata.groupware.ejb.entity.InvalidFieldValueException - if a field value in the new group contains an invalid value the new group data object, with the details as theynow are in the adressbook.



addPerson
public PersonDO addPerson(SecuritySession securitySession, PersonDO personDO) throws SystemException(Code)

Add a new person to the address book.


Parameters:
  personDO - data object containing the details of theperson you want to add. the new person data object, with the details as theynow are in the adressbook.



addUserGroup
public GroupDO addUserGroup(SecuritySession securitySession, GroupDO groupDO) throws SystemException(Code)

add new userGroup.


Parameters:
  userName -
Parameters:
  groupDO -



amendGroup
public GroupDO amendGroup(SecuritySession securitySession, GroupDO groupDO) throws SystemException(Code)

Amend the details of a group in the public address book.


Parameters:
  userName - the name of the user who wants to amend the group. Thisis used to check user rights.
Parameters:
  groupDO - a data object containing all the detailsof the group to amend.
exception:
  com.ivata.groupware.ejb.entity.UserRightException - if the userprovided is not entitled to amend this group.
exception:
  com.ivata.groupware.ejb.entity.InvalidFieldValueException - if a field value in the new group contains an invalid value. the new group data object, with the details as theynow are in the adressbook.



amendPerson
public PersonDO amendPerson(SecuritySession securitySession, PersonDO personDO) throws SystemException(Code)

Change/update a person's details in the addressbook.


Parameters:
  personDO - data object containing the details of theperson you want to amend. the new person data object, with the details as theynow are in the adressbook.



ejbActivate
public void ejbActivate()(Code)

Called by the container to notify an entity object it has been activated.




ejbCreate
public void ejbCreate() throws CreateException(Code)

Called by the container just after the bean has been created.


exception:
  CreateException - if any error occurs. Never thrown by thisclass.



ejbPassivate
public void ejbPassivate()(Code)

Called by the container to notify the entity object it will be deactivated. Called just before deactivation.




ejbRemove
final public void ejbRemove()(Code)

This method is called by the container when the bean is about to be removed.

This method will be called after a client calls the remove method of the remote/local home interface.


throws:
  RemoveException - if any error occurs. Currently never thrown bythis class.



findAddressBooks
public List findAddressBooks(SecuritySession securitySession, boolean includePersonal) throws SystemException(Code)

get Map of all address book names which are allowed with specific access.


Parameters:
  userName -
Parameters:
  access -



findAllCountries
public List findAllCountries(SecuritySession securitySession) throws SystemException(Code)

Find all of the countries in the system.

all of the coutries in the system as a Listof com.ivata.groupware.business.addressbook.address.country.CountryDO CountryDOinstances.



findAllPeopleInGroup
public List findAllPeopleInGroup(SecuritySession securitySession, GroupDO group, String initialLetter) throws SystemException(Code)

Find All People in a specific address book.

See Also:   com.ivata.groupware.business.addressbook.AddressBook.findAllPeople(com.ivata.groupware.admin.security.server.SecuritySessionIntegerIntegerString)



findCountryByCode
public CountryDO findCountryByCode(SecuritySession securitySession, String countryCode) throws SystemException(Code)

Find a single county identified by its two-letter country code.


Parameters:
  countryCode - two-letter internet country code. details of the country as an instance ofcom.ivata.groupware.business.addressbook.address.country.CountryDO CountryDO),or null if no such country exists.



findGroupByPrimaryKey
public GroupDO findGroupByPrimaryKey(SecuritySession securitySession, Integer id) throws SystemException(Code)

Find a group in the address book by its unique identifier.


Parameters:
  id - the unique identifier of the group to find. the data object of the group which matches this uniqueidentifier.



findGroupsByParent
public List findGroupsByParent(SecuritySession securitySession, Integer parentId) throws SystemException(Code)

Find all groups which are siblings, identified by the parent group.


See Also:   com.ivata.groupware.business.addressbook.AddressBook.findGroupsByParent(com.ivata.groupware.admin.security.server.SecuritySessionInteger)



findPersonByPrimaryKey
public PersonDO findPersonByPrimaryKey(SecuritySession securitySession, String id) throws SystemException(Code)

Find a person in the address book by their unique identifier.


Parameters:
  id - the unique identifier of the person to find. the person data object which matches this id, with thedetails as they now are in the adressbook.



findPersonByUserName
public PersonDO findPersonByUserName(SecuritySession securitySession, String userName) throws SystemException(Code)

Find a person in the address book by their user name.


Parameters:
  userName - Name of the user to find. the person data object which matches this user name.
See Also:   com.ivata.groupware.business.addressbook.AddressBook.findPersonByUserName(com.ivata.groupware.admin.security.server.SecuritySessionString)



findPersonalAddressBook
public GroupDO findPersonalAddressBook(SecuritySession securitySession) throws SystemException(Code)

Find Id of personal AddressBook.


Parameters:
  userName -



findUserGroups
public List findUserGroups(SecuritySession securitySession, boolean includeAdministrator) throws SystemException(Code)

get Map of all usergroup names which are allowed with specific access.


Parameters:
  userName -
Parameters:
  access -



removeGroup
public void removeGroup(SecuritySession securitySession, Integer id) throws SystemException(Code)

Remove a group from the public address book.


Parameters:
  userName - the name of the user who wants to remove the group. Thisis used to check user rights.
Parameters:
  groupDO - a data object containing all the detailsof the group to remove. The id of the group is used to identify whichgroup to remove.
exception:
  com.ivata.groupware.ejb.entity.UserRightException - if the userprovided is not entitled to remvoe this group.
exception:
  com.ivata.groupware.ejb.entity.InvalidFieldValueException - if the id of the group contains an invalid value.



removePerson
public void removePerson(SecuritySession securitySession, Integer id) throws SystemException(Code)

Remove a person from the address book.


Parameters:
  personDO - data object containing the details of theperson you want to remove. The id is used to locate and remove theperson.



setSessionContext
final public void setSessionContext(SessionContext sessionContext)(Code)

Set up the context for this entity object. The session bean stores the context for later use.


Parameters:
  sessionContext - the new context which the session object shouldstore.



validate
public ValidationErrors validate(SecuritySession securitySession, AddressDO addressDO) throws SystemException(Code)

Confirm all of the elements of the person are address and valid, before the message is sent.


Parameters:
  addressDO - data object to check for consistency andcompleteness. a collection of validation errors if any of themandatory fields are missing, or if fields contain invalid values.



validate
public ValidationErrors validate(SecuritySession securitySession, GroupDO groupDO) throws SystemException(Code)

Confirm all of the elements of the group are present and valid, before the message is sent.


Parameters:
  groupDO - data object to check for consistency andcompleteness. a collection of validation errors if any of themandatory fields are missing, or if fields contain invalid values.



validate
public ValidationErrors validate(SecuritySession securitySession, PersonDO personDO) throws SystemException(Code)

Confirm all of the elements of the person are present and valid, before the message is sent.


Parameters:
  personDO - data object to check for consistency andcompleteness. a collection of validation errors if any of themandatory fields are missing, or if fields contain invalid values.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.