public class BasicPodfeedService extends Object implements org.sakaiproject.api.app.podcasts.PodfeedService
| Constructor and Description |
|---|
BasicPodfeedService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAccess(String id)
Determines if authenticated user has 'read' access to podcast collection folder
|
protected void |
enablePodfeedSecurityAdvisor()
Establish a security advisor to allow the "embedded" azg work to occur
with no need for additional security permissions.
|
String |
generatePodcastRSS()
This method generates the RSS feed
|
String |
generatePodcastRSS(String siteId,
String ftype)
This method generates the RSS feed
|
String |
getPodfeedCopyright() |
String |
getPodfeedCopyright(String siteId)
Returns the global feed generator string.
|
String |
getPodfeedDescription()
Returns the String of the global feed description
|
String |
getPodfeedDescription(String siteId)
Returns the global feed description.
|
String |
getPodfeedGenerator() |
String |
getPodfeedGenerator(String siteId)
Returns the global feed generator string.
|
String |
getPodfeedTitle()
Returns the podfeed global title from content hosting via the podcastService
|
String |
getPodfeedTitle(String siteId)
Gets the title for the feed from podcast folder's properties.
|
void |
init() |
String |
retrievePodcastFolderId(String siteId)
Returns podcast folder id using either 'podcasts' or 'Podcasts'.
|
void |
setPodcastPermissionsService(org.sakaiproject.api.app.podcasts.PodcastPermissionsService podcastPermissionsService) |
void |
setPodcastService(org.sakaiproject.api.app.podcasts.PodcastService podcastService) |
void |
setPodfeedCopyright(String feedCopyright)
Sets feed copyright statement from within site.
|
void |
setPodfeedCopyright(String feedCopyright,
String siteId)
Sets the description for the feed.
|
void |
setPodfeedDescription(String feedDescription)
Returns the global feed generator String.
|
void |
setPodfeedDescription(String feedDescription,
String siteId)
Sets the description for the feed.
|
void |
setPodfeedGenerator(String feedGenerator) |
void |
setPodfeedGenerator(String feedGenerator,
String siteId)
Sets the description for the feed.
|
void |
setPodfeedTitle(String feedTitle)
Stores the title for the feed in the podcast folder's resources
|
void |
setPodfeedTitle(String feedTitle,
String siteId)
Stores the title for the feed in the podcast folder's resources.
|
void |
setSecurityService(org.sakaiproject.authz.api.SecurityService securityService) |
void |
setSiteService(org.sakaiproject.site.api.SiteService siteService) |
public void setSecurityService(org.sakaiproject.authz.api.SecurityService securityService)
securityService - The securityService to set.public void setPodcastService(org.sakaiproject.api.app.podcasts.PodcastService podcastService)
podcastService - The podcastService to set.public void setSiteService(org.sakaiproject.site.api.SiteService siteService)
siteService - The siteService to set.public void setPodcastPermissionsService(org.sakaiproject.api.app.podcasts.PodcastPermissionsService podcastPermissionsService)
public void init()
public String getPodfeedTitle()
getPodfeedTitle in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic String getPodfeedTitle(String siteId)
getPodfeedTitle in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteId - The site idpublic void setPodfeedTitle(String feedTitle)
setPodfeedTitle in interface org.sakaiproject.api.app.podcasts.PodfeedServiceString - The title for the feedpublic void setPodfeedTitle(String feedTitle, String siteId)
feedTitle - The title for the feedsiteId - The siteId whose feed is being titledpublic String getPodfeedDescription()
getPodfeedDescription in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic String getPodfeedDescription(String siteId)
getPodfeedDescription in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteId - The site id to get the feed description frompublic void setPodfeedDescription(String feedDescription)
setPodfeedDescription in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic void setPodfeedDescription(String feedDescription, String siteId)
feedDescription - The String containing the feed description.siteId - The siteId where to store the descriptionpublic String getPodfeedGenerator()
getPodfeedGenerator in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic String getPodfeedGenerator(String siteId)
getPodfeedGenerator in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteId - The site id to get the feed description frompublic void setPodfeedGenerator(String feedGenerator)
setPodfeedGenerator in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic void setPodfeedGenerator(String feedGenerator, String siteId)
feedDescription - The String containing the feed description.siteId - The siteId where to store the descriptionpublic String getPodfeedCopyright()
getPodfeedCopyright in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic String getPodfeedCopyright(String siteId)
getPodfeedCopyright in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteId - The site id to get the feed description frompublic void setPodfeedCopyright(String feedCopyright)
setPodfeedCopyright in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic void setPodfeedCopyright(String feedCopyright, String siteId)
feedDescription - The String containing the feed description.siteId - The siteId where to store the descriptionpublic String generatePodcastRSS()
generatePodcastRSS in interface org.sakaiproject.api.app.podcasts.PodfeedServicepublic String generatePodcastRSS(String siteId, String ftype)
generatePodcastRSS in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteID - The site id whose feed needs to be generatedftyle - The feed type (for potential future development) - currently rss 2.0protected void enablePodfeedSecurityAdvisor()
public String retrievePodcastFolderId(String siteId)
retrievePodcastFolderId in interface org.sakaiproject.api.app.podcasts.PodfeedServicesiteId - The site to searchpublic boolean allowAccess(String id)
allowAccess in interface org.sakaiproject.api.app.podcasts.PodfeedServiceid - The id for the podcast collection folderCopyright © 2004-2016 Sakai Project. All Rights Reserved.