org.outerj.daisy.repository.commonimpl
Class VersionImpl
java.lang.Object
org.outerj.daisy.repository.commonimpl.VersionImpl
- All Implemented Interfaces:
- org.outerj.daisy.repository.Version
public class VersionImpl
- extends java.lang.Object
- implements org.outerj.daisy.repository.Version
|
Constructor Summary |
VersionImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt,
long id,
java.util.Date created,
long creator,
java.lang.String documentName,
PartImpl[] parts,
FieldImpl[] fields,
LinkImpl[] links,
org.outerj.daisy.repository.VersionState versionState,
java.util.Date versionStateLastModified,
long versionStateLastModifier,
long totalSizeOfParts)
|
VersionImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt,
long id,
java.lang.String documentName,
java.util.Date created,
long creator,
org.outerj.daisy.repository.VersionState versionState,
java.util.Date versionStateLastModified,
long versionStateLastModifier,
long totalSizeOfParts)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionImpl
public VersionImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt,
long id,
java.lang.String documentName,
java.util.Date created,
long creator,
org.outerj.daisy.repository.VersionState versionState,
java.util.Date versionStateLastModified,
long versionStateLastModifier,
long totalSizeOfParts)
VersionImpl
public VersionImpl(DocumentVariantImpl.IntimateAccess ownerVariantInt,
long id,
java.util.Date created,
long creator,
java.lang.String documentName,
PartImpl[] parts,
FieldImpl[] fields,
LinkImpl[] links,
org.outerj.daisy.repository.VersionState versionState,
java.util.Date versionStateLastModified,
long versionStateLastModifier,
long totalSizeOfParts)
getIntimateAccess
public VersionImpl.IntimateAccess getIntimateAccess(DocumentStrategy documentStrategy)
getId
public long getId()
- Specified by:
getId in interface org.outerj.daisy.repository.Version
getDocumentName
public java.lang.String getDocumentName()
- Specified by:
getDocumentName in interface org.outerj.daisy.repository.Version
getCreated
public java.util.Date getCreated()
- Specified by:
getCreated in interface org.outerj.daisy.repository.Version
getCreator
public long getCreator()
- Specified by:
getCreator in interface org.outerj.daisy.repository.Version
getParts
public org.outerj.daisy.repository.Parts getParts()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
getParts in interface org.outerj.daisy.repository.Version
- Throws:
org.outerj.daisy.repository.RepositoryException
getPartsInOrder
public org.outerj.daisy.repository.Parts getPartsInOrder()
- Specified by:
getPartsInOrder in interface org.outerj.daisy.repository.Version
getPart
public org.outerj.daisy.repository.Part getPart(long typeId)
- Specified by:
getPart in interface org.outerj.daisy.repository.Version
getPart
public org.outerj.daisy.repository.Part getPart(java.lang.String typeName)
- Specified by:
getPart in interface org.outerj.daisy.repository.Version
hasPart
public boolean hasPart(long typeId)
- Specified by:
hasPart in interface org.outerj.daisy.repository.Version
hasPart
public boolean hasPart(java.lang.String typeName)
- Specified by:
hasPart in interface org.outerj.daisy.repository.Version
getFields
public org.outerj.daisy.repository.Fields getFields()
- Specified by:
getFields in interface org.outerj.daisy.repository.Version
getFieldsInOrder
public org.outerj.daisy.repository.Fields getFieldsInOrder()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
getFieldsInOrder in interface org.outerj.daisy.repository.Version
- Throws:
org.outerj.daisy.repository.RepositoryException
getField
public org.outerj.daisy.repository.Field getField(long fieldTypeId)
throws org.outerj.daisy.repository.FieldNotFoundException
- Specified by:
getField in interface org.outerj.daisy.repository.Version
- Throws:
org.outerj.daisy.repository.FieldNotFoundException
hasField
public boolean hasField(long fieldTypeId)
- Specified by:
hasField in interface org.outerj.daisy.repository.Version
getLinks
public org.outerj.daisy.repository.Links getLinks()
- Specified by:
getLinks in interface org.outerj.daisy.repository.Version
getShallowXml
public org.outerx.daisy.x10.VersionDocument getShallowXml()
- Specified by:
getShallowXml in interface org.outerj.daisy.repository.Version
getXml
public org.outerx.daisy.x10.VersionDocument getXml()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
getXml in interface org.outerj.daisy.repository.Version
- Throws:
org.outerj.daisy.repository.RepositoryException
setState
public void setState(org.outerj.daisy.repository.VersionState state)
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
setState in interface org.outerj.daisy.repository.Version
- Throws:
org.outerj.daisy.repository.RepositoryException
getState
public org.outerj.daisy.repository.VersionState getState()
- Specified by:
getState in interface org.outerj.daisy.repository.Version
getStateLastModifier
public long getStateLastModifier()
- Specified by:
getStateLastModifier in interface org.outerj.daisy.repository.Version
getStateLastModified
public java.util.Date getStateLastModified()
- Specified by:
getStateLastModified in interface org.outerj.daisy.repository.Version
getTotalSizeOfParts
public long getTotalSizeOfParts()
- Specified by:
getTotalSizeOfParts in interface org.outerj.daisy.repository.Version
Copyright © -2006 . All Rights Reserved.