1 16 package org.outerj.daisy.repository.commonimpl.schema; 17 18 import org.outerj.daisy.repository.RepositoryException; 19 import org.outerj.daisy.repository.LinkExtractorInfos; 20 import org.outerj.daisy.repository.commonimpl.AuthenticatedUser; 21 22 import java.util.Collection ; 23 24 31 public interface SchemaStrategy { 32 public void store(FieldTypeImpl fieldType) throws RepositoryException; 33 34 public void deleteFieldType(long fieldTypeId, AuthenticatedUser user) throws RepositoryException; 35 36 public void store(DocumentTypeImpl documentType) throws RepositoryException; 37 38 public void deleteDocumentType(long documentTypeId, AuthenticatedUser user) throws RepositoryException; 39 40 public void store(PartTypeImpl partType) throws RepositoryException; 41 42 public void deletePartType(long partTypeId, AuthenticatedUser user) throws RepositoryException; 43 44 public Collection getAllDocumentTypes(AuthenticatedUser user) throws RepositoryException; 45 46 public Collection getAllFieldTypes(AuthenticatedUser user) throws RepositoryException; 47 48 public Collection getAllPartTypes(AuthenticatedUser user) throws RepositoryException; 49 50 public PartTypeImpl getPartTypeById(long id, AuthenticatedUser user) throws RepositoryException; 51 52 public PartTypeImpl getPartTypeByName(String name, AuthenticatedUser user) throws RepositoryException; 53 54 public FieldTypeImpl getFieldTypeById(long id, AuthenticatedUser user) throws RepositoryException; 55 56 public FieldTypeImpl getFieldTypeByName(String name, AuthenticatedUser user) throws RepositoryException; 57 58 public DocumentTypeImpl getDocumentTypeById(long id, AuthenticatedUser user) throws RepositoryException; 59 60 public DocumentTypeImpl getDocumentTypeByName(String name, AuthenticatedUser user) throws RepositoryException; 61 62 public LinkExtractorInfos getLinkExtractors(AuthenticatedUser user) throws RepositoryException; 63 } 64 | Popular Tags |