org.ow2.dragon.ui.uibeans.organization
Class OrganizationBean

java.lang.Object
  extended by org.ow2.dragon.ui.uibeans.organization.PartyBean
      extended by org.ow2.dragon.ui.uibeans.organization.OrganizationBean

public class OrganizationBean
extends PartyBean

Author:
ambarthe, ofabre - eBM Websourcing

Constructor Summary
OrganizationBean()
          Default Constructor
OrganizationBean(org.ow2.dragon.api.to.organization.OrganizationUnitTO orgTO)
           
 
Method Summary
 java.lang.String canDeletePost(org.ow2.dragon.api.to.organization.PostTO postTo)
          Try to retrieve a Person of this Organization which is linked to the Post to delete.
 void clear()
          Clears the organization.
 java.lang.String create()
          Creates an organization object with current attributes
 java.lang.String delete()
          Deletes the current organization from the database
 java.lang.String deletePerson(java.lang.String personId)
           
 java.lang.String deletePost(java.lang.String postId)
           
 java.lang.String getBusinessDomain()
           
 java.lang.String getCity()
           
 java.lang.String getComplement()
           
 java.lang.String getCountry()
           
 java.lang.String getDiscoveryURL()
           
 java.lang.String getEmailAddress()
           
 java.lang.String getGenericName()
           
 java.lang.String getId()
           
 boolean getIsLegalEntity()
           
 java.lang.String getMotherOrganizationId()
           
 java.lang.String getName()
           
 java.util.List<org.ow2.dragon.api.to.organization.PostTO> getOrgPosts()
           
 java.util.List<org.ow2.dragon.api.to.organization.PersonTO> getPersons()
           
 java.lang.String getState()
           
 java.lang.String getStreet()
           
 java.lang.String getStreetNumber()
           
 java.lang.String getType()
           
 java.lang.String getZipcode()
           
 boolean isPostInPostList(javax.servlet.http.HttpServletRequest request)
           
 boolean isPostToAdd(javax.servlet.http.HttpServletRequest iRequest)
           
 void load(javax.servlet.http.HttpServletRequest iRequest)
          Loads an organization from the request parameter 'id'.
 void loadOrganizationPersons()
           
 void loadOrganizationPosts()
           
 void reset()
          Resets changes made to the current organization attributes.
 java.lang.String save()
          Saves the current organization with changes.
 void setBusinessDomain(java.lang.String businessDomain)
           
 void setCity(java.lang.String city)
           
 void setComplement(java.lang.String complement)
           
 void setCountry(java.lang.String country)
           
 void setDiscoveryURL(java.lang.String discoveryURL)
           
 void setEmailAddress(java.lang.String emailAddress)
           
 void setIsLegalEntity(boolean isLegalEntity)
           
 void setMotherOrganizationId(java.lang.String motherOrganizationId)
           
 void setName(java.lang.String name)
           
 void setState(java.lang.String state)
           
 void setStreet(java.lang.String street)
           
 void setStreetNumber(java.lang.String streetNumber)
           
 void setType(java.lang.String type)
           
 void setZipcode(java.lang.String zipcode)
           
 java.lang.String toString()
           
 void validate()
          Validate the data put for the organization object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrganizationBean

public OrganizationBean()
Default Constructor


OrganizationBean

public OrganizationBean(org.ow2.dragon.api.to.organization.OrganizationUnitTO orgTO)
                 throws com.ebm_ws.infra.bricks.error.LocalizedError
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError
Method Detail

load

public void load(javax.servlet.http.HttpServletRequest iRequest)
          throws com.ebm_ws.infra.bricks.error.LocalizedError
Loads an organization from the request parameter 'id'.

Specified by:
load in class PartyBean
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

loadOrganizationPosts

public void loadOrganizationPosts()
                           throws org.ow2.dragon.api.service.organization.OrganizationException,
                                  DragonDelegateException
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException

loadOrganizationPersons

public void loadOrganizationPersons()
                             throws org.ow2.dragon.api.service.organization.OrganizationException,
                                    DragonDelegateException
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException

save

public java.lang.String save()
                      throws com.ebm_ws.infra.bricks.error.LocalizedError
Saves the current organization with changes.

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

isPostToAdd

public boolean isPostToAdd(javax.servlet.http.HttpServletRequest iRequest)
                    throws com.ebm_ws.infra.bricks.error.LocalizedError
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

