org.ow2.dragon.persistence.bo.organization
Class OrganizationUnit

java.lang.Object
  extended by org.ow2.dragon.persistence.bo.common.BaseObject
      extended by org.ow2.dragon.persistence.bo.common.SearchableBaseObject
          extended by org.ow2.dragon.persistence.bo.common.LinkedEntity
              extended by org.ow2.dragon.persistence.bo.organization.Party
                  extended by org.ow2.dragon.persistence.bo.organization.OrganizationUnit
All Implemented Interfaces:
java.io.Serializable

public class OrganizationUnit
extends Party

Author:
ofabre - eBM WebSourcing
See Also:
Serialized Form

Constructor Summary
OrganizationUnit()
           
 
Method Summary
 void addDiscoveryUrl(DiscoveryUrl discoveryUrl)
           
 void addIdentifier(KeyedReference keyedReference)
           
 void addParty(Party party)
           
 void addPost(Post post)
           
 boolean equals(java.lang.Object other)
          Compares object equality.
 CategoryBag getCategoryBag()
           
 java.util.List<DiscoveryUrl> getDiscoveryUrls()
           
 java.util.List<KeyedReference> getIdentifierBag()
           
 java.util.Set<Party> getParties()
           
 java.util.Set<Post> getPosts()
           
 java.lang.String getType()
           
 int hashCode()
          When you override equals, you should override hashCode.
 boolean isLegalEntity()
           
 void removePost(Post post)
           
 void setCategoryBag(CategoryBag categoryBag)
           
 void setDiscoveryUrls(java.util.List<DiscoveryUrl> discoveryUrls)
           
 void setIdentifierBag(java.util.List<KeyedReference> identifierBag)
           
 void setLegalEntity(boolean isLegalEntity)
           
 void setParties(java.util.Set<Party> parties)
           
 void setPosts(java.util.Set<Post> posts)
           
 void setType(java.lang.String type)
           
 java.lang.String toString()
          Returns a multi-line String with key=value pairs.
 
Methods inherited from class org.ow2.dragon.persistence.bo.organization.Party
addAddress, addDescription, addEmail, addName, getAddresses, getDescriptions, getEmailAddresses, getNames, getParentOrganization, getResponsabilities, isExternal, setAddresses, setDescriptions, setEmailAddresses, setExternal, setNames, setParentOrganization, setResponsabilities
 
Methods inherited from class org.ow2.dragon.persistence.bo.common.LinkedEntity
addFromLink, addToLink, getFromLinks, getToLinks, setFromLinks, setToLinks
 
Methods inherited from class org.ow2.dragon.persistence.bo.common.SearchableBaseObject
getId, setId
 
Methods inherited from class org.ow2.dragon.persistence.bo.common.BaseObject
getCreated, getLastUpdated, setCreated, setLastUpdated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrganizationUnit

public OrganizationUnit()
Method Detail

addIdentifier

public void addIdentifier(KeyedReference keyedReference)

addParty

public void addParty(Party party)

addPost

public void addPost(Post post)

addDiscoveryUrl

public void addDiscoveryUrl(DiscoveryUrl discoveryUrl)

getDiscoveryUrls

public java.util.List<DiscoveryUrl> getDiscoveryUrls()

getParties

public java.util.Set<Party> getParties()

getPosts

public java.util.Set<Post> getPosts()

getType

public java.lang.String getType()

isLegalEntity

public boolean isLegalEntity()

removePost

public void removePost(Post post)

setDiscoveryUrls

public void setDiscoveryUrls(java.util.List<DiscoveryUrl> discoveryUrls)

setLegalEntity

public void setLegalEntity(boolean isLegalEntity)

setParties

public void setParties(java.util.Set<Party> parties)

setPosts

public void setPosts(java.util.Set<Post> posts)

setType

public void setType(java.lang.String type)

getIdentifierBag

public java.util.List<KeyedReference> getIdentifierBag()

setIdentifierBag

public void setIdentifierBag(java.util.List<KeyedReference> identifierBag)

getCategoryBag

public CategoryBag getCategoryBag()

setCategoryBag

public void setCategoryBag(CategoryBag categoryBag)

equals

public boolean equals(java.lang.Object other)
Description copied from class: BaseObject
Compares object equality. When using Hibernate, the primary key should not be a part of this comparison.

Overrides:
equals in class Party
Parameters:
other - object to compare to
Returns:
true/false based on equality tests

hashCode

public int hashCode()
Description copied from class: BaseObject
When you override equals, you should override hashCode. See "Why are equals() and hashCode() importation" for more information: http://www.hibernate.org/109.html

Overrides:
hashCode in class Party
Returns:
hashCode

toString

public java.lang.String toString()
Description copied from class: BaseObject
Returns a multi-line String with key=value pairs.

Overrides:
toString in class Party
Returns:
a String representation of this class.
See Also:
Object.toString()


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.