org.archiviststoolkit.model
Class ArchDescription

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

public abstract class ArchDescription
extends DomainObject
implements java.io.Serializable, SubjectEnabledModel, NameEnabledModel

See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTYNAME_CREATOR
           
static java.lang.String PROPERTYNAME_DATE_BEGIN
           
static java.lang.String PROPERTYNAME_DATE_END
           
static java.lang.String PROPERTYNAME_DATE_EXPRESSION
           
static java.lang.String PROPERTYNAME_DISPLAY_CREATOR
           
static java.lang.String PROPERTYNAME_DISPLAY_REPOSITORY
           
static java.lang.String PROPERTYNAME_DISPLAY_SOURCE
           
static java.lang.String PROPERTYNAME_ISODATE_BEGIN
           
static java.lang.String PROPERTYNAME_ISODATE_BEGIN_SECONDS
           
static java.lang.String PROPERTYNAME_ISODATE_END
           
static java.lang.String PROPERTYNAME_ISODATE_END_SECONDS
           
static java.lang.String PROPERTYNAME_NAMES
           
static java.lang.String PROPERTYNAME_REPEATING_DATA
           
static java.lang.String PROPERTYNAME_RESTRICTIONS_APPLY
           
static java.lang.String PROPERTYNAME_SUBJECTS
           
static java.lang.String 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
ArchDescription()
           
 
Method Summary
 void addArchdescriptionDate(ArchDescriptionDates dateToAdd)
           
 boolean addName(ArchDescriptionNames resourceName)
          Adds a BillingDetails to the set.
 DomainObject addName(Names name, java.lang.String function, java.lang.String role, java.lang.String form)
           
 void addRepeatingData(ArchDescriptionRepeatingData repeatingData)
           
 boolean addSubject(ArchDescriptionSubjects resourceSubject)
          Adds a BillingDetails to the set.
 DomainObject addSubject(Subjects subject)
           
 boolean containsSubjectLink(java.lang.String subjectTerm)
           
 java.util.Set<ArchDescriptionDates> getArchDescriptionDates()
           
 java.lang.String getCreator()
           
 java.lang.Integer getDateBegin()
           
 java.lang.Integer getDateEnd()
           
 java.lang.String getDateExpression()
           
 java.lang.String getIsoDateBegin()
          Method that return the iso date begin reformated to match
 java.lang.Long getIsoDateBeginSeconds()
          Method to return the iso date begins in seconds
 java.lang.String getIsoDateEnd()
          Method that return the iso date begin reformated to match
 java.lang.Long getIsoDateEndSeconds()
          Method to return the iso date end in seconds
 java.lang.String getLabelForTree()
           
 ArchDescriptionNames getName(int index)
           
 java.util.Set<ArchDescriptionNames> getNames()
           
 java.util.Set<ArchDescriptionNames> getNames(java.lang.String function)
           
 java.util.Set<ArchDescriptionNames> getNamesForPrinting()
           
 java.util.Set<ArchDescriptionNames> getNamesForPrinting(java.lang.String function)
           
 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.util.Set<ArchDescriptionRepeatingData> getRepeatingData()
           
 java.util.Set getRepeatingData(java.lang.Class clazz)
           
 ArchDescriptionRepeatingData getRepeatingData(int index)
           
 java.lang.Boolean getRestrictionsApply()
           
 java.lang.String getSource()
           
 ArchDescriptionSubjects getSubject(int index)
           
 java.util.Set<ArchDescriptionSubjects> getSubjects()
           
 java.util.Set<ArchDescriptionSubjects> getSubjectsForPrinting()
           
 java.lang.String getTitle()
           
protected  void removeArchdescriptionDate(ArchDescriptionDates dateToAdd)
           
protected  void removeName(ArchDescriptionNames resourceName)
          Removes a BillingDetails from the set.
 void removeRelatedObject(DomainObject domainObject)
          A dummy place holder to be overridden by classes that have related objects
protected  void removeRepeatingData(ArchDescriptionRepeatingData repeatingData)
           
