1 16 package org.outerj.daisy.repository; 17 18 import org.outerx.daisy.x10.VersionDocument; 19 20 import java.util.Date ; 21 22 37 public interface Version { 38 42 public long getId(); 43 44 47 public Date getCreated(); 48 49 53 public long getCreator(); 54 55 58 public String getDocumentName(); 59 60 63 public Parts getParts() throws RepositoryException; 64 65 71 public Parts getPartsInOrder() throws RepositoryException; 72 73 80 public Part getPart(long typeId); 81 82 85 public boolean hasPart(long typeId); 86 87 90 public boolean hasPart(String typeName); 91 92 98 public Part getPart(String typeName) throws RepositoryException; 99 100 103 public Fields getFields() throws RepositoryException; 104 105 111 public Fields getFieldsInOrder() throws RepositoryException; 112 113 120 public Field getField(long fieldTypeId) throws FieldNotFoundException; 121 122 125 public boolean hasField(long fieldTypeId); 126 127 130 public Links getLinks() throws RepositoryException; 131 132 137 public VersionDocument getShallowXml(); 138 139 142 public VersionDocument getXml() throws RepositoryException; 143 144 150 public void setState(VersionState state) throws RepositoryException; 151 152 157 public VersionState getState(); 158 159 162 public long getStateLastModifier(); 163 164 167 public Date getStateLastModified(); 168 169 172 public long getTotalSizeOfParts(); 173 } 174 | Popular Tags |