01: /**********************************************************************************
02: * $URL$
03: * $Id$
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 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.sakaiproject.tool.assessment.facade.authz.resource;
21:
22: import java.util.ListResourceBundle;
23:
24: /**
25: *
26: * <p> </p>
27: * <p>Description: Resource strings for Authz Queries.</p>
28: * <p>Sakai Project Copyright (c) 2005</p>
29: * <p> </p>
30: * @author Ed Smiley <esmiley@stanford.edu>
31: *
32: */
33: public class AuthzResource extends java.util.ListResourceBundle {
34: private static final Object[][] contents = new String[][] {
35: {
36: "HQL_QUERY_CHECK_AUTHZ",
37: "select from "
38: + "org.sakaiproject.tool.assessment.data.dao.authz.AuthorizationData as data"
39: + " where data.agentIdString = :agentId and data.functionId = :functionId"
40: + " and data.qualifierId = :qualifierId" },
41: {
42: "HQL_QUERY_BY_AGENT_FUNC",
43: "select from org.sakaiproject.tool.assessment.data.dao.authz.AuthorizationData "
44: + "as item where item.agentIdString = :agentId and item.functionId = :functionId" },
45: {
46: "HQL_QUERY_ASSESS_BY_AGENT_FUNC",
47: "select asset from "
48: + "org.sakaiproject.tool.assessment.data.dao.assessment.AssessmentBaseData as asset, "
49: + "org.sakaiproject.tool.assessment.data.dao.authz.AuthorizationData as authz "
50: + "where asset.assessmentBaseId=authz.qualifierId and "
51: + "authz.agentIdString = :agentId and authz.functionId = :functionId" },
52: { "AUTH", "AUTHENTICATED_USERS" },
53: { "VIEW_PUB", "VIEW_PUBLISHED_ASSESSMENT" },
54: { "ANON", "ANONYMOUS_USERS" },
55:
56: { "_site_", "/site/" },
57: { "a_id", "agentId" },
58: { "f_id", "functionId" },
59: { "q_id", "qualifierId" },
60: { "and_q_id", "\' and a.qualifierId=\'" },
61: { "and_f_id", "\' and a.functionId=\'" },
62: { "delivery", "delivery" },
63: { "select_authdata_f_id_q_id",
64: "select a from AuthorizationData a where a.functionId=? and a.qualifierId=?" },
65: { "select_authdata_a_id",
66: "select a from AuthorizationData a where a.agentIdString=\'" },
67: { "select_authdata_q_id",
68: "select a from AuthorizationData a where a.qualifierId=\'" },
69: { "select_authdata_f_id",
70: "select a from AuthorizationData a where a.functionId=\'" },
71: { "someone", "someone" } };
72:
73: public Object[][] getContents() {
74: return contents;
75: }
76: }
|