protected  void removeSubject(ArchDescriptionSubjects resourceSubject)
          Removes a BillingDetails from the set.
 void setArchDescriptionDates(java.util.Set<ArchDescriptionDates> archDescriptionDates)
           
 void setDateBegin(java.lang.Integer dateBegin)
           
 void setDateEnd(java.lang.Integer dateEnd)
           
 void setDateExpression(java.lang.String dateExpression)
           
 void setIsoDateBegin(java.lang.String isoDateBegin)
          Method to set the ISO date begins
 void setIsoDateBeginSeconds(java.lang.Long seconds)
          Method to set the ISO date begins in GMT seconds
 void setIsoDateEnd(java.lang.String isoDateEnd)
          Method to set the ISO date ends
 void setIsoDateEndSeconds(java.lang.Long seconds)
          Method to set the ISO date ends in GMT seconds
 void setNames(java.util.Set<ArchDescriptionNames> resourcesNames)
           
 void setRepeatingData(java.util.Set<ArchDescriptionRepeatingData> repeatingData)
           
 void setRestrictionsApply(java.lang.Boolean restrictionsApply)
           
 void setSubjects(java.util.Set<ArchDescriptionSubjects> subjects)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainObject
addRelatedObject, compareTo, 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, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_TITLE

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

PROPERTYNAME_DATE_EXPRESSION

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

PROPERTYNAME_DATE_BEGIN

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

PROPERTYNAME_DATE_END

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

PROPERTYNAME_ISODATE_BEGIN

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

PROPERTYNAME_ISODATE_END

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

PROPERTYNAME_ISODATE_BEGIN_SECONDS

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

PROPERTYNAME_ISODATE_END_SECONDS

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

PROPERTYNAME_RESTRICTIONS_APPLY

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

PROPERTYNAME_CREATOR

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

PROPERTYNAME_DISPLAY_CREATOR

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

PROPERTYNAME_DISPLAY_REPOSITORY

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

PROPERTYNAME_DISPLAY_SOURCE

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

PROPERTYNAME_NAMES

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

PROPERTYNAME_SUBJECTS

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

PROPERTYNAME_REPEATING_DATA

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

ArchDescription

public ArchDescription()
Method Detail

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getDateExpression

public java.lang.String getDateExpression()

setDateExpression

public void setDateExpression(java.lang.String dateExpression)

getDateBegin

public java.lang.Integer getDateBegin()

setDateBegin

public void setDateBegin(java.lang.Integer dateBegin)

getDateEnd

public java.lang.Integer getDateEnd()

setDateEnd

public void setDateEnd(java.lang.Integer dateEnd)

getIsoDateBegin

public java.lang.String getIsoDateBegin()
Method that return the iso date begin reformated to match

Returns:
String containing the iso bluck date begin

setIsoDateBegin

public void setIsoDateBegin(java.lang.String isoDateBegin)
Method to set the ISO date begins

Parameters:
isoDateBegin - The new iso date begins

getIsoDateBeginSeconds

public java.lang.Long getIsoDateBeginSeconds()
Method to return the iso date begins in seconds

Returns:
The date begins in seconds

setIsoDateBeginSeconds

public void setIsoDateBeginSeconds(java.lang.Long seconds)
Method to set the ISO date begins in GMT seconds

Parameters:
seconds - The iso date begins in GMT seconds

getIsoDateEnd

public java.lang.String getIsoDateEnd()
Method that return the iso date begin reformated to match

Returns:
String containing the iso bluck date begin

setIsoDateEnd

public void setIsoDateEnd(java.lang.String isoDateEnd)
Method to set the ISO date ends

Parameters:
isoDateEnd - The new iso date ends

getIsoDateEndSeconds

public java.lang.Long getIsoDateEndSeconds()
Method to return the iso date end in seconds

Returns:
The date end in seconds

setIsoDateEndSeconds

public void setIsoDateEndSeconds(java.lang.Long seconds)
Method to set the ISO date ends in GMT seconds

