Source Code Cross Referenced for Reference.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » entity » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.entity.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**********************************************************************************
002:         * $URL: https://source.sakaiproject.org/svn/entity/tags/sakai_2-4-1/entity-api/api/src/java/org/sakaiproject/entity/api/Reference.java $
003:         * $Id: Reference.java 29631 2007-04-26 14:39:15Z ajpoland@iupui.edu $
004:         ***********************************************************************************
005:         *
006:         * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
007:         * 
008:         * Licensed under the Educational Community License, Version 1.0 (the "License"); 
009:         * you may not use this file except in compliance with the License. 
010:         * You may obtain a copy of the License at
011:         * 
012:         *      http://www.opensource.org/licenses/ecl1.php
013:         * 
014:         * Unless required by applicable law or agreed to in writing, software 
015:         * distributed under the License is distributed on an "AS IS" BASIS, 
016:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
017:         * See the License for the specific language governing permissions and 
018:         * limitations under the License.
019:         *
020:         **********************************************************************************/package org.sakaiproject.entity.api;
021:
022:        import java.util.Collection;
023:
024:        /**
025:         * <p>
026:         * Reference holds an immutable reference to a Sakai entity.
027:         * </p>
028:         */
029:        public interface Reference {
030:            /**
031:             * Add the AuthzGroup(s) for context as a site.
032:             * 
033:             * @param rv
034:             *        The list.
035:             */
036:            void addSiteContextAuthzGroup(Collection rv);
037:
038:            /**
039:             * Add the AuthzGroup for this user id, or for the user's type template, or for the general template.
040:             * 
041:             * @param rv
042:             *        The list.
043:             * @param id
044:             *        The user id.
045:             */
046:            void addUserAuthzGroup(Collection rv, String id);
047:
048:            /**
049:             * Add the AuthzGroup for this user id, or for the user's type template, or for the general template.
050:             * 
051:             * @param rv
052:             *        The list.
053:             * @param id
054:             *        The user id.
055:             */
056:            void addUserTemplateAuthzGroup(Collection rv, String id);
057:
058:            /**
059:             * Access a single container id, the from most general (or only)
060:             * 
061:             * @return The single or most general container, if any.
062:             */
063:            String getContainer();
064:
065:            /**
066:             * Access the context id, if any.
067:             * 
068:             * @return the context id, if any.
069:             */
070:            String getContext();
071:
072:            /**
073:             * @return a description of the resource referenced.
074:             */
075:            String getDescription();
076:
077:            /**
078:             * Find the Entity that is referenced.
079:             * 
080:             * @return The Entity object that this references.
081:             */
082:            Entity getEntity();
083:
084:            /**
085:             * Access the primary id.
086:             * 
087:             * @return The primary id.
088:             */
089:            String getId();
090:
091:            /**
092:             * Find the ResourceProperties object for this reference.
093:             * 
094:             * @return A ResourcesProperties object found (or constructed) for this reference.
095:             */
096:            ResourceProperties getProperties();
097:
098:            /**
099:             * Compute the set of AuthzGroup ids associated with this referenced resource.
100:             * 
101:             * @return List of AuthzGroup ids (String) associated with this referenced resource.
102:             */
103:            Collection getAuthzGroups();
104:
105:            /**
106:             * Compute the set of AuthzGroup ids associated with this referenced resource, perhaps customized for security about this end user.
107:             * 
108:             * @param userId
109:             *        the end user ID, or null if we want the generic set.
110:             * @return List of AuthzGroup ids (String) associated with this referenced resource.
111:             */
112:            Collection getAuthzGroups(String userId);
113:
114:            /**
115:             * Access the reference.
116:             * 
117:             * @return The reference.
118:             */
119:            String getReference();
120:
121:            /**
122:             * Access the subType.
123:             * 
124:             * @return The subType.
125:             */
126:            String getSubType();
127:
128:            /**
129:             * Access the type, an application id string.  This value must uniquely identify the application responsible for the reference, and must be unchanging over time (it may end up stored in database values).
130:             * 
131:             * @return The type, an application id string.
132:             */
133:            String getType();
134:
135:            /**
136:             * Access the URL which can be used to access the referenced resource.
137:             * 
138:             * @return The URL which can be used to access the referenced resource.
139:             */
140:            String getUrl();
141:
142:            /**
143:             * Check if the reference's type is known
144:             * 
145:             * @return true if known, false if not.
146:             */
147:            boolean isKnownType();
148:
149:            /**
150:             * Accept the settings for a reference - may be rejected if already set
151:             * 
152:             * @param type
153:             * @param subType
154:             * @param id
155:             * @param container
156:             * @param container2
157:             * @param context
158:             * @return true if settings are accepted, false if not.
159:             */
160:            boolean set(String type, String subType, String id,
161:                    String container, String context);
162:
163:            /**
164:             * Update the reference string.
165:             *
166:             * @param ref The new reference string.
167:             */
168:            void updateReference(String ref);
169:
170:            /**
171:             * Access the entity producer responsible for the referenced entity.
172:             * 
173:             * @return The EntityProducer responsible for the referenced entity, or null if there is none.
174:             */
175:            EntityProducer getEntityProducer();
176:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.