org.archiviststoolkit.model
Class ResourcesCommon

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by org.archiviststoolkit.mydomain.DomainObject
          extended by org.archiviststoolkit.model.ArchDescription
              extended by org.archiviststoolkit.model.AccessionsResourcesCommon
                  extended by org.archiviststoolkit.model.ResourcesCommon
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable, java.lang.Comparable, NameEnabledModel, SubjectEnabledModel, Auditable, treeDnDSequencedObject, org.hibernate.classic.Lifecycle
Direct Known Subclasses:
Resources, ResourcesComponents

public abstract class ResourcesCommon
extends AccessionsResourcesCommon
implements treeDnDSequencedObject

See Also:
Serialized Form

Field Summary
static java.lang.String LEVEL_VALUE_OTHERLEVEL
           
static java.lang.String PROPERTYNAME_INSTANCES
           
static java.lang.String PROPERTYNAME_INTERNAL_ONLY
           
static java.lang.String PROPERTYNAME_LANGUAGE_CODE
           
static java.lang.String PROPERTYNAME_LEVEL
           
static java.lang.String PROPERTYNAME_OTHER_LEVEL
           
static java.lang.String PROPERTYNAME_REPOSITORY_PROCESSING_NOTE
           
 
Fields inherited from class org.archiviststoolkit.model.AccessionsResourcesCommon
PROPERTYNAME_BULK_DATE_BEGIN, PROPERTYNAME_BULK_DATE_END, PROPERTYNAME_CONTAINER_SUMMARY, PROPERTYNAME_DEACCESSIONS, PROPERTYNAME_EXTENT_NUMBER, PROPERTYNAME_EXTENT_TYPE, PROPERTYNAME_ISOBULK_DATE_BEGIN, PROPERTYNAME_ISOBULK_DATE_BEGIN_SECONDS, PROPERTYNAME_ISOBULK_DATE_END, PROPERTYNAME_ISOBULK_DATE_END_SECONDS
 
Fields inherited from class org.archiviststoolkit.model.ArchDescription
PROPERTYNAME_CREATOR, PROPERTYNAME_DATE_BEGIN, PROPERTYNAME_DATE_END, PROPERTYNAME_DATE_EXPRESSION, PROPERTYNAME_DISPLAY_CREATOR, PROPERTYNAME_DISPLAY_REPOSITORY, PROPERTYNAME_DISPLAY_SOURCE, PROPERTYNAME_ISODATE_BEGIN, PROPERTYNAME_ISODATE_BEGIN_SECONDS, PROPERTYNAME_ISODATE_END, PROPERTYNAME_ISODATE_END_SECONDS, PROPERTYNAME_NAMES, PROPERTYNAME_REPEATING_DATA, PROPERTYNAME_RESTRICTIONS_APPLY, PROPERTYNAME_SUBJECTS, PROPERTYNAME_TITLE
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainObject
CREATED, CREATED_BY, LAST_UPDATED, LAST_UPDATED_BY
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
ResourcesCommon()
           
 
Method Summary
 void addChild(ResourcesCommon child)
           
 void addChild(treeDnDSequencedObject child)
           
 void addComponent(ResourcesComponents component)
           
 void addComponent(ResourcesComponents component, java.lang.Boolean adjustSequenceNumbers)
           
 void addInstance(ArchDescriptionInstances resourceComponentInstance)
           
 void addResourcesComponents(ResourcesComponents resourceComponent)
           
 void adjustSequenceNumberForAdd(ResourcesComponents componentToAdd)
           
 int compareTo(java.lang.Object object)
          Compares this object to another.
 java.util.SortedSet getChildren()
           
 java.lang.String getEadIngestProblem()
           
 ArchDescriptionInstances getInstance(int index)
           
 java.util.Set<ArchDescriptionInstances> getInstances()
           
 java.util.Set getInstances(java.lang.Class clazz)
           
 java.lang.Boolean getInternalOnly()
           
 java.lang.String getLanguageCode()
           
 java.lang.String getLevel()
           
 int getNextChildSequenceNumber()
           
 int getNextSequenceNumber()
           
 java.lang.String getOtherLevel()
           
 ResourcesCommon getParent()
           
 treeDnDSequencedObject getParentObject()
           
 java.util.Collection getRelatedCollection(DomainObject domainObject)
          A dummy place holder to be overridden by classes that have related objects
 DomainObject getRelatedObject(DomainObject domainObject, int rowNumber)
          A dummy place holder to be overridden by classes that have related objects
 java.lang.String getRepositoryProcessingNote()
           
 ResourcesComponents getResourcesComponent(int index)
           
 java.util.SortedSet<ResourcesComponents> getResourcesComponents()
           
 java.lang.Integer getSequenceNumber()
          8/9/2008 Methods below are for going to be used to allow for this object to be used directly in a DnD JTree These methods make some of the above methods reduntant, but not wanted to clean up the code will remian that way for now
 void incrementOrder(java.lang.Double start)
           
 void removeChild(ResourcesCommon child)
           
 void removeChild(treeDnDSequencedObject child)
           
 void removeComponent(ResourcesComponents component)
           
 void removeComponent(ResourcesComponents component, boolean resequence)
           
