|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaItemVersion
Representation of a version of a media item.
| Method Summary | |
|---|---|
void |
addTerm(MediaTerm mediaTerm)
Set term. |
void |
createRichTextElements()
Deprecated. See getElements() |
Image |
getAttachedLeadImage()
Return attached lead image. |
Component |
getComponent()
Return the component. |
java.lang.String |
getContentType()
Returns the content type name of this media item |
java.util.Date |
getCreationDate()
Return creation date. |
DiscussionConfiguration |
getDiscussionConfiguration()
Returns the discussion configuration for this media item version. |
ElementHolder |
getElementHolder()
Returns the element holder for the media item version. |
Element[] |
getElements()
Deprecated. This method and a few other methods related to elements in this interface don't belong here and have been deprecated. MediaItemVersion objects which use elements also implement the ElementHolder interface. If you need to call ElementHolder methods on a MediaItemVersion object then make use of instanceof and cast to ElementHolder. |
java.util.Date |
getExpirationDate()
Return expiration date. |
java.lang.String |
getExternalId()
Return external identifier. |
Forum |
getForum()
Return the forum associated with this article or null. |
ForumSettings |
getForumSettings()
Return the ForumSettings associated with the Forum or null. |
java.lang.String |
getFriendlyURLTitle()
Returns the friendly URL title. |
java.lang.String |
getHtmlTitle()
Return the HTML title. |
Element |
getLastElement()
Deprecated. See getElements() |
java.util.Date |
getLastModifiedDate()
Return last modified date. |
User |
getLastModifiedUser()
Return the last modified user of this page version. |
java.lang.String |
getLead()
Return lead text. |
Image |
getLeadImage()
Return lead image. |
MediaItem |
getLeadImageMediaItem()
Return lead image from objectmanager. |
MediaItem |
getMediaItem()
Returns media item of the media item version. |
javax.jcr.Node |
getPrivateNode()
Get the private node injected |
java.util.Date |
getPublicationDate()
Return publication date. |
ResourceInstance[] |
getResourceInstances()
Returns an array of the refered ResourceInstances for this article |
Page |
getTargetPage()
Return target page. |
MediaTerm[] |
getTerms()
Return terms. |
java.lang.String |
getTitle()
Return title of this media itemm |
int |
getTotalVotes()
Gets the total votes |
float |
getVotingAverage()
Get the ranking ( the average of votes ) |
VotingModel |
getVotingModel()
Return the VotingModel. |
Website |
getWebsite()
Return website that owns the media item. |
void |
insertLastElementAtCursor()
Deprecated. See getElements() |
boolean |
isArticle()
Deprecated. This method is kept around for backward compatibility. Consider using "instanceof ElementHolder" instead. |
boolean |
isAuthorized()
Returns true if the current user is authorized to update this media item version. |
boolean |
isBundle()
Indicates if the media item is assosiated with a component from a bundle |
boolean |
isCurrent()
Returns true if you may view this MediaItemVersion object either because it is public (i.e. |
boolean |
isPublic()
Return true if the mediaitemversion state is public. |
void |
removeTerm(MediaTerm mediaTerm)
Remove term. |
void |
setArticle(boolean isArticle)
Deprecated. This method is kept around for backward compatibility. You won't need it in new code. |
void |
setAuthorized(boolean isAuthorized)
Deprecated. Will probably be removed in WM 9.2 |
void |
setComponent(Component component)
Sets the component. |
void |
setContentType(java.lang.String contentType)
Deprecated. |
void |
setDiscussionConfiguration(DiscussionConfiguration discConfig)
Sets the discussion configuration for this media item version. |
void |
setElementHolder(ElementHolder elementHolder)
Sets the element holder for the media item version. |
void |
setElements(Element[] elements)
Deprecated. See getElements() |
void |
setExpirationDate(java.util.Date date)
Set expiration date. |
void |
setExternalId(java.lang.String value)
Set external id |
void |
setForum(Forum forum)
Set the forum associated with this article or null. |
void |
setForumSettings(ForumSettings forumSettings)
Set the ForumSettings associated with the Forum or null. |
void |
setFriendlyURLTitle(java.lang.String friendlyURLTitle)
Sets the friendly URL title. |
void |
setHtmlTitle(java.lang.String title)
Set title of this media item. |
void |
setLead(java.lang.String lead)
Set lead text. |
void |
setLeadImage(FileResource leadImage)
Set lead image. |
void |
setLeadImage(Image leadImage)
Deprecated. 'The Image type isn't sufficent to specify the contents of an image file. |
void |
setPrivateNode(javax.jcr.Node node)
Set the private node injected |
void |
setPublic(boolean isPublic)
Deprecated. Will probably be removed in WM 9.2 |
void |
setPublicationDate(java.util.Date publidationDate)
Set publication date. |
void |
setResourceInstances(ResourceInstance[] resourceInstances)
Set the refered ResourceInstances for this article |
void |
setTargetPage(Page targetPage)
Set target page. |
void |
setTerms(MediaTerm[] mediaTerms)
Set terms. |
void |
setTitle(java.lang.String title)
Set title of this media item |
void |
setWebsite(Website website)
Set website that owns the media item. |
| Methods inherited from interface nl.gx.webmanager.wrapper.Wrapper |
|---|
getId, getUUID, setId, setUUID |
| Methods inherited from interface nl.gx.webmanager.springmvc.FormBackingObject |
|---|
getNestedPath, getUUID |
| Methods inherited from interface nl.gx.webmanager.cms.workflow.WorkflowEnabled |
|---|
getWorkflowModel, getWorkflowModelInstance |
| Method Detail |
|---|
MediaItem getMediaItem()
java.lang.String getTitle()
void setTitle(java.lang.String title)
title - title of this media item to setjava.lang.String getHtmlTitle()
void setHtmlTitle(java.lang.String title)
title - java.util.Date getPublicationDate()
void setPublicationDate(java.util.Date publidationDate)
publidationDate - publication date.java.util.Date getExpirationDate()
void setExpirationDate(java.util.Date date)
date - expiration date.java.util.Date getLastModifiedDate()
java.lang.String getLead()
void setLead(java.lang.String lead)
lead - lead text.Image getLeadImage()
Image getAttachedLeadImage()
MediaItem getLeadImageMediaItem()
void setLeadImage(FileResource leadImage)
leadImage - lead image.@Deprecated void setLeadImage(Image leadImage)
leAdImage - lead image.Website getWebsite()
void setWebsite(Website website)
website - website that owns the media item.Page getTargetPage()
void setTargetPage(Page targetPage)
targetPage - target page.boolean isPublic()
@Deprecated void setPublic(boolean isPublic)
isPublic - true if the mediaitemversion state is publicMediaTerm[] getTerms()
void setTerms(MediaTerm[] mediaTerms)
mediaTerms - termsvoid addTerm(MediaTerm mediaTerm)
mediaTerm - termvoid removeTerm(MediaTerm mediaTerm)
mediaTerm - termboolean isAuthorized()
@Deprecated void setAuthorized(boolean isAuthorized)
isAuthorized - true if the current user is authorized to update this media item versionboolean isBundle()
@Deprecated boolean isArticle()
@Deprecated void setArticle(boolean isArticle)
isArticle - true if this media item is an article, false otherwisejava.lang.String getContentType()
@Deprecated void setContentType(java.lang.String contentType)
contentType - content type of this media item to setvoid setPrivateNode(javax.jcr.Node node)
node - javax.jcr.Node getPrivateNode()
@Deprecated Element[] getElements()
@Deprecated void setElements(Element[] elements)
elements - elements in this media item version. May be null.ElementHolder getElementHolder()
void setElementHolder(ElementHolder elementHolder)
elementHolder - the element holder for the media item version. May be null.@Deprecated void createRichTextElements()
@Deprecated Element getLastElement()
@Deprecated void insertLastElementAtCursor()
Component getComponent()
void setComponent(Component component)
component - Component to set.VotingModel getVotingModel()
float getVotingAverage()
int getTotalVotes()
Forum getForum()
ForumSettings getForumSettings()
void setForum(Forum forum)
forum - the forum associated with this article or null.void setForumSettings(ForumSettings forumSettings)
forumSettings - the ForumSettings associated with the Forum or null.ResourceInstance[] getResourceInstances()
void setResourceInstances(ResourceInstance[] resourceInstances)
resourceInstances - an array of the refered ResourceInstances for this articlejava.util.Date getCreationDate()
java.lang.String getExternalId()
void setExternalId(java.lang.String value)
value - external idDiscussionConfiguration getDiscussionConfiguration()
void setDiscussionConfiguration(DiscussionConfiguration discConfig)
discConfig - The discussion configuration to setboolean isCurrent()
MediaItemVersion object either because it is public (i.e. the
current version) or because you're in the preview mode and have the required workflow based
authorization.
MediaItemVersion object either because it is public (i.e. the
current version) or because you're in the preview mode and have the required workflow based
authorization.User getLastModifiedUser()
java.lang.String getFriendlyURLTitle()
website_settings.friendly_url_setting equals urltitle. The
returned string is used by the SEOService to normalize and store it in the friendly URL
store.
void setFriendlyURLTitle(java.lang.String friendlyURLTitle)
friendlyURLTitle - Friendly URL title to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||