01: /**********************************************************************************
02: * $URL:https://source.sakaiproject.org/svn/osp/trunk/matrix/api-impl/src/java/org/theospi/portfolio/matrix/model/impl/MatrixHttpAccess.java $
03: * $Id:MatrixHttpAccess.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.theospi.portfolio.matrix.model.impl;
21:
22: import org.sakaiproject.entity.api.EntityAccessOverloadException;
23: import org.sakaiproject.entity.api.EntityCopyrightException;
24: import org.sakaiproject.entity.api.EntityNotDefinedException;
25: import org.sakaiproject.entity.api.EntityPermissionException;
26: import org.sakaiproject.entity.api.Reference;
27: import org.sakaiproject.metaobj.shared.mgt.IdManager;
28: import org.sakaiproject.metaobj.shared.mgt.ReferenceParser;
29: import org.theospi.portfolio.matrix.MatrixManager;
30: import org.theospi.portfolio.security.mgt.OspHttpAccessBase;
31:
32: /**
33: * Created by IntelliJ IDEA.
34: * User: John Ellis
35: * Date: Nov 8, 2005
36: * Time: 5:30:11 PM
37: * To change this template use File | Settings | File Templates.
38: */
39: public class MatrixHttpAccess extends OspHttpAccessBase {
40:
41: private IdManager idManager;
42: private MatrixManager matrixManager;
43:
44: protected void checkSource(Reference ref, ReferenceParser parser)
45: throws EntityPermissionException,
46: EntityNotDefinedException, EntityAccessOverloadException,
47: EntityCopyrightException {
48:
49: getMatrixManager().checkPageAccess(parser.getId());
50: }
51:
52: public IdManager getIdManager() {
53: return idManager;
54: }
55:
56: public void setIdManager(IdManager idManager) {
57: this .idManager = idManager;
58: }
59:
60: public MatrixManager getMatrixManager() {
61: return matrixManager;
62: }
63:
64: public void setMatrixManager(MatrixManager matrixManager) {
65: this.matrixManager = matrixManager;
66: }
67:
68: }
|