public class podHomeBean extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
podHomeBean.DecoratedPodcastBean
Bean to store information about a single podcast.
|
| Constructor and Description |
|---|
podHomeBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getActPodcastsExist()
Resources/podcasts exists, but are there any actual podcasts
|
podHomeBean.DecoratedPodcastBean |
getAPodcast(org.sakaiproject.content.api.ContentResource podcastResource,
boolean folderHidden)
Receives a particular podcast and packages it as a DecoratedPodcastBean
|
boolean |
getCanUpdateSite()
Returns boolean if user can update podcasts.
|
List |
getContents()
Construct a List of DecoratedPodcastBeans for display on main page
|
String |
getDate() |
String |
getDescription() |
boolean |
getDisplayInvalidDateErrMsg()
Returns whether an invalid date error message is displayed
|
boolean |
getDisplayNoDateErrMsg()
Returns whether a no date error message is displayed
|
boolean |
getDisplayNoFileErrMsg()
Returns whether a no file selected error message is displayed
|
boolean |
getDisplayNoTitleErrMsg()
Returns whether a no title entered error message is displayed
|
String |
getemail()
FUTURE: Returns the notification level set by the user
|
SelectItem[] |
getEmailItems()
FUTURE: To display the possible email notification levels
|
boolean |
getErrorOnPage() |
String |
getFilename() |
boolean |
getHasAllGroups()
Returns TRUE if user has ALLGROUPS permission (or site.upd which supercedes),
FALSE if not
|
boolean |
getHasDelAnyPerm() |
boolean |
getHasDelOwnPerm() |
boolean |
getHasHidden() |
boolean |
getHasNewPerm() |
boolean |
getHasReadPerm() |
boolean |
getHasReviseAnyPerm() |
boolean |
getHasReviseOwnPerm() |
String |
getMaxSizeExceededAlert()
Returns the message that a file too large tried to be uploaded.
|
String |
getMessageFromBundle(String key) |
String |
getMessageFromBundle(String key,
Object[] args) |
boolean |
getPodcastFolderExists()
Determines if the podcast folder exists.
|
boolean |
getResourceToolExists()
Determines if Resource tool part of the site.
|
podHomeBean.DecoratedPodcastBean |
getSelectedPodcast()
Returns the current DecoratedPodcastBean set as selectedPodcast.
|
String |
getTitle() |
boolean |
getUploadStatus()
Returns whether a file too large tried to be uploaded.
|
String |
getURL()
Returns the URL to point your podcatcher to in order to grab the feed.
|
String |
getUserName() |
boolean |
isCanAccessFolder() |
boolean |
isPodcastFolderHidden()
Returns whether the Podcasts folder should be considered HIDDEN in UI
|
void |
podMainListener(ActionEvent e)
To set the selectedPodcast DecoratedPodcastBean when Revision and
Deletion links are clicked (possibly Download also)
|
String |
processAdd()
Performs the actual adding of a podcast.
|
String |
processCancelAdd()
Erases bean values since no podcast is to be added.
|
String |
processCancelDelete()
Resets selectedPodcast bean since no deletion is to be made
|
String |
processCancelRevise()
Resets selectedPodcast bean since no revision is to be made
|
String |
processDeletePodcast()
Used to call podcastService to actually delete selected podcast.
|
void |
processFileUpload(ValueChangeEvent event)
Creates a BufferedInputStream to get ready to upload file selected.
|
String |
processPermissions()
Constructs call to permissions helper and redirects to it to display
Podcasts folder permissions page.
|
String |
processRevisePodcast()
Gathers information and calls PodcastService to make changes to existing
podcast.
|
void |
setDate(String date) |
void |
setDescription(String description) |
void |
setDisplayInvalidDateErrMsg(boolean displayInvalidDateErrMsg) |
void |
setDisplayNoDateErrMsg(boolean displayNoDateErrMsg) |
void |
setDisplayNoFileErrMsg(boolean displayNoFileErrMsg) |
void |
setDisplayNoTitleErrMsg(boolean displayNoTitleErrMsg) |
void |
setemail(String email)
FUTURE: Sets the notification level
|
void |
setFilename(String filename) |
void |
setPodcastPermissionsService(org.sakaiproject.api.app.podcasts.PodcastPermissionsService podcastPermissionsService) |
void |
setPodcastSelected(String resourceId)
Does the actual filling up of the selectedPodcast bean
|
void |
setPodcastService(org.sakaiproject.api.app.podcasts.PodcastService podcastService)
Used to inject the podcast service into this bean.
|
void |
setSelectedPodcast(podHomeBean.DecoratedPodcastBean selectedPodcast)
Use to set the selectedPodcast object.
|
void |
setTitle(String title) |
public boolean getResourceToolExists()
public boolean getPodcastFolderExists()
public String getURL()
public String processPermissions()
public void setPodcastService(org.sakaiproject.api.app.podcasts.PodcastService podcastService)
podcastService - The podcast service this bean needspublic void setPodcastPermissionsService(org.sakaiproject.api.app.podcasts.PodcastPermissionsService podcastPermissionsService)
public boolean isPodcastFolderHidden()
public podHomeBean.DecoratedPodcastBean getAPodcast(org.sakaiproject.content.api.ContentResource podcastResource, boolean folderHidden) throws org.sakaiproject.entity.api.EntityPropertyNotDefinedException, org.sakaiproject.entity.api.EntityPropertyTypeException
podcastProperties - Contains the ResourceProperties object of a podcast resourceresourceId - The resource ID for the podcastorg.sakaiproject.entity.api.EntityPropertyNotDefinedException - The property wanted was not foundorg.sakaiproject.entity.api.EntityPropertyTypeException - The property (Date/Time) was not a valid onepublic List getContents()
public boolean getActPodcastsExist()
public void podMainListener(ActionEvent e)
e - ActionEvent object generated by clicking on a linkpublic void setPodcastSelected(String resourceId)
resourceId - Resource ID for the podcast whose link was selectedpublic podHomeBean.DecoratedPodcastBean getSelectedPodcast()
public void setSelectedPodcast(podHomeBean.DecoratedPodcastBean selectedPodcast)
public String getFilename()
public void setFilename(String filename)
public String getDate()
public void setDate(String date)
public String getTitle()
public void setTitle(String title)
public String getDescription()
public void setDescription(String description)
public SelectItem[] getEmailItems()
public String getemail()
public void setemail(String email)
email - String representing the notification levelpublic boolean getCanUpdateSite()
public boolean getHasReadPerm()
public boolean getHasNewPerm()
public boolean getHasReviseAnyPerm()
public boolean getHasReviseOwnPerm()
public boolean getHasDelAnyPerm()
public boolean getHasDelOwnPerm()
public boolean getHasAllGroups()
public boolean getHasHidden()
public String getUserName()
public boolean isCanAccessFolder()
public void processFileUpload(ValueChangeEvent event) throws AbortProcessingException
event - ValueChangeEvent object generated by selecting a file to
upload.AbortProcessingException - Internal processing error attempting to set up BufferedInputStreampublic String processAdd()
public String processCancelAdd()
public String processRevisePodcast()
public String processCancelRevise()
public String processDeletePodcast()
public String processCancelDelete()
public boolean getDisplayNoFileErrMsg()
public void setDisplayNoFileErrMsg(boolean displayNoFileErrMsg)
public boolean getDisplayNoDateErrMsg()
public void setDisplayNoDateErrMsg(boolean displayNoDateErrMsg)
public boolean getDisplayNoTitleErrMsg()
public void setDisplayNoTitleErrMsg(boolean displayNoTitleErrMsg)
public boolean getErrorOnPage()
public boolean getDisplayInvalidDateErrMsg()
public void setDisplayInvalidDateErrMsg(boolean displayInvalidDateErrMsg)
displayInvalidDateErrMsg - The displayInvalidDateErrMsg to set.public boolean getUploadStatus()
public String getMaxSizeExceededAlert()
Copyright © 2003-2016 University of Michigan. All Rights Reserved.