Class WebSiteSessionController
java.lang.Object
org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
org.silverpeas.components.websites.control.WebSiteSessionController
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
public class WebSiteSessionController
extends org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
This is the webSite manager main interface It contains all the methods to be accessible to the
client
- Author:
- Cécile BONIN
- See Also:
-
Field Summary
FieldsFields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context -
Constructor Summary
ConstructorsConstructorDescriptionWebSiteSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext) -
Method Summary
Modifier and TypeMethodDescriptionintaddFileIntoWebSite(String webSitePath, org.silverpeas.core.util.file.FileItem fileItem) voidaddFolder(org.silverpeas.core.node.model.NodeDetail nd) voidaddPublicationToFolder(String pubId, String folderId) voidassociateIcons(String id, Collection<String> listeIcones) AssociateIconsvoidchangePubsOrder(String pubId, int direction) voidchangeTopicsOrder(String way, String topicId) voidvoidcreateFile(String filePath, String fileName, String fileContent) createPagevoidcreateFolder(String path) createFoldercreateWebSite(SiteDetail description) createWebSiteintcreateWebSiteFromZipFile(SiteDetail descriptionSite, org.silverpeas.core.util.file.FileItem fileItem) Creates a website from the content of an archive file (a ZIP file).voiddeleteDirectory(String path) voiddeleteFile(String path) deleteFilevoiddeleteFolder(String id) voiddeletePublication(String pubId) voiddeleteWebSites(Collection<String> liste) voiddelFoldervoiddePublish(Collection<String> listeSite) dePublishCollection<org.silverpeas.core.node.model.NodePK>getAllFatherPK(String pubId) getAllFile(String chemin) getAllFilegetAllHTMLWebPages(String chemin) getAllHTMLWebPagesgetAllIconsgetAllImages(String chemin) getAllImagesgetAllSubFolder(String chemin) getAllSubFoldergetAllWebSiteorg.silverpeas.core.node.model.NodeDetailgetIconsgetIdPublication(String siteId) getNextIdorg.silverpeas.core.notification.user.client.NotificationSenderorg.silverpeas.core.contribution.publication.model.PublicationDetailgetPublicationDetail(String pubId) intgetSilverObjectId(String objectId) getSiteNamegetWebSite(String id) getWebSiteprotected StringgetWebSiteServicebooleanbooleanbooleanvoidnotifyPublishers(String auteur, String nomSite, String description, String nomPage, String listeMessage, String date) notifyPublishersvoidpublish(Collection<String> listeSite) publishvoidremovePublicationToFolder(String pubId, String folderId) voidvoidvoidrenameFile(String dir, String name, String newName) renameFilevoidrenameFolder(String oldPath, String newPath) renameFoldervoidsetSessionSite(SiteDetail siteDetail) voidsetSessionTopic(FolderDetail topicDetail) voidsetSiteName(String siteName) setSiteNamevoidunzipvoidupdateClassification(String idSite, ArrayList<String> arrayTopic) voidupdateFolderHeader(org.silverpeas.core.node.model.NodeDetail nd) voidupdateWebSite(SiteDetail siteDetail) Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
Field Details
-
TAB_PDC
- See Also:
-
-
Constructor Details
-
WebSiteSessionController
public WebSiteSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext)
-
-
Method Details
-
getWebSiteRepositoryPath
-
isBookmarkMode
public boolean isBookmarkMode() -
isSortedTopicsEnabled
public boolean isSortedTopicsEnabled() -
setSessionTopic
-
setSessionSite
-
getSessionTopic
-
getSessionSite
-
removeSessionTopic
public void removeSessionTopic() -
removeSessionSite
public void removeSessionSite() -
getNotificationSender
public org.silverpeas.core.notification.user.client.NotificationSender getNotificationSender() -
getWebSiteService
getWebSiteService -
isPdcUsed
public boolean isPdcUsed() -
getFolder
- Throws:
WebSitesException
-
updateFolderHeader
public void updateFolderHeader(org.silverpeas.core.node.model.NodeDetail nd) throws WebSitesException - Throws:
WebSitesException
-
getFolderDetail
public org.silverpeas.core.node.model.NodeDetail getFolderDetail(String id) throws WebSitesException - Throws:
WebSitesException
-
addFolder
- Throws:
WebSitesException
-
deleteFolder
- Throws:
WebSitesException
-
changeTopicsOrder
-
getPublicationDetail
public org.silverpeas.core.contribution.publication.model.PublicationDetail getPublicationDetail(String pubId) throws WebSitesException - Throws:
WebSitesException
-
deletePublication
- Throws:
WebSitesException
-
getAllFatherPK
public Collection<org.silverpeas.core.node.model.NodePK> getAllFatherPK(String pubId) throws WebSitesException - Throws:
WebSitesException
-
addPublicationToFolder
- Throws:
WebSitesException
-
removePublicationToFolder
- Throws:
WebSitesException
-
getIdPublication
- Throws:
WebSitesException
-
changePubsOrder
-
setSiteName
setSiteName -
getSiteName
getSiteName -
getAllWebSite
getAllWebSite- Throws:
WebSitesException
-
getWebSite
getWebSite- Throws:
WebSitesException
-
getIcons
getIcons- Throws:
WebSitesException
-
getNextId
getNextId- Throws:
WebSitesException
-
getAllIcons
getAllIcons- Throws:
WebSitesException
-
getAllSubFolder
getAllSubFolder- Throws:
WebSitesException
-
getAllFile
getAllFile- Throws:
WebSitesException
-
getAllImages
getAllImages- Throws:
WebSitesException
-
getAllHTMLWebPages
getAllHTMLWebPages- Throws:
WebSitesException
-
createWebSite
createWebSite- Throws:
WebSitesException
-
associateIcons
AssociateIcons- Throws:
WebSitesException
-
publish
publish- Throws:
WebSitesException
-
dePublish
dePublish- Throws:
WebSitesException
-
createFolder
createFolder- Throws:
WebSitesException
-
getWebSitePathById
-
renameFolder
renameFolder- Throws:
WebSitesException
-
delFolder
delFolder- Throws:
WebSitesException
-
createFile
public void createFile(String filePath, String fileName, String fileContent) throws WebSitesException createPage- Throws:
WebSitesException
-
unzip
unzip- Throws:
WebSitesException
-
deleteWebSites
- Throws:
WebSitesException
-
updateWebSite
- Throws:
WebSitesException
-
deleteDirectory
- Throws:
WebSitesException
-
renameFile
renameFile- Throws:
WebSitesException
-
deleteFile
deleteFile- Throws:
WebSitesException
-
verif
public String verif(String action, String currentPath, String name, String newName, String nomPage) throws WebSitesException - Throws:
WebSitesException
-
notifyPublishers
public void notifyPublishers(String auteur, String nomSite, String description, String nomPage, String listeMessage, String date) notifyPublishers -
getSilverObjectId
-
updateClassification
public void updateClassification(String idSite, ArrayList<String> arrayTopic) throws WebSitesException - Throws:
WebSitesException
-
checkPath
- Throws:
WebSitesException
-
addFileIntoWebSite
public int addFileIntoWebSite(String webSitePath, org.silverpeas.core.util.file.FileItem fileItem) throws IOException - Throws:
IOException
-
createWebSiteFromZipFile
public int createWebSiteFromZipFile(SiteDetail descriptionSite, org.silverpeas.core.util.file.FileItem fileItem) throws WebSitesException Creates a website from the content of an archive file (a ZIP file).- Parameters:
descriptionSite- the site to create.fileItem- the zip archive with the content of the site to create.- Returns:
- the creation status. 0 means the creation succeed, other values means the site creation failed: -1 the main page name is invalid and -2 the website folder creation failed.
- Throws:
WebSitesException- if an unexpected error occurs when creating the website.
-