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


java.lang.Object
   org.sakaiproject.component.app.podcasts.PodcastServiceImpl

PodcastServiceImpl
public class PodcastServiceImpl implements PodcastService(Code)


Field Summary
protected  Stringm_relativeAccessPoint
    

Constructor Summary
 PodcastServiceImpl()
    

Method Summary
public  voidaddPodcast(String title, Date displayDate, String description, byte[] body, String filename, String contentType)
    
public  booleanallowAccess(String id)
    
public  booleancanUpdateSite(String siteId)
    
public  booleancanUpdateSite()
    
public  voidcancelContentCollection(ContentCollectionEdit cce)
    
public  ListcheckDISPLAY_DATE(List resourcesList)
     Checks if podcast resources have a DISPLAY_DATE set.
public  booleancheckForActualPodcasts()
    
public  booleancheckPodcastFolder()
    
public  voidcommitContentCollection(ContentCollectionEdit cce)
    
public  voiddestroy()
    
protected  voidenablePodcastSecurityAdvisor()
     Establish a security advisor to allow the "embedded" azg work to occur with no need for additional security permissions.
public  ListfilterPodcasts(List resourcesList)
    
public  ListfilterResources(List resourcesList)
    
public  ContentResourceEditgetAResource(String resourceId)
     Pulls a ContentResourceEdit from ContentHostingService.
public  ContentCollectiongetContentCollection(String siteId)
    
public  ContentCollectionEditgetContentCollectionEditable(String siteId)
    
public  DategetGMTdate(long date)
    
public  intgetOptions()
    
public  StringgetPodcastFileURL(String resourceId)
    
public  ListgetPodcasts()
     Retrieve Podcasts for site and if podcast folder does not exist, create it.
public  ListgetPodcasts(String siteId)
     Retrieve Podcasts for site and if podcast folder does not exist, create it.
public  StringgetSiteId()
    
public  StringgetSiteURL()
    
public  StringgetUserId()
    
public  StringgetUserName()
    
public  booleanhasPerm(String function)
    
public  voidinit()
    
public  booleanisPublic(String podcastFolderId)
    
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)
    
public  voidsetContentHostingService(ContentHostingService chs)
    
public  voidsetDISPLAY_DATE(ResourceProperties rp)
     Sets the DISPLAY_DATE property to the creation date of the podcast. Needed if file added using Resources.
public  voidsetToolManager(ToolManager tm)
    

Field Detail
m_relativeAccessPoint
protected String m_relativeAccessPoint(Code)
Needed for when Notification implemented *




Constructor Detail
PodcastServiceImpl
PodcastServiceImpl()(Code)




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)
Add a podcast to the site's resources
Parameters:
  title - The title of this podcast resource
Parameters:
  displayDate - The display date for this podcast resource
Parameters:
  description - The description of this podcast resource
Parameters:
  body - The bytes of this podcast
throws:
  OverQuotaException - To display Over Quota Alert to user
throws:
  ServerOverloadException - To display Internal Server Error Alert to user
throws:
  InconsistentException - To display Internal Server Error Alert to user
throws:
  IdInvalidException - To display Invalid Id Alert to user
throws:
  IdLengthException - To display File path too long Alert to user
throws:
  PermissionException - To display Permission denied Alert to user
throws:
  IdUniquenessException - To display Duplicate id used Alert to user



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)
Determine whether user and update the site
Parameters:
  siteId - The siteId for the site to test True True if can update, False otherwise



canUpdateSite
public boolean canUpdateSite()(Code)
Determine whether user and update the site
Parameters:
  siteId - The siteId for the site to test True if can update, 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)
Checks if podcast resources have a DISPLAY_DATE set. Occurs when files uploaded to podcast folder from Resources.
Parameters:
  List - The list of podcast resources List The list of podcast resource all with DISPLAY_DATE property



checkForActualPodcasts
public boolean checkForActualPodcasts()(Code)
Determines if folder contains actual files boolean true if files are stored there, false otherwise



checkPodcastFolder
public boolean checkPodcastFolder() throws PermissionException, InUseException(Code)
Tests whether the podcasts folder exists and create it if it does not True - if exists, false - otherwise



commitContentCollection
public void commitContentCollection(ContentCollectionEdit cce)(Code)
Commits changes to ContentHosting (releases the lock)
Parameters:
  ContentCollectionEdit - The ContentCollection to be saved



destroy
public void destroy()(Code)



enablePodcastSecurityAdvisor
protected void enablePodcastSecurityAdvisor()(Code)
Establish a security advisor to allow the "embedded" azg work to occur with no need for additional security permissions.