Parameters:
seconds - The iso date ends in GMT seconds

getRestrictionsApply

public java.lang.Boolean getRestrictionsApply()

setRestrictionsApply

public void setRestrictionsApply(java.lang.Boolean restrictionsApply)

getRepeatingData

public java.util.Set<ArchDescriptionRepeatingData> getRepeatingData()

getRepeatingData

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

setRepeatingData

public void setRepeatingData(java.util.Set<ArchDescriptionRepeatingData> repeatingData)

addRepeatingData

public void addRepeatingData(ArchDescriptionRepeatingData repeatingData)

removeRepeatingData

protected void removeRepeatingData(ArchDescriptionRepeatingData repeatingData)

getRepeatingData

public ArchDescriptionRepeatingData getRepeatingData(int index)

getNames

public java.util.Set<ArchDescriptionNames> getNames()

getNames

public java.util.Set<ArchDescriptionNames> getNames(java.lang.String function)

getNamesForPrinting

public java.util.Set<ArchDescriptionNames> getNamesForPrinting()

getNamesForPrinting

public java.util.Set<ArchDescriptionNames> getNamesForPrinting(java.lang.String function)

setNames

public void setNames(java.util.Set<ArchDescriptionNames> resourcesNames)

addName

public boolean addName(ArchDescriptionNames resourceName)
                throws DuplicateLinkException
Adds a BillingDetails to the set.

This method checks if there is only one billing method in the set, then makes this the default.

Parameters:
resourceName -
Throws:
DuplicateLinkException

removeName

protected void removeName(ArchDescriptionNames resourceName)
Removes a BillingDetails from the set.

This method checks if the removed is the default element, and will throw a BusinessException if there is more than one left to chose from. This might actually not be the best way to handle this situation.

Parameters:
resourceName -

getName

public ArchDescriptionNames getName(int index)

addSubject

public boolean addSubject(ArchDescriptionSubjects resourceSubject)
Adds a BillingDetails to the set.

This method checks if there is only one billing method in the set, then makes this the default.

Parameters:
resourceSubject -

addSubject

public DomainObject addSubject(Subjects subject)
                        throws DuplicateLinkException
Specified by:
addSubject in interface SubjectEnabledModel
Throws:
DuplicateLinkException

containsSubjectLink

public boolean containsSubjectLink(java.lang.String subjectTerm)

removeSubject

protected void removeSubject(ArchDescriptionSubjects resourceSubject)
Removes a BillingDetails from the set.

This method checks if the removed is the default element, and will throw a BusinessException if there is more than one left to chose from. This might actually not be the best way to handle this situation.

Parameters:
resourceSubject -

getSubject

public ArchDescriptionSubjects getSubject(int index)

getSubjects

public java.util.Set<ArchDescriptionSubjects> getSubjects()

setSubjects

public void setSubjects(java.util.Set<ArchDescriptionSubjects> subjects)

getSubjectsForPrinting

public java.util.Set<ArchDescriptionSubjects> getSubjectsForPrinting()

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 DomainObject
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 DomainObject
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 DomainObject
Parameters:
rowNumber - the row of the object to retrieve

getLabelForTree

public java.lang.String getLabelForTree()

addName

public DomainObject addName(Names name,
                            java.lang.String function,
                            java.lang.String role,
                            java.lang.String form)
                     throws DuplicateLinkException
Specified by:
addName in interface NameEnabledModel
Throws:
DuplicateLinkException

getCreator

public java.lang.String getCreator()

getSource

public java.lang.String getSource()

getArchDescriptionDates

public java.util.Set<ArchDescriptionDates> getArchDescriptionDates()

setArchDescriptionDates

public void setArchDescriptionDates(java.util.Set<ArchDescriptionDates> archDescriptionDates)

addArchdescriptionDate

public void addArchdescriptionDate(ArchDescriptionDates dateToAdd)

removeArchdescriptionDate

protected void removeArchdescriptionDate(ArchDescriptionDates dateToAdd)