001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: *
017: */
018: package org.apache.lenya.cms.site.topicmap;
019:
020: import org.apache.lenya.cms.publication.Document;
021: import org.apache.lenya.cms.publication.DocumentFactory;
022: import org.apache.lenya.cms.publication.DocumentLocator;
023: import org.apache.lenya.cms.publication.Publication;
024: import org.apache.lenya.cms.site.AbstractSiteManager;
025: import org.apache.lenya.cms.site.SiteNode;
026: import org.apache.lenya.cms.site.SiteException;
027: import org.apache.lenya.cms.site.SiteStructure;
028:
029: /**
030: * Site manager to support topic maps.
031: */
032: public class TopicMapSiteManager extends AbstractSiteManager {
033:
034: /**
035: * @see org.apache.lenya.cms.site.SiteManager#requires(org.apache.lenya.cms.publication.DocumentFactory,
036: * org.apache.lenya.cms.site.SiteNode, org.apache.lenya.cms.site.SiteNode)
037: */
038: public boolean requires(DocumentFactory map,
039: SiteNode dependingResource, SiteNode requiredResource)
040: throws SiteException {
041: // TODO Auto-generated method stub
042: return false;
043: }
044:
045: /**
046: * @see org.apache.lenya.cms.site.SiteManager#getRequiringResources(org.apache.lenya.cms.publication.DocumentFactory,
047: * org.apache.lenya.cms.site.SiteNode)
048: */
049: public SiteNode[] getRequiringResources(DocumentFactory map,
050: SiteNode resource) throws SiteException {
051: // TODO Auto-generated method stub
052: return null;
053: }
054:
055: /**
056: * @see org.apache.lenya.cms.site.SiteManager#add(org.apache.lenya.cms.publication.Document)
057: */
058: public void add(String path, Document document)
059: throws SiteException {
060: // TODO Auto-generated method stub
061:
062: }
063:
064: /**
065: * @see org.apache.lenya.cms.site.SiteManager#contains(org.apache.lenya.cms.publication.Document)
066: */
067: public boolean contains(Document resource) throws SiteException {
068: // TODO Auto-generated method stub
069: return false;
070: }
071:
072: /**
073: * @see org.apache.lenya.cms.site.SiteManager#containsInAnyLanguage(org.apache.lenya.cms.publication.Document)
074: */
075: public boolean containsInAnyLanguage(Document resource)
076: throws SiteException {
077: // TODO Auto-generated method stub
078: return false;
079: }
080:
081: /**
082: * @see org.apache.lenya.cms.site.SiteManager#copy(org.apache.lenya.cms.publication.Document,
083: * org.apache.lenya.cms.publication.Document)
084: */
085: public void copy(Document sourceDocument,
086: Document destinationDocument) throws SiteException {
087: // TODO Auto-generated method stub
088:
089: }
090:
091: /**
092: * @see org.apache.lenya.cms.site.SiteManager#setVisibleInNav(org.apache.lenya.cms.publication.Document,
093: * boolean)
094: */
095: public void setVisibleInNav(Document document, boolean visibleInNav)
096: throws SiteException {
097: }
098:
099: /**
100: * @see org.apache.lenya.cms.site.SiteManager#getDocuments(org.apache.lenya.cms.publication.DocumentFactory,
101: * org.apache.lenya.cms.publication.Publication, java.lang.String)
102: */
103: public Document[] getDocuments(DocumentFactory map,
104: Publication publication, String area) throws SiteException {
105: // TODO Auto-generated method stub
106: return null;
107: }
108:
109: /**
110: * @see org.apache.lenya.cms.site.SiteManager#getSiteStructure(org.apache.lenya.cms.publication.DocumentFactory,
111: * org.apache.lenya.cms.publication.Publication, java.lang.String)
112: */
113: public SiteStructure getSiteStructure(DocumentFactory map,
114: Publication publiation, String area) throws SiteException {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: /**
120: * @see org.apache.lenya.cms.site.SiteManager#getAvailableDocument(org.apache.lenya.cms.publication.Document)
121: */
122: public DocumentLocator getAvailableLocator(DocumentFactory factory,
123: DocumentLocator document) throws SiteException {
124: return document;
125: }
126:
127: public boolean isVisibleInNav(Document document)
128: throws SiteException {
129: return true;
130: }
131:
132: public void set(String path, Document document)
133: throws SiteException {
134: // TODO Auto-generated method stub
135: }
136:
137: public DocumentLocator[] getRequiredResources(DocumentFactory map,
138: DocumentLocator locator) throws SiteException {
139: return new DocumentLocator[0];
140: }
141:
142: public void move(SiteNode source, String destinationPath)
143: throws SiteException {
144: throw new SiteException("This operation is not supported by ["
145: + getClass().getName() + "]!");
146: }
147:
148: public void setLabel(Document document, String label)
149: throws SiteException {
150: // TODO Auto-generated method stub
151: }
152:
153: }
|