org.outerj.daisy.repository.commonimpl
Class VersionImpl

java.lang.Object
  extended by 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


Nested Class Summary
 class VersionImpl.IntimateAccess
           
 
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)
           
 
Method Summary
 java.util.Date getCreated()
           
 long getCreator()
           
 java.lang.String getDocumentName()
           
 org.outerj.daisy.repository.Field getField(long fieldTypeId)
           
 org.outerj.daisy.repository.Fields getFields()
           
 org.outerj.daisy.repository.Fields getFieldsInOrder()
           
 long getId()
           
 VersionImpl.IntimateAccess getIntimateAccess(DocumentStrategy documentStrategy)
           
 org.outerj.daisy.repository.Links getLinks()
           
 org.outerj.daisy.repository.Part getPart(long typeId)
           
 org.outerj.daisy.repository.Part getPart(java.lang.String typeName)
           
 org.outerj.daisy.repository.Parts getParts()
           
 org.outerj.daisy.repository.Parts getPartsInOrder()
           
 org.outerx.daisy.x10.VersionDocument getShallowXml()
           
 org.outerj.daisy.repository.VersionState getState()
           
 java.util.Date getStateLastModified()
           
 long getStateLastModifier()
           
 long getTotalSizeOfParts()
           
 org.outerx.daisy.x10.VersionDocument getXml()
           
 boolean hasField(long fieldTypeId)
           
 boolean hasPart(long typeId)
           
 boolean hasPart(java.lang.String typeName)
           
 void setState(org.outerj.daisy.repository.VersionState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 © -2012 . All Rights Reserved.