Java Doc for PodcastService.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » api » app » podcasts » 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.api.app.podcasts 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.api.app.podcasts.PodcastService

All known Subclasses:   org.sakaiproject.component.app.podcasts.PodcastServiceImpl,
PodcastService
public interface PodcastService (Code)


Field Summary
final public static  StringCOLLECTION_PODCASTS
     This string can be used to find the service in the service manager.
final public static  StringCOLLECTION_PODCASTS_ALT
    
final public static  StringCOLLECTION_PODCASTS_DESCRIPTION
    
final public static  StringCOLLECTION_PODCASTS_FEED
    
final public static  StringCOLLECTION_PODCASTS_TITLE
    
final public static  StringDELETE_ANY_PERMISSIONS
    
final public static  StringDELETE_OWN_PERMISSIONS
    
final public static  StringDISPLAY_DATE
    
final public static  StringDISPLAY_TITLE
    
final public static  StringNEW_PERMISSIONS
    
final public static  StringPODCASTS_SERVICE_NAME
    
final public static  StringREAD_PERMISSIONS
    
final public static  StringREVISE_ANY_PERMISSIONS
    
final public static  StringREVISE_OWN_PERMISSIONS
    
final public static  StringUPDATE_PERMISSIONS
    


Method Summary
public  voidaddPodcast(String title, Date displayDate, String description, byte[] body, String filename, String contentType)
    
public  booleanallowAccess(String id)
    
public  booleancanUpdateSite(String siteId)
     Determines if user can modify the site.
public  booleancanUpdateSite()
     Determines if user can modify the site.
public  voidcancelContentCollection(ContentCollectionEdit cce)
    
public  ListcheckDISPLAY_DATE(List resourcesList)
     Will check if any podcasts were added in Resources and do not have their DISPLAY_DATE property set.
public  booleancheckForActualPodcasts()
    
public  booleancheckPodcastFolder()
     Determines if podcast folder is part of Resources of site.
public  voidcommitContentCollection(ContentCollectionEdit contentCollectionEdit)
     Commit the changes made to the ContentCollection.
public  ListfilterPodcasts(List resourcesList)
    
public  ContentResourceEditgetAResource(String resourceId)
     Returns an editable resource if ID exists.
public  ContentCollectiongetContentCollection(String siteId)
     Returns the ContentCollection that contains the podcasts.
public  ContentCollectionEditgetContentCollectionEditable(String siteId)
     Returns the ContentCollection that contains the podcasts.
public  DategetGMTdate(long date)
    
public  intgetOptions()
     Gets whether the podcast folder is Publicly viewable or not.
public  StringgetPodcastFileURL(String resourceId)
    
public  ListgetPodcasts()
    
public  ListgetPodcasts(String siteID)
    
public  StringgetSiteId()
    
public  StringgetUserId()
    
public  StringgetUserName()
    
public  booleanhasPerm(String function)
    
public  booleanisPublic(String siteId)
    
public  voidremovePodcast(String resourceId)
    
public  StringretrievePodcastFolderId(String siteId)
     Returns podcast folder id using either 'podcasts' or 'Podcasts'.
public  voidreviseOptions(boolean option)
    
public  voidrevisePodcast(String resourceId, String title, Date date, String description, byte[] body, String filename)
     Returns an editable resource if ID exists.
public  voidsetContentHostingService(ContentHostingService chs)
    
public  voidsetDISPLAY_DATE(ResourceProperties rp)
    
public  voidsetToolManager(ToolManager tm)
    

Field Detail
COLLECTION_PODCASTS
final public static String COLLECTION_PODCASTS(Code)
This string can be used to find the service in the service manager.



COLLECTION_PODCASTS_ALT
final public static String COLLECTION_PODCASTS_ALT(Code)
This string can be used as an alternate method to finding the podcasts folder



COLLECTION_PODCASTS_DESCRIPTION
final public static String COLLECTION_PODCASTS_DESCRIPTION(Code)
This string gives description for podcasts folder *