protected  void removeInstance(ArchDescriptionInstances resourceComponentInstance)
           
 void removeRelatedObject(DomainObject domainObject)
          A dummy place holder to be overridden by classes that have related objects
 void removeResourcesComponents(ResourcesComponents resourceComponent)
           
 void resequenceSequencedObjects()
           
 void resortComponents()
           
 void setEadIngestProblem(java.lang.String eadIngestProblem)
           
 void setInstances(java.util.Set<ArchDescriptionInstances> instances)
           
 void setInternalOnly(java.lang.Boolean internalOnly)
           
 void setLanguageCode(java.lang.String languageCode)
           
 void setLevel(java.lang.String level)
           
 void setOtherLevel(java.lang.String otherLevel)
           
 void setParent(ResourcesCommon parent)
           
 void setParentObject(treeDnDSequencedObject parent)
           
 void setRepositoryProcessingNote(java.lang.String repositoryProcessingNote)
           
 void setResourcesComponents(java.util.SortedSet resourcesComponents)
           
 void setSequenceNumber(java.lang.Integer sequenceNumber)
           
 java.lang.String toString()
           
 
Methods inherited from class org.archiviststoolkit.model.AccessionsResourcesCommon
addDeaccessions, getBulkDateBegin, getBulkDateEnd, getContainerSummary, getDeaccessions, getExtentNumber, getExtentType, getIsoBulkDateBegin, getIsoBulkDateBeginSeconds, getIsoBulkDateEnd, getIsoBulkDateEndSeconds, removeRepeatingData, setBulkDateBegin, setBulkDateEnd, setContainerSummary, setDeaccessions, setExtentNumber, setExtentType, setIsoBulkDateBegin, setIsoBulkDateBeginSeconds, setIsoBulkDateEnd, setIsoBulkDateEndSeconds
 
Methods inherited from class org.archiviststoolkit.model.ArchDescription
addName, addName, addRepeatingData, addSubject, addSubject, containsSubjectLink, getCreator, getDateBegin, getDateEnd, getDateExpression, getIsoDateBegin, getIsoDateBeginSeconds, getIsoDateEnd, getIsoDateEndSeconds, getLabelForTree, getName, getNames, getNames, getNamesForPrinting, getNamesForPrinting, getRepeatingData, getRepeatingData, getRepeatingData, getRestrictionsApply, getSource, getSubject, getSubjects, getSubjectsForPrinting, getTitle, removeName, removeRepeatingData, removeSubject, setDateBegin, setDateEnd, setDateExpression, setIsoDateBegin, setIsoDateBeginSeconds, setIsoDateEnd, setIsoDateEndSeconds, setNames, setRepeatingData, setRestrictionsApply, setSubjects, setTitle
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainObject
addRelatedObject, creationDate, equals, getAuditInfo, getCreated, getCreatedBy, getIdentifier, getLastUpdated, getLastUpdatedBy, getUniqueConstraintKey, getVersion, hashCode, isNewRecord, lastUpdated, onDelete, onLoad, onSave, onUpdate, removeIdAndAuditInfo, setAuditInfo, setIdentifier, setVersion, testDeleteRules, validateAndDisplayDialog
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTYNAME_LEVEL

public static final java.lang.String PROPERTYNAME_LEVEL
See Also:
Constant Field Values

PROPERTYNAME_OTHER_LEVEL

public static final java.lang.String PROPERTYNAME_OTHER_LEVEL
See Also:
Constant Field Values

PROPERTYNAME_LANGUAGE_CODE

public static final java.lang.String PROPERTYNAME_LANGUAGE_CODE
See Also:
Constant Field Values

PROPERTYNAME_REPOSITORY_PROCESSING_NOTE

public static final java.lang.String PROPERTYNAME_REPOSITORY_PROCESSING_NOTE
See Also:
Constant Field Values

PROPERTYNAME_INTERNAL_ONLY

public static final java.lang.String PROPERTYNAME_INTERNAL_ONLY
See Also:
Constant Field Values

PROPERTYNAME_INSTANCES

public static final java.lang.String PROPERTYNAME_INSTANCES
See Also:
Constant Field Values

LEVEL_VALUE_OTHERLEVEL

public static final java.lang.String LEVEL_VALUE_OTHERLEVEL
See Also:
Constant Field Values
Constructor Detail

ResourcesCommon

public ResourcesCommon()
Method Detail

getLevel

public java.lang.String getLevel()

setLevel

public void setLevel(java.lang.String level)

getLanguageCode

public java.lang.String getLanguageCode()

setLanguageCode

public void setLanguageCode(java.lang.String languageCode)

getRepositoryProcessingNote

public java.lang.String getRepositoryProcessingNote()

setRepositoryProcessingNote

public void setRepositoryProcessingNote(java.lang.String repositoryProcessingNote)

addInstance

public void addInstance(ArchDescriptionInstances resourceComponentInstance)