isPostInPostList

public boolean isPostInPostList(javax.servlet.http.HttpServletRequest request)

canDeletePost

public java.lang.String canDeletePost(org.ow2.dragon.api.to.organization.PostTO postTo)
                               throws com.ebm_ws.infra.bricks.error.LocalizedError
Try to retrieve a Person of this Organization which is linked to the Post to delete. If it exist, the post can't be deleted

Parameters:
postBean -
Returns:
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

deletePost

public java.lang.String deletePost(java.lang.String postId)
                            throws com.ebm_ws.infra.bricks.error.LocalizedError
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

deletePerson

public java.lang.String deletePerson(java.lang.String personId)
                              throws com.ebm_ws.infra.bricks.error.LocalizedError
Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

create

public java.lang.String create()
                        throws com.ebm_ws.infra.bricks.error.LocalizedError
Creates an organization object with current attributes

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

delete

public java.lang.String delete()
                        throws com.ebm_ws.infra.bricks.error.LocalizedError
Deletes the current organization from the database

Throws:
com.ebm_ws.infra.bricks.error.LocalizedError

reset

public void reset()
Resets changes made to the current organization attributes.


clear

public void clear()
Clears the organization.


validate

public void validate()
              throws com.ebm_ws.infra.bricks.validation.ValidationErrors
Validate the data put for the organization object

Throws:
com.ebm_ws.infra.bricks.validation.ValidationErrors

getId

public java.lang.String getId()
Specified by:
getId in class PartyBean

getPersons

public java.util.List<org.ow2.dragon.api.to.organization.PersonTO> getPersons()
Returns:
the persons

getOrgPosts

public java.util.List<org.ow2.dragon.api.to.organization.PostTO> getOrgPosts()
Returns:
the posts

getBusinessDomain

public java.lang.String getBusinessDomain()
Returns:
the businessDomain

setBusinessDomain

public void setBusinessDomain(java.lang.String businessDomain)
Parameters:
businessDomain - the businessDomain to set

getDiscoveryURL

public java.lang.String getDiscoveryURL()
Returns:
the discoveryURL

setDiscoveryURL

public void setDiscoveryURL(java.lang.String discoveryURL)
Parameters:
discoveryURL - the discoveryURL to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getType

public java.lang.String getType()
Returns:
the type

setType

public void setType(java.lang.String type)
Parameters:
type - the type to set

getIsLegalEntity

public boolean getIsLegalEntity()
Returns:
the isLegalEntity

setIsLegalEntity

public void setIsLegalEntity(boolean isLegalEntity)
Parameters:
isLegalEntity - the isLegalEntity to set

getMotherOrganizationId

public java.lang.String getMotherOrganizationId()
Returns:
the motherOrganizationId

setMotherOrganizationId

public void setMotherOrganizationId(java.lang.String motherOrganizationId)
Parameters:
motherOrganizationId - the motherOrganizationId to set

getStreetNumber

public java.lang.String getStreetNumber()
Returns:
the streetNumber

setStreetNumber

public void setStreetNumber(java.lang.String streetNumber)
Parameters:
streetNumber - the streetNumber to set

getStreet

public java.lang.String getStreet()
Returns:
the street

setStreet

public void setStreet(java.lang.String street)
Parameters:
street - the street to set

getComplement

public java.lang.String getComplement()
Returns:
the complement

setComplement

public void setComplement(java.lang.String complement)
Parameters:
complement - the complement to set

getZipcode

public java.lang.String getZipcode()
Returns:
the zipcode

setZipcode

public void setZipcode(java.lang.String zipcode)
Parameters:
zipcode - the zipcode to set

getCity

public java.lang.String getCity()
Returns:
the city

setCity

public void setCity(java.lang.String city)
Parameters:
city - the city to set

getState

public java.lang.String getState()
Returns:
the state

setState

public void setState(java.lang.String state)
Parameters:
state - the state to set

getCountry

public java.lang.String getCountry()
Returns:
the country

setCountry

public void setCountry(java.lang.String country)
Parameters:
country - the country to set

getEmailAddress

public java.lang.String getEmailAddress()

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)

getGenericName

public java.lang.String getGenericName()
Specified by:
getGenericName in class PartyBean

toString

public java.lang.String toString()
Specified by:
toString in class PartyBean


Copyright © 2008 eBMWebsourcing. All Rights Reserved.