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: package org.apache.jetspeed.page;
018:
019: import java.util.Map;
020:
021: import org.apache.jetspeed.om.folder.Folder;
022: import org.apache.jetspeed.om.folder.FolderNotFoundException;
023: import org.apache.jetspeed.om.folder.InvalidFolderException;
024: import org.apache.jetspeed.om.page.ContentPage;
025: import org.apache.jetspeed.om.page.Link;
026: import org.apache.jetspeed.om.page.Page;
027: import org.apache.jetspeed.om.page.PageSecurity;
028: import org.apache.jetspeed.page.document.DocumentException;
029: import org.apache.jetspeed.page.document.DocumentNotFoundException;
030: import org.apache.jetspeed.page.document.FailedToDeleteDocumentException;
031: import org.apache.jetspeed.page.document.FailedToUpdateDocumentException;
032: import org.apache.jetspeed.page.document.NodeException;
033: import org.apache.jetspeed.page.document.NodeSet;
034: import org.apache.jetspeed.page.document.UnsupportedDocumentTypeException;
035:
036: /**
037: * DelegatingPageManager
038: *
039: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
040: * @version $Id: $
041: */
042:
043: public class DelegatingPageManager extends AbstractPageManager {
044: public DelegatingPageManager(boolean isPermissionsSecurity,
045: boolean isConstraintsSecurity, Map modelClasses) {
046: super (isPermissionsSecurity, isConstraintsSecurity,
047: modelClasses);
048: }
049:
050: /* (non-Javadoc)
051: * @see org.apache.jetspeed.page.PageManager#getPage(java.lang.String)
052: */
053: public Page getPage(String id) throws PageNotFoundException,
054: NodeException {
055: // TODO Auto-generated method stub
056: return null;
057: }
058:
059: /* (non-Javadoc)
060: * @see org.apache.jetspeed.page.PageManager#getContentPage(java.lang.String)
061: */
062: public ContentPage getContentPage(String path)
063: throws PageNotFoundException, NodeException {
064: // TODO Auto-generated method stub
065: return null;
066: }
067:
068: /* (non-Javadoc)
069: * @see org.apache.jetspeed.page.PageManager#getLink(java.lang.String)
070: */
071: public Link getLink(String name) throws DocumentNotFoundException,
072: UnsupportedDocumentTypeException, NodeException {
073: // TODO Auto-generated method stub
074: return null;
075: }
076:
077: /* (non-Javadoc)
078: * @see org.apache.jetspeed.page.PageManager#getPageSecurity()
079: */
080: public PageSecurity getPageSecurity()
081: throws DocumentNotFoundException,
082: UnsupportedDocumentTypeException, NodeException {
083: // TODO Auto-generated method stub
084: return null;
085: }
086:
087: public boolean checkConstraint(String securityConstraintName,
088: String actions) {
089: return false;
090: }
091:
092: /* (non-Javadoc)
093: * @see org.apache.jetspeed.page.PageManager#getFolder(java.lang.String)
094: */
095: public Folder getFolder(String folderPath)
096: throws FolderNotFoundException, InvalidFolderException,
097: NodeException {
098: // TODO Auto-generated method stub
099: return null;
100: }
101:
102: /* (non-Javadoc)
103: * @see org.apache.jetspeed.page.PageManager#getFolders(org.apache.jetspeed.om.folder.Folder)
104: */
105: public NodeSet getFolders(Folder folder) throws DocumentException {
106: // TODO Auto-generated method stub
107: return null;
108: }
109:
110: /* (non-Javadoc)
111: * @see org.apache.jetspeed.page.PageManager#getFolder(org.apache.jetspeed.om.folder.Folder,java.lang.String)
112: */
113: public Folder getFolder(Folder folder, String name)
114: throws FolderNotFoundException, DocumentException {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: /* (non-Javadoc)
120: * @see org.apache.jetspeed.page.PageManager#getPages(org.apache.jetspeed.om.folder.Folder)
121: */
122: public NodeSet getPages(Folder folder) throws NodeException {
123: // TODO Auto-generated method stub
124: return null;
125: }
126:
127: /* (non-Javadoc)
128: * @see org.apache.jetspeed.page.PageManager#getPage(org.apache.jetspeed.om.folder.Folder,java.lang.String)
129: */
130: public Page getPage(Folder folder, String name)
131: throws PageNotFoundException, NodeException {
132: // TODO Auto-generated method stub
133: return null;
134: }
135:
136: /* (non-Javadoc)
137: * @see org.apache.jetspeed.page.PageManager#getLinks(org.apache.jetspeed.om.folder.Folder)
138: */
139: public NodeSet getLinks(Folder folder) throws NodeException {
140: // TODO Auto-generated method stub
141: return null;
142: }
143:
144: /* (non-Javadoc)
145: * @see org.apache.jetspeed.page.PageManager#getLink(org.apache.jetspeed.om.folder.Folder,java.lang.String)
146: */
147: public Link getLink(Folder folder, String name)
148: throws DocumentNotFoundException, NodeException {
149: // TODO Auto-generated method stub
150: return null;
151: }
152:
153: /* (non-Javadoc)
154: * @see org.apache.jetspeed.page.PageManager#getPageSecurity(org.apache.jetspeed.om.folder.Folder)
155: */
156: public PageSecurity getPageSecurity(Folder folder)
157: throws DocumentNotFoundException, NodeException {
158: // TODO Auto-generated method stub
159: return null;
160: }
161:
162: /* (non-Javadoc)
163: * @see org.apache.jetspeed.page.PageManager#getAll(org.apache.jetspeed.om.folder.Folder)
164: */
165: public NodeSet getAll(Folder folder) throws DocumentException {
166: // TODO Auto-generated method stub
167: return null;
168: }
169:
170: /* (non-Javadoc)
171: * @see org.apache.jetspeed.page.PageManager#updatePage(org.apache.jetspeed.om.page.Page)
172: */
173: public void updatePage(Page page) throws NodeException,
174: PageNotUpdatedException {
175: // TODO Auto-generated method stub
176:
177: }
178:
179: /* (non-Javadoc)
180: * @see org.apache.jetspeed.page.PageManager#removePage(org.apache.jetspeed.om.page.Page)
181: */
182: public void removePage(Page page) throws NodeException,
183: PageNotRemovedException {
184: // TODO Auto-generated method stub
185:
186: }
187:
188: /* (non-Javadoc)
189: * @see org.apache.jetspeed.page.PageManager#updateFolder(org.apache.jetspeed.om.folder.Folder)
190: */
191: public void updateFolder(Folder folder) throws NodeException,
192: FolderNotUpdatedException {
193: // TODO Auto-generated method stub
194:
195: }
196:
197: /* (non-Javadoc)
198: * @see org.apache.jetspeed.page.PageManager#updateFolder(org.apache.jetspeed.om.folder.Folder,boolean)
199: */
200: public void updateFolder(Folder folder, boolean deep)
201: throws NodeException, FolderNotUpdatedException {
202: // TODO Auto-generated method stub
203:
204: }
205:
206: /* (non-Javadoc)
207: * @see org.apache.jetspeed.page.PageManager#removeFolder(org.apache.jetspeed.om.folder.Folder)
208: */
209: public void removeFolder(Folder folder) throws NodeException,
210: FolderNotRemovedException {
211: // TODO Auto-generated method stub
212:
213: }
214:
215: /* (non-Javadoc)
216: * @see org.apache.jetspeed.page.PageManager#updateLink(org.apache.jetspeed.om.page.Link)
217: */
218: public void updateLink(Link link) throws NodeException,
219: LinkNotUpdatedException {
220: // TODO Auto-generated method stub
221:
222: }
223:
224: /* (non-Javadoc)
225: * @see org.apache.jetspeed.page.PageManager#removeLink(org.apache.jetspeed.om.page.Link)
226: */
227: public void removeLink(Link link) throws NodeException,
228: LinkNotRemovedException {
229: // TODO Auto-generated method stub
230:
231: }
232:
233: /* (non-Javadoc)
234: * @see org.apache.jetspeed.page.PageManager#updatePageSecurity(org.apache.jetspeed.om.page.PageSecurity)
235: */
236: public void updatePageSecurity(PageSecurity pageSecurity)
237: throws NodeException, FailedToUpdateDocumentException {
238: // TODO Auto-generated method stub
239:
240: }
241:
242: /* (non-Javadoc)
243: * @see org.apache.jetspeed.page.PageManager#removePageSecurity(org.apache.jetspeed.om.page.PageSecurity)
244: */
245: public void removePageSecurity(PageSecurity pageSecurity)
246: throws NodeException, FailedToDeleteDocumentException {
247: // TODO Auto-generated method stub
248:
249: }
250:
251: public int addPages(Page[] pages) throws NodeException {
252: throw new NodeException("not impl");
253: }
254: }
|