filterPodcasts
public List filterPodcasts(List resourcesList)(Code)
Returns only those podcasts whose DISPLAY_DATE property is today or earlier
Parameters:
  resourcesList - List of podcasts List List of podcasts whose DISPLAY_DATE is today or before



filterResources
public List filterResources(List resourcesList)(Code)
Remove on file resources from list of potential podcasts
Parameters:
  resourcesList - The list of potential podcasts List List of files to make up the podcasts



getAResource
public ContentResourceEdit getAResource(String resourceId) throws PermissionException, IdUnusedException(Code)
Pulls a ContentResourceEdit from ContentHostingService.
Parameters:
  String - The resourceId of the resource to get ContentResourceEdit If found, null otherwise



getContentCollection
public ContentCollection getContentCollection(String siteId) throws IdUnusedException, PermissionException(Code)
Get ContentCollection object for podcasts
Parameters:
  String - The siteId to grab the correct podcasts ContentCollection The ContentCollection object containing thepodcasts



getContentCollectionEditable
public ContentCollectionEdit getContentCollectionEditable(String siteId) throws IdUnusedException, PermissionException, InUseException(Code)
Get ContentCollection object for podcasts
Parameters:
  String - The siteId to grab the correct podcasts ContentCollection The ContentCollection object containing the podcasts



getGMTdate
public Date getGMTdate(long date)(Code)
Returns the date set in GMT time
Parameters:
  date - The date represented as a long value DateThe Date object set in GMT time



getOptions
public int getOptions()(Code)
Returns (from content hosting) whether the podcast folder is PUBLIC or SITE int 0 = Display to non-members, 1 = Display to Site



getPodcastFileURL
public String getPodcastFileURL(String resourceId) throws PermissionException, IdUnusedException(Code)
Returns the file's URL
Parameters:
  String - The resource Id String The URL for the resource



getPodcasts
public List getPodcasts() throws PermissionException, InUseException, IdInvalidException, InconsistentException, IdUsedException(Code)
Retrieve Podcasts for site and if podcast folder does not exist, create it. Used within tool since siteId known ListA List of podcast resources



getPodcasts
public List getPodcasts(String siteId) throws PermissionException, InUseException, IdInvalidException, InconsistentException, IdUsedException(Code)
Retrieve Podcasts for site and if podcast folder does not exist, create it. Used by feed since no context to pull siteId from
Parameters:
  String - The siteId the feed needs the podcasts from ListA List of podcast resources



getSiteId
public String getSiteId()(Code)
Retrieve the site id



getSiteURL
public String getSiteURL()(Code)
Returns the site URL as a string String containing the sites URL



getUserId
public String getUserId()(Code)
Retrieve the current user id



getUserName
public String getUserName()(Code)
Retrieve the current user display name



hasPerm
public boolean hasPerm(String function)(Code)



init
public void init()(Code)
FUTURE: needed to implement Notification services



isPublic
public boolean isPublic(String podcastFolderId)(Code)
Returns boolean TRUE = Display to non-members FALSE - Display to Site
Parameters:
  podcastFolderId - The podcast folder id to check boolean TRUE - Display to non-members, FALSE - Display to Site



removePodcast
public void removePodcast(String resourceId) throws IdUnusedException, InUseException, TypeException, PermissionException(Code)
Removes a podcast
Parameters:
  id - The podcast to be removed from ContentHosting



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 Contains the complete id for the podcast folder
throws:
  PermissionException - Access denied or Not found so not available
throws:
  IdInvalidException - Constructed Id not valid
throws:
  IdUsedException - When attempting to create Podcast folder, id is a duplicate



reviseOptions
public void reviseOptions(boolean option)(Code)
Changes the podcast folder view status (either PUBLIC or SITE) booleanTrue means PUBLIC view, FALSE means private



revisePodcast
public void revisePodcast(String resourceId, String title, Date date, String description, byte[] body, String filename) throws PermissionException, InUseException, OverQuotaException, ServerOverloadException(Code)
Will apply changes made (if any) to podcast
Parameters:
  String - The resourceId
Parameters:
  String - The title
Parameters:
  Date - The display/publish date
Parameters:
  String - The description byte[]The actual file contents
Parameters:
  String - The filename



setContentHostingService
public void setContentHostingService(ContentHostingService chs)(Code)
Injects ContentHostingService into this service *



setDISPLAY_DATE
public void setDISPLAY_DATE(ResourceProperties rp)(Code)
Sets the DISPLAY_DATE property to the creation date of the podcast. Needed if file added using Resources. Time stored is GMT so when pulled need to convert to local.
Parameters:
  ResourceProperties - The ResourceProperties that need DISPLAY_DATE added



setToolManager
public void setToolManager(ToolManager tm)(Code)
Injects ToolManager into this service *



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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