COLLECTION_PODCASTS_FEED
final public static String COLLECTION_PODCASTS_FEED(Code)
This string used as part of URL for podcast feed *



COLLECTION_PODCASTS_TITLE
final public static String COLLECTION_PODCASTS_TITLE(Code)
This string used for Title of the podcast collection *



DELETE_ANY_PERMISSIONS
final public static String DELETE_ANY_PERMISSIONS(Code)



DELETE_OWN_PERMISSIONS
final public static String DELETE_OWN_PERMISSIONS(Code)



DISPLAY_DATE
final public static String DISPLAY_DATE(Code)
This string is the name of the property used when displaying and sorting the podcasts *



DISPLAY_TITLE
final public static String DISPLAY_TITLE(Code)
This string is the name of the property for the title of a podcast in the feed *



NEW_PERMISSIONS
final public static String NEW_PERMISSIONS(Code)



PODCASTS_SERVICE_NAME
final public static String PODCASTS_SERVICE_NAME(Code)
This string gives the Service name (class w/ package prefix) for podcast service *



READ_PERMISSIONS
final public static String READ_PERMISSIONS(Code)



REVISE_ANY_PERMISSIONS
final public static String REVISE_ANY_PERMISSIONS(Code)



REVISE_OWN_PERMISSIONS
final public static String REVISE_OWN_PERMISSIONS(Code)



UPDATE_PERMISSIONS
final public static String UPDATE_PERMISSIONS(Code)
This string gives the update function (permission) string for checking permissions *





Method Detail
addPodcast
public void addPodcast(String title, Date displayDate, String description, byte[] body, String filename, String contentType) throws OverQuotaException, ServerOverloadException, InconsistentException, IdInvalidException, IdLengthException, PermissionException, IdUniquenessException(Code)
Does the actual adding of podcast to Resources
Parameters:
  title - User specified title for the podcast
Parameters:
  displayDate - Date when podcast will be available for viewing
Parameters:
  description - User specified description for the podcast
Parameters:
  body - The actual contents of the podcast
Parameters:
  filename - The filename of the podcast being saved



allowAccess
public boolean allowAccess(String id)(Code)
Determines if authenticated user has 'read' access to podcast collection folder
Parameters:
  id - The id for the podcast collection folderTRUE - has read access, FALSE - does not



canUpdateSite
public boolean canUpdateSite(String siteId)(Code)
Determines if user can modify the site. Used by feed. boolean true if user can modify, false otherwise



canUpdateSite
public boolean canUpdateSite()(Code)
Determines if user can modify the site. Used within the tool. boolean true if user can modify, false otherwise



cancelContentCollection
public void cancelContentCollection(ContentCollectionEdit cce)(Code)
Cancels attempt at changing this collection (releases the lock)
Parameters:
  cce - The ContentCollectionEdit that is not to be changed



checkDISPLAY_DATE
public List checkDISPLAY_DATE(List resourcesList)(Code)
Will check if any podcasts were added in Resources and do not have their DISPLAY_DATE property set.
Parameters:
  resourcesList - The List of podcasts to check List of updated podcasts



checkForActualPodcasts
public boolean checkForActualPodcasts() throws PermissionException(Code)
Determines if there are actual podcasts in the folder true if there are actual podcasts, false otherwise



checkPodcastFolder
public boolean checkPodcastFolder() throws InUseException, PermissionException(Code)
Determines if podcast folder is part of Resources of site. If not, creates it. true if folder exists/created, false otherwise.



commitContentCollection
public void commitContentCollection(ContentCollectionEdit contentCollectionEdit)(Code)
Commit the changes made to the ContentCollection.
Parameters:
  contentCollectionEdit - The ContentCollection object that needs to be commited.



filterPodcasts
public List filterPodcasts(List resourcesList)(Code)
Only add podcast resources whose DISPLAY_DATE is today or earlier
Parameters:
  resourcesList - List of podcasts List of podcasts whose DISPLAY_DATE is today or before



