KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > outerj > daisy > repository > commonimpl > schema > SchemaStrategy


1 /*
2  * Copyright 2004 Outerthought bvba and Schaubroeck nv
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

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 JavaDoc;
23
24 /**
25  * Allows to customise the behaviour of the abstract implementation classes of the
26  * repository schema API.
27  *
28  * <p>For (important) general information about this and other strategy interfaces, see also
29  * {@link org.outerj.daisy.repository.commonimpl.DocumentStrategy}.
30  */

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 JavaDoc getAllDocumentTypes(AuthenticatedUser user) throws RepositoryException;
45
46     public Collection JavaDoc getAllFieldTypes(AuthenticatedUser user) throws RepositoryException;
47
48     public Collection JavaDoc getAllPartTypes(AuthenticatedUser user) throws RepositoryException;
49
50     public PartTypeImpl getPartTypeById(long id, AuthenticatedUser user) throws RepositoryException;
51
52     public PartTypeImpl getPartTypeByName(String JavaDoc name, AuthenticatedUser user) throws RepositoryException;
53
54     public FieldTypeImpl getFieldTypeById(long id, AuthenticatedUser user) throws RepositoryException;
55
56     public FieldTypeImpl getFieldTypeByName(String JavaDoc name, AuthenticatedUser user) throws RepositoryException;
57
58     public DocumentTypeImpl getDocumentTypeById(long id, AuthenticatedUser user) throws RepositoryException;
59
60     public DocumentTypeImpl getDocumentTypeByName(String JavaDoc name, AuthenticatedUser user) throws RepositoryException;
61
62     public LinkExtractorInfos getLinkExtractors(AuthenticatedUser user) throws RepositoryException;
63 }
64
Popular Tags