removeInstance

protected void removeInstance(ArchDescriptionInstances resourceComponentInstance)

getInstance

public ArchDescriptionInstances getInstance(int index)

getInstances

public java.util.Set<ArchDescriptionInstances> getInstances()

getInstances

public java.util.Set getInstances(java.lang.Class clazz)

setInstances

public void setInstances(java.util.Set<ArchDescriptionInstances> instances)

getInternalOnly

public java.lang.Boolean getInternalOnly()

setInternalOnly

public void setInternalOnly(java.lang.Boolean internalOnly)

getEadIngestProblem

public java.lang.String getEadIngestProblem()

setEadIngestProblem

public void setEadIngestProblem(java.lang.String eadIngestProblem)

removeRelatedObject

public void removeRelatedObject(DomainObject domainObject)
                         throws ObjectNotRemovedException
Description copied from class: DomainObject
A dummy place holder to be overridden by classes that have related objects

Overrides:
removeRelatedObject in class AccessionsResourcesCommon
Parameters:
domainObject - the domain object to be removed
Throws:
ObjectNotRemovedException

getRelatedCollection

public java.util.Collection getRelatedCollection(DomainObject domainObject)
Description copied from class: DomainObject
A dummy place holder to be overridden by classes that have related objects

Overrides:
getRelatedCollection in class ArchDescription
Parameters:
domainObject - the domain object to be removed

getRelatedObject

public DomainObject getRelatedObject(DomainObject domainObject,
                                     int rowNumber)
A dummy place holder to be overridden by classes that have related objects

Overrides:
getRelatedObject in class ArchDescription
Parameters:
rowNumber - the row of the object to retrieve

incrementOrder

public void incrementOrder(java.lang.Double start)

removeComponent

public void removeComponent(ResourcesComponents component)
                     throws ObjectNotRemovedException
Throws:
ObjectNotRemovedException

removeComponent

public void removeComponent(ResourcesComponents component,
                            boolean resequence)
                     throws ObjectNotRemovedException
Throws:
ObjectNotRemovedException

addComponent

public void addComponent(ResourcesComponents component)

addComponent

public void addComponent(ResourcesComponents component,
                         java.lang.Boolean adjustSequenceNumbers)

getResourcesComponents

public java.util.SortedSet<ResourcesComponents> getResourcesComponents()

setResourcesComponents

public void setResourcesComponents(java.util.SortedSet resourcesComponents)

addResourcesComponents

public void addResourcesComponents(ResourcesComponents resourceComponent)

removeResourcesComponents

public void removeResourcesComponents(ResourcesComponents resourceComponent)
                               throws ObjectNotRemovedException
Throws:
ObjectNotRemovedException

getResourcesComponent

public ResourcesComponents getResourcesComponent(int index)

adjustSequenceNumberForAdd

public void adjustSequenceNumberForAdd(ResourcesComponents componentToAdd)

getNextSequenceNumber

public int getNextSequenceNumber()

resortComponents

public void resortComponents()

getNextChildSequenceNumber

public int getNextChildSequenceNumber()

resequenceSequencedObjects

public void resequenceSequencedObjects()

getOtherLevel

public java.lang.String getOtherLevel()

setOtherLevel

public void setOtherLevel(java.lang.String otherLevel)

getSequenceNumber

public java.lang.Integer getSequenceNumber()
8/9/2008 Methods below are for going to be used to allow for this object to be used directly in a DnD JTree These methods make some of the above methods reduntant, but not wanted to clean up the code will remian that way for now

Specified by:
getSequenceNumber in interface treeDnDSequencedObject

setSequenceNumber

public void setSequenceNumber(java.lang.Integer sequenceNumber)
Specified by:
setSequenceNumber in interface treeDnDSequencedObject

setParent

public void setParent(ResourcesCommon parent)

getParent

public ResourcesCommon getParent()

addChild

public void addChild(ResourcesCommon child)

removeChild

public void removeChild(ResourcesCommon child)
                 throws ObjectNotRemovedException
Throws:
ObjectNotRemovedException

getChildren

public java.util.SortedSet getChildren()
Specified by:
getChildren in interface treeDnDSequencedObject

toString

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

compareTo

public int compareTo(java.lang.Object object)
Compares this object to another.

Specified by:
compareTo in interface java.lang.Comparable
Overrides:
compareTo in class DomainObject
Parameters:
object - the object to compare this to.
Returns:
a integer result of the comparison.

getParentObject

public treeDnDSequencedObject getParentObject()
Specified by:
getParentObject in interface treeDnDSequencedObject

setParentObject

public void setParentObject(treeDnDSequencedObject parent)
Specified by:
setParentObject in interface treeDnDSequencedObject

addChild

public void addChild(treeDnDSequencedObject child)
Specified by:
addChild in interface treeDnDSequencedObject

removeChild

public void removeChild(treeDnDSequencedObject child)
                 throws ObjectNotRemovedException
Specified by:
removeChild in interface treeDnDSequencedObject
Throws:
ObjectNotRemovedException