getAResource
public ContentResourceEdit getAResource(String resourceId) throws PermissionException, IdUnusedException(Code)
Returns an editable resource if ID exists.
Parameters:
  String - The resourceId of the resource to get ContentResourceEdit If found, null otherwise



getContentCollection
public ContentCollection getContentCollection(String siteId) throws IdUnusedException, PermissionException(Code)
Returns the ContentCollection that contains the podcasts.
Parameters:
  siteId - The site id to pull the correct collection ContentCollection



getContentCollectionEditable
public ContentCollectionEdit getContentCollectionEditable(String siteId) throws IdUnusedException, PermissionException, InUseException(Code)
Returns the ContentCollection that contains the podcasts.
Parameters:
  siteId - The site id to pull the correct collection ContentCollection



getGMTdate
public Date getGMTdate(long date)(Code)
Takes the date String passed in and converts it to a Date object using GMT time
Parameters:
  date - A long value representing the date to be converted`Date object created



getOptions
public int getOptions()(Code)
Gets whether the podcast folder is Publicly viewable or not. int 0 = Public 1 = Site



getPodcastFileURL
public String getPodcastFileURL(String resourceId) throws PermissionException, IdUnusedException(Code)
Returns the full URL of the file from ContentHostingService
Parameters:
  resourceId - The ID for the file whose URL is wanted String The full URL for the file



getPodcasts
public List getPodcasts() throws PermissionException, InUseException, IdInvalidException, InconsistentException, IdUsedException(Code)
Returns a list of the podcasts stored in site/podcasts folder List of podcasts



getPodcasts
public List getPodcasts(String siteID) throws PermissionException, InUseException, IdInvalidException, InconsistentException, IdUsedException(Code)
Returns a list of the podcasts stored in site/podcasts folder
Parameters:
  siteID - Passed in by the podfeed server List of podcasts
throws:
  PermissionException -
throws:
  InUseException -
throws:
  IdInvalidException -
throws:
  InconsistentException -
throws:
  IdUsedException -



getSiteId
public String getSiteId()(Code)
Returns SiteId for the site this tool is a part of String of the site id



getUserId
public String getUserId()(Code)
Returns UserId for the current user String of the user ID



getUserName
public String getUserName()(Code)
Returns user display name for current user String of the user display name



hasPerm
public boolean hasPerm(String function)(Code)
Determines if user has the function (permission) passed in boolean true if user has function (permission), false otherwise.



isPublic
public boolean isPublic(String siteId)(Code)
Returns whether site is Public (true) or Site (false)
Parameters:
  siteId -



removePodcast
public void removePodcast(String resourceId) throws IdUnusedException, InUseException, TypeException, PermissionException(Code)
Removes a podcast from site/podcasts folder
Parameters:
  resourceId - resourceId of the podcast to be deleted



retrievePodcastFolderId
public String retrievePodcastFolderId(String siteId) throws PermissionException(Code)
Returns podcast folder id using either 'podcasts' or 'Podcasts'. If it does not exist in either form, will create it.
Parameters:
  siteId - The site to search String containing the complete id for the podcast folder
throws:
  PermissionException -



reviseOptions
public void reviseOptions(boolean option)(Code)
Changes whether the podcast folder is public/private
Parameters:
  option - int that sets the public/private option



revisePodcast
public void revisePodcast(String resourceId, String title, Date date, String description, byte[] body, String filename) throws PermissionException, InUseException, OverQuotaException, ServerOverloadException(Code)
Returns an editable resource if ID exists. ContentResourceEdit object if ID valid, null otherwise



setContentHostingService
public void setContentHostingService(ContentHostingService chs)(Code)
Used to inject the ContentHostingService
Parameters:
  chs - The application's ContentHostingService



setDISPLAY_DATE
public void setDISPLAY_DATE(ResourceProperties rp)(Code)
Sets the DISPLAY_DATE property of a podcast to CREATION_DATE
Parameters:
  rp - The ResourceProperties of the podcast to set



setToolManager
public void setToolManager(ToolManager tm)(Code)
Used to inject the ToolManager
Parameters:
  tm - The application's ToolManager



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.