Source Code Cross Referenced for ContentHostingHandler.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » content » 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.content.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * 
003:         */package org.sakaiproject.content.api;
004:
005:        import java.io.InputStream;
006:        import java.util.List;
007:
008:        import org.sakaiproject.exception.ServerOverloadException;
009:
010:        /**
011:         * @author ieb
012:         */
013:        public interface ContentHostingHandler {
014:
015:            /**
016:             * Cancel an edit to a collection, if this needs to be done in the impl.
017:             * 
018:             * @param edit
019:             */
020:            void cancel(ContentCollectionEdit edit);
021:
022:            /**
023:             * cancel an edit to a resource ( if this needs to be done )
024:             * 
025:             * @param edit
026:             */
027:            void cancel(ContentResourceEdit edit);
028:
029:            /**
030:             * commit a collection
031:             * 
032:             * @param edit
033:             */
034:            void commit(ContentCollectionEdit edit);
035:
036:            /**
037:             * commit a resource
038:             * 
039:             * @param edit
040:             */
041:            void commit(ContentResourceEdit edit);
042:
043:            /**
044:             * commit a deleted resource
045:             * 
046:             * @param edit
047:             * @param uuid
048:             */
049:            void commitDeleted(ContentResourceEdit edit, String uuid);
050:
051:            /**
052:             * get a list of collections contained within the supplied collection
053:             * 
054:             * @param collection
055:             * @return
056:             */
057:            List getCollections(ContentCollection collection);
058:
059:            /**
060:             * get a ContentCollectionEdit for the ID, creating it if necessary, this should not persist until commit is invoked
061:             * 
062:             * @param id
063:             * @return
064:             */
065:            ContentCollectionEdit getContentCollectionEdit(String id);
066:
067:            /**
068:             * get a content resource edit for the supplied ID, creating it if necesary. This sould not persist until commit is invoked
069:             * 
070:             * @param id
071:             * @return
072:             */
073:            ContentResourceEdit getContentResourceEdit(String id);
074:
075:            /**
076:             * get a list of string ids of all resources below this point
077:             * 
078:             * @param ce
079:             * @return
080:             */
081:            List getFlatResources(ContentEntity ce);
082:
083:            /**
084:             * get the resource body
085:             * 
086:             * @param resource
087:             * @return
088:             * @throws ServerOverloadException
089:             */
090:            byte[] getResourceBody(ContentResource resource)
091:                    throws ServerOverloadException;
092:
093:            /**
094:             * get a list of resource ids as strings within the collection
095:             * 
096:             * @param collection
097:             * @return
098:             */
099:            List getResources(ContentCollection collection);
100:
101:            /**
102:             * Convert the passed-in ContentEntity into a virtual Content Entity. The implementation should check that the passed in entity is managed by this content handler before performing the translation. Additionally it must register the content handler
103:             * with the newly proxied ContentEntity so that subsequent invocations are routed back to the correct ContentHostingHandler implementation
104:             * 
105:             * @param edit
106:             * @return
107:             */
108:            ContentEntity getVirtualContentEntity(ContentEntity edit,
109:                    String finalId);
110:
111:            /**
112:             * perform a wastebasket operation on the names id, if the implementation supports the operation otherwise its safe to ignore.
113:             * 
114:             * @param id
115:             * @param uuid
116:             * @param userId
117:             * @return
118:             */
119:            ContentResourceEdit putDeleteResource(String id, String uuid,
120:                    String userId);
121:
122:            /**
123:             * remove the supplied collection
124:             * 
125:             * @param edit
126:             */
127:            void removeCollection(ContentCollectionEdit edit);
128:
129:            /**
130:             * remove the resource
131:             * 
132:             * @param edit
133:             */
134:            void removeResource(ContentResourceEdit edit);
135:
136:            /**
137:             * stream the body of the resource
138:             * 
139:             * @param resource
140:             * @return
141:             * @throws ServerOverloadException
142:             */
143:            InputStream streamResourceBody(ContentResource resource)
144:                    throws ServerOverloadException;
145:
146:            /**
147:             * get the number of members
148:             * @param ce
149:             * @return
150:             */
151:            int getMemberCount(ContentEntity ce);
152:
153:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.