Class RenderingContext
java.lang.Object
org.silverpeas.components.kmelia.servlets.renderers.RenderingContext
Context of a web page rendering.
- Author:
- mmoquillon
-
Constructor Summary
ConstructorsConstructorDescriptionRenderingContext(KmeliaSessionController kmeliaSC, org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory gef) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactorygetLastAuthor(KmeliaPublication publication) Gets the last user authoring the specified publication.org.silverpeas.core.util.MultiSilverpeasBundlegetRole()List<org.silverpeas.core.contribution.publication.model.PublicationPK>booleanbooleanbooleanbooleanbooleanbooleanisToLink()setAttachmentToLink(boolean attachmentToLink) setLinksAllowed(boolean linksAllowed) setPublications(List<KmeliaPublication> publicationDetails) setPublicationToHighlight(String pubToHighlight) setSearchInProgress(boolean searchInProgress) setSeeAlso(boolean seeAlso) setSelectedPublications(List<org.silverpeas.core.contribution.publication.model.PublicationPK> selectedPublications) setSortAllowed(boolean sortAllowed) setToLink(boolean toLink)
-
Constructor Details
-
RenderingContext
public RenderingContext(KmeliaSessionController kmeliaSC, org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory gef)
-
-
Method Details
-
isSortAllowed
public boolean isSortAllowed() -
setSortAllowed
-
isLinksAllowed
public boolean isLinksAllowed() -
setLinksAllowed
-
isSeeAlso
public boolean isSeeAlso() -
setSeeAlso
-
isSearchInProgress
public boolean isSearchInProgress() -
setSearchInProgress
-
getPublications
-
setPublications
-
displayPublications
public boolean displayPublications() -
getSessionController
-
getRole
-
setRole
-
getSelectedPublications
public List<org.silverpeas.core.contribution.publication.model.PublicationPK> getSelectedPublications() -
setSelectedPublications
public RenderingContext setSelectedPublications(List<org.silverpeas.core.contribution.publication.model.PublicationPK> selectedPublications) -
getResources
public org.silverpeas.core.util.MultiSilverpeasBundle getResources() -
getGraphicElementFactory
public org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory getGraphicElementFactory() -
isToLink
public boolean isToLink() -
setToLink
-
isAttachmentToLink
public boolean isAttachmentToLink() -
setAttachmentToLink
-
getPublicationToHighlight
-
setPublicationToHighlight
-
getLastAuthor
Gets the last user authoring the specified publication.- Parameters:
publication- a publication.- Returns:
- the name of the last publication author.
-