1 16 package org.outerj.daisy.repository.schema; 17 18 import org.outerj.daisy.repository.ValueType; 19 import org.outerj.daisy.repository.RepositoryException; 20 import org.outerj.daisy.repository.LinkExtractorInfos; 21 22 37 public interface RepositorySchema { 38 41 public DocumentType createNewDocumentType(String name); 42 43 48 public DocumentType createDocumentType(String name); 49 50 public void deleteDocumentType(long documentTypeId) throws RepositoryException; 51 52 55 public FieldType createNewFieldType(String name, ValueType valueType); 56 57 public FieldType createFieldType(String name, ValueType valueType); 58 59 public FieldType createFieldType(String name, ValueType valueType, boolean multiValue); 60 61 public void deleteFieldType(long fieldTypeId) throws RepositoryException; 62 63 66 public PartType createNewPartType(String name, String mimeTypes); 67 68 public PartType createPartType(String name, String mimeTypes); 69 70 public void deletePartType(long partTypeId) throws RepositoryException; 71 72 public void addListener(RepositorySchemaListener listener); 73 74 public void removeListener(RepositorySchemaListener listener); 75 76 public DocumentTypes getAllDocumentTypes(boolean updateable) throws RepositoryException; 77 78 public FieldTypes getAllFieldTypes(boolean updateable) throws RepositoryException; 79 80 public PartTypes getAllPartTypes(boolean updateable) throws RepositoryException; 81 82 85 public PartType getPartTypeById(long id, boolean updateable) throws RepositoryException; 86 87 90 public PartType getPartTypeByName(String name, boolean updateable) throws RepositoryException; 91 92 95 public FieldType getFieldTypeById(long id, boolean updateable) throws RepositoryException; 96 97 100 public FieldType getFieldTypeByName(String name, boolean updateable) throws RepositoryException; 101 102 105 public DocumentType getDocumentTypeById(long id, boolean updateable) throws RepositoryException; 106 107 110 public DocumentType getDocumentTypeByName(String name, boolean updateable) throws RepositoryException; 111 112 115 public DocumentType getDocumentType(String nameOrId, boolean updateable) throws RepositoryException; 116 117 120 public LinkExtractorInfos getLinkExtractors() throws RepositoryException; 121 } 122 | Popular Tags |