it.sistematica.isharedoc.model.organization
Class Organization

java.lang.Object
  extended by it.sistematica.isharedoc.model.organization.Organization
All Implemented Interfaces:
it.neverworks.application.data.tracking.Loggable, it.neverworks.application.model.CreationAuditable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, java.io.Serializable

public class Organization
extends java.lang.Object
implements java.io.Serializable, it.neverworks.application.model.ModificationAuditable, PartitionAttribute, it.neverworks.application.data.tracking.Loggable

See Also:
Serialized Form

Field Summary
protected  java.lang.String code
           
protected  java.util.Date created
           
protected  it.neverworks.security.User createdBy
           
protected  java.lang.String description
           
protected  java.lang.Long id
           
protected  java.util.Set<Organization> inheritedOrganizations
          Deprecated. 
protected  java.util.List<LocationAttribute> locations
           
protected  java.util.Date modified
           
protected  it.neverworks.security.User modifiedBy
           
protected  java.lang.String name
           
protected  java.util.List<Organization> oldChilds
          Deprecated. 
protected  Organization oldParent
          Deprecated. 
protected  OrganizationVersion oldVersion
          Deprecated. 
protected  OrganizationType organizationType
           
protected  java.util.List<OrganizationUser> partecipants
           
protected  Partition partition
           
protected  java.util.List<Swimlane> swimlanes
           
protected  java.util.List<OrganizationTree> trees
           
 
Constructor Summary
Organization()
           
 
Method Summary
 void addInheritedOrganization(Organization organization)
           
 void addLocation(LocationAttribute location)
           
 void addPartecipant(OrganizationUser partecipant)
           
 void addSwimlane(Swimlane swimlane)
           
 void addTree(OrganizationTree tree)
           
 boolean equals(java.lang.Object obj)
           
 java.util.List<OrganizationUser> getActivePartecipants()
           
 OrganizationTree getActiveTree()
           
 java.util.List<Organization> getAscendings()
           
 java.lang.String getCode()
           
 java.util.Date getCreated()
           
 it.neverworks.security.User getCreatedBy()
           
 java.lang.Boolean getDeleted()
           
 java.lang.String getDescription()
           
 java.lang.Boolean getEnabled()
           
 java.lang.String getFullName()
           
 java.lang.Long getId()
           
 OrganizationUser getInactivePartecipant(it.neverworks.security.User user)
           
 java.util.Set<Organization> getInheritedOrganizations()
           
 java.util.List<LocationAttribute> getLocations()
           
 java.util.Date getModified()
           
 it.neverworks.security.User getModifiedBy()
           
 java.lang.String getName()
           
 java.util.List<Organization> getOldChilds()
           
 Organization getOldParent()
           
 OrganizationVersion getOldVersion()
           
 OrganizationType getOrganizationType()
           
 OrganizationUser getPartecipant(it.neverworks.security.User user)
           
 java.util.List<OrganizationUser> getPartecipants()
           
 java.util.List<it.neverworks.security.User> getPartecipantUsers()
           
 Partition getPartition()
           
 java.util.List<it.neverworks.security.User> getSupervisors()
           
 java.util.List<Swimlane> getSwimlanes()
           
 java.util.List<OrganizationTree> getTrees()
           
 int hashCode()
           
 boolean hasPartecipant(it.neverworks.security.User user)
           
 void removeInheritedOrganization(Organization organization)
           
 void removeLocation(LocationAttribute location)
           
 void removePartecipant(OrganizationUser partecipant)
           
 void removeSwimlane(Swimlane swimlane)
           
 void removeTree(OrganizationTree tree)
           
 void saveOrganization()
           
 void setCode(java.lang.String code)
           
 void setCreated(java.util.Date created)
           
 void setCreatedBy(it.neverworks.security.User createdBy)
           
 void setDeleted(java.lang.Boolean deleted)
           
 void setDescription(java.lang.String description)
           
 void setEnabled(java.lang.Boolean enabled)
           
 void setId(java.lang.Long id)
           
 void setInheritedOrganizations(java.util.Set<Organization> inheritedOrganizations)
           
 void setLocations(java.util.List<LocationAttribute> locations)
           
 void setModified(java.util.Date modified)
           
 void setModifiedBy(it.neverworks.security.User modifiedBy)
           
 void setName(java.lang.String name)
           
 void setOldChilds(java.util.List<Organization> oldChilds)
           
 void setOldParent(Organization oldParent)
           
 void setOldVersion(OrganizationVersion oldVersion)
           
 void setOrganizationType(OrganizationType organizationType)
           
 void setPartecipants(java.util.List<OrganizationUser> partecipants)
           
 void setPartition(Partition partition)
           
 void setSwimlanes(java.util.List<Swimlane> swimlanes)
           
 void setTrees(java.util.List<OrganizationTree> trees)
           
 it.neverworks.application.data.tracking.Log toLog()
           
 java.lang.String toString()
           
 void updatedLocation(LocationAttribute location)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.Long id

created

protected java.util.Date created

createdBy

protected it.neverworks.security.User createdBy

modified

protected java.util.Date modified

modifiedBy

protected it.neverworks.security.User modifiedBy

partition

protected Partition partition

name

protected java.lang.String name

code

protected java.lang.String code

description

protected java.lang.String description

trees

protected java.util.List<OrganizationTree> trees

partecipants

protected java.util.List<OrganizationUser> partecipants

oldChilds

@Deprecated
protected java.util.List<Organization> oldChilds
Deprecated. 

oldParent

@Deprecated
protected Organization oldParent
Deprecated. 

oldVersion

@Deprecated
protected OrganizationVersion oldVersion
Deprecated. 

organizationType

protected OrganizationType organizationType

inheritedOrganizations

@Deprecated
protected java.util.Set<Organization> inheritedOrganizations
Deprecated. 

swimlanes

protected java.util.List<Swimlane> swimlanes

locations

protected java.util.List<LocationAttribute> locations
Constructor Detail

Organization

public Organization()
Method Detail

toLog

public it.neverworks.application.data.tracking.Log toLog()
Specified by:
toLog in interface it.neverworks.application.data.tracking.Loggable

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getCreated

public java.util.Date getCreated()
Specified by:
getCreated in interface it.neverworks.application.model.CreationAuditable

setCreated

public void setCreated(java.util.Date created)
Specified by:
setCreated in interface it.neverworks.application.model.CreationAuditable

getCreatedBy

public it.neverworks.security.User getCreatedBy()
Specified by:
getCreatedBy in interface it.neverworks.application.model.CreationAuditable

setCreatedBy

public void setCreatedBy(it.neverworks.security.User createdBy)
Specified by:
setCreatedBy in interface it.neverworks.application.model.CreationAuditable

getModified

public java.util.Date getModified()
Specified by:
getModified in interface it.neverworks.application.model.ModificationAuditable

setModified

public void setModified(java.util.Date modified)
Specified by:
setModified in interface it.neverworks.application.model.ModificationAuditable

getModifiedBy

public it.neverworks.security.User getModifiedBy()
Specified by:
getModifiedBy in interface it.neverworks.application.model.ModificationAuditable

setModifiedBy

public void setModifiedBy(it.neverworks.security.User modifiedBy)
Specified by:
setModifiedBy in interface it.neverworks.application.model.ModificationAuditable

getPartition

public Partition getPartition()
Specified by:
getPartition in interface PartitionAttribute

setPartition

public void setPartition(Partition partition)
Specified by:
setPartition in interface PartitionAttribute

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getCode

public java.lang.String getCode()

setCode

public void setCode(java.lang.String code)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getTrees

public java.util.List<OrganizationTree> getTrees()

setTrees

public void setTrees(java.util.List<OrganizationTree> trees)

addTree

public void addTree(OrganizationTree tree)

removeTree

public void removeTree(OrganizationTree tree)

getEnabled

public java.lang.Boolean getEnabled()

setEnabled

public void setEnabled(java.lang.Boolean enabled)

getDeleted

public java.lang.Boolean getDeleted()

setDeleted

public void setDeleted(java.lang.Boolean deleted)

getActivePartecipants

public java.util.List<OrganizationUser> getActivePartecipants()

getPartecipants

public java.util.List<OrganizationUser> getPartecipants()

setPartecipants

public void setPartecipants(java.util.List<OrganizationUser> partecipants)

addPartecipant

public void addPartecipant(OrganizationUser partecipant)

removePartecipant

public void removePartecipant(OrganizationUser partecipant)

hasPartecipant

public boolean hasPartecipant(it.neverworks.security.User user)

getPartecipant

public OrganizationUser getPartecipant(it.neverworks.security.User user)

getInactivePartecipant

public OrganizationUser getInactivePartecipant(it.neverworks.security.User user)

getPartecipantUsers

public java.util.List<it.neverworks.security.User> getPartecipantUsers()

getSupervisors

public java.util.List<it.neverworks.security.User> getSupervisors()

getOldChilds

public java.util.List<Organization> getOldChilds()

setOldChilds

public void setOldChilds(java.util.List<Organization> oldChilds)

getOldParent

public Organization getOldParent()

setOldParent

public void setOldParent(Organization oldParent)

getOldVersion

public OrganizationVersion getOldVersion()

setOldVersion

public void setOldVersion(OrganizationVersion oldVersion)

getOrganizationType

public OrganizationType getOrganizationType()

setOrganizationType

public void setOrganizationType(OrganizationType organizationType)

getInheritedOrganizations

public java.util.Set<Organization> getInheritedOrganizations()

setInheritedOrganizations

public void setInheritedOrganizations(java.util.Set<Organization> inheritedOrganizations)

addInheritedOrganization

public void addInheritedOrganization(Organization organization)

removeInheritedOrganization

public void removeInheritedOrganization(Organization organization)

getSwimlanes

public java.util.List<Swimlane> getSwimlanes()

setSwimlanes

public void setSwimlanes(java.util.List<Swimlane> swimlanes)

addSwimlane

public void addSwimlane(Swimlane swimlane)

removeSwimlane

public void removeSwimlane(Swimlane swimlane)

getFullName

public java.lang.String getFullName()

getLocations

public java.util.List<LocationAttribute> getLocations()

setLocations

public void setLocations(java.util.List<LocationAttribute> locations)

addLocation

public void addLocation(LocationAttribute location)

updatedLocation

public void updatedLocation(LocationAttribute location)

removeLocation

public void removeLocation(LocationAttribute location)

getActiveTree

public OrganizationTree getActiveTree()

getAscendings

public java.util.List<Organization> getAscendings()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

saveOrganization

public void saveOrganization()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object