|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.stratelia.webactiv.webSites.control.WebSiteSessionController
public class WebSiteSessionController
Field Summary | |
---|---|
static String |
TAB_PDC
|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
WebSiteSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
|
Method Summary | |
---|---|
int |
addFileIntoWebSite(String webSitePath,
org.apache.commons.fileupload.FileItem fileItem)
|
com.stratelia.webactiv.util.node.model.NodePK |
addFolder(com.stratelia.webactiv.util.node.model.NodeDetail nd,
String alertType)
|
void |
addPublicationToFolder(String pubId,
String folderId)
|
void |
associateIcons(String id,
Collection<String> listeIcones)
AssociateIcons |
void |
changePubsOrder(String pubId,
int direction)
|
void |
changeTopicsOrder(String way,
String topicId)
|
void |
checkPath(String path)
|
void |
close()
|
void |
createFile(String cheminFichier,
String nomFichier,
String contenuFichier)
createPage |
void |
createFolder(String chemin)
createFolder |
String |
createWebSite(SiteDetail description)
createWebSite |
int |
createWebSiteFromZipFile(SiteDetail descriptionSite,
org.apache.commons.fileupload.FileItem fileItem)
Creates a web site from the content of an archive file (a ZIP file). |
void |
deleteDirectory(String chemin)
deleteDirectory |
void |
deleteFile(String chemin)
deleteFile |
void |
deleteFolder(String id)
|
void |
deletePublication(String pubId)
|
void |
deleteWebSites(Collection<String> liste)
deleteWebSites |
void |
delFolder(String chemin)
delFolder |
void |
dePublish(Collection<String> listeSite)
dePublish |
Collection<com.stratelia.webactiv.util.node.model.NodePK> |
getAllFatherPK(String pubId)
|
Collection<File> |
getAllFile(String chemin)
getAllFile |
Collection<IconDetail> |
getAllIcons()
getAllIcons |
Collection<File> |
getAllImages(String chemin)
getAllImages |
Collection<File> |
getAllSubFolder(String chemin)
getAllSubFolder |
Collection<File> |
getAllWebPages2(String chemin)
getAllWebPages2 |
Collection<SiteDetail> |
getAllWebSite()
getAllWebSite |
String |
getCode(String cheminFichier,
String nomFichier)
getCode |
FolderDetail |
getFolder(String id)
|
com.stratelia.webactiv.util.node.model.NodeDetail |
getFolderDetail(String id)
|
Collection<IconDetail> |
getIcons(String id)
getIcons |
String |
getIdPublication(String siteId)
|
String |
getNextId()
getNextId |
com.stratelia.silverpeas.notificationManager.NotificationSender |
getNotificationSender()
|
com.stratelia.webactiv.util.publication.model.PublicationDetail |
getPublicationDetail(String pubId)
|
SiteDetail |
getSessionSite()
|
FolderDetail |
getSessionTopic()
|
int |
getSilverObjectId(String objectId)
|
String |
getSiteName()
getSiteName |
SiteDetail |
getWebSite(String id)
getWebSite |
WebSiteBm |
getWebSiteEJB()
getWebSiteEJB |
String |
getWebSitePathById(String id)
|
protected String |
getWebSiteRepositoryPath()
|
void |
index()
index web sites component |
boolean |
isBookmarkMode()
|
boolean |
isPdcUsed()
|
boolean |
isSortedTopicsEnabled()
|
void |
notifyPublishers(String auteur,
String nomSite,
String description,
String nomPage,
String listeMessage,
String date)
notifyPublishers |
void |
publish(Collection<String> listeSite)
publish |
void |
removePublicationToFolder(String pubId,
String folderId)
|
void |
removeSessionSite()
|
void |
removeSessionTopic()
|
void |
renameFile(String rep,
String name,
String newName)
renameFile |
void |
renameFolder(String cheminRep,
String newCheminRep)
renameFolder |
void |
setSessionSite(SiteDetail siteDetail)
|
void |
setSessionTopic(FolderDetail topicDetail)
********************************************************************************** |
void |
setSiteName(String siteName)
setSiteName |
void |
unzip(String cheminDirResultat,
String cheminFichierZip)
unzip |
void |
updateClassification(String idSite,
ArrayList<String> arrayTopic)
|
com.stratelia.webactiv.util.node.model.NodePK |
updateFolderHeader(com.stratelia.webactiv.util.node.model.NodeDetail nd,
String alertType)
|
void |
updateWebSite(SiteDetail description)
|
String |
verif(String action,
String currentPath,
String name,
String newName,
String nomPage)
verif |
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
addClipboardSelection, clipboardPasteDone, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAB_PDC
Constructor Detail |
---|
public WebSiteSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Method Detail |
---|
protected String getWebSiteRepositoryPath()
public boolean isBookmarkMode()
public boolean isSortedTopicsEnabled()
public void setSessionTopic(FolderDetail topicDetail)
public void setSessionSite(SiteDetail siteDetail)
public FolderDetail getSessionTopic()
public SiteDetail getSessionSite()
public void removeSessionTopic()
public void removeSessionSite()
public com.stratelia.silverpeas.notificationManager.NotificationSender getNotificationSender()
public WebSiteBm getWebSiteEJB()
public boolean isPdcUsed()
public FolderDetail getFolder(String id) throws WebSitesException
WebSitesException
public com.stratelia.webactiv.util.node.model.NodePK updateFolderHeader(com.stratelia.webactiv.util.node.model.NodeDetail nd, String alertType) throws WebSitesException
WebSitesException
public com.stratelia.webactiv.util.node.model.NodeDetail getFolderDetail(String id) throws WebSitesException
WebSitesException
public com.stratelia.webactiv.util.node.model.NodePK addFolder(com.stratelia.webactiv.util.node.model.NodeDetail nd, String alertType) throws WebSitesException
WebSitesException
public void deleteFolder(String id) throws WebSitesException
WebSitesException
public void changeTopicsOrder(String way, String topicId) throws RemoteException
way
- topicId
-
RemoteException
public com.stratelia.webactiv.util.publication.model.PublicationDetail getPublicationDetail(String pubId) throws WebSitesException
WebSitesException
public void deletePublication(String pubId) throws WebSitesException
WebSitesException
public Collection<com.stratelia.webactiv.util.node.model.NodePK> getAllFatherPK(String pubId) throws WebSitesException
WebSitesException
public void addPublicationToFolder(String pubId, String folderId) throws WebSitesException
WebSitesException
public void removePublicationToFolder(String pubId, String folderId) throws WebSitesException
WebSitesException
public String getIdPublication(String siteId) throws WebSitesException
siteId
-
WebSitesException
public void changePubsOrder(String pubId, int direction) throws RemoteException
pubId
- direction
-
RemoteException
public void setSiteName(String siteName)
public String getSiteName()
public Collection<SiteDetail> getAllWebSite() throws WebSitesException
WebSitesException
public SiteDetail getWebSite(String id) throws WebSitesException
WebSitesException
public Collection<IconDetail> getIcons(String id) throws WebSitesException
WebSitesException
public String getNextId() throws WebSitesException
WebSitesException
public Collection<IconDetail> getAllIcons() throws WebSitesException
WebSitesException
public Collection<File> getAllSubFolder(String chemin) throws WebSitesException
WebSitesException
public Collection<File> getAllFile(String chemin) throws WebSitesException
WebSitesException
public Collection<File> getAllImages(String chemin) throws WebSitesException
WebSitesException
public Collection<File> getAllWebPages2(String chemin) throws WebSitesException
WebSitesException
public String createWebSite(SiteDetail description) throws WebSitesException
WebSitesException
public void associateIcons(String id, Collection<String> listeIcones) throws WebSitesException
WebSitesException
public void publish(Collection<String> listeSite) throws WebSitesException
WebSitesException
public void dePublish(Collection<String> listeSite) throws WebSitesException
WebSitesException
public void createFolder(String chemin) throws WebSitesException
WebSitesException
public String getWebSitePathById(String id)
public void renameFolder(String cheminRep, String newCheminRep) throws WebSitesException
WebSitesException
public void delFolder(String chemin) throws WebSitesException
WebSitesException
public void createFile(String cheminFichier, String nomFichier, String contenuFichier) throws WebSitesException
WebSitesException
public void unzip(String cheminDirResultat, String cheminFichierZip) throws WebSitesException
WebSitesException
public void deleteWebSites(Collection<String> liste) throws WebSitesException
WebSitesException
public void updateWebSite(SiteDetail description) throws WebSitesException
description
-
WebSitesException
public void deleteDirectory(String chemin) throws WebSitesException
WebSitesException
public void renameFile(String rep, String name, String newName) throws WebSitesException
WebSitesException
public void deleteFile(String chemin) throws WebSitesException
WebSitesException
public String getCode(String cheminFichier, String nomFichier) throws WebSitesException
WebSitesException
public String verif(String action, String currentPath, String name, String newName, String nomPage) throws WebSitesException
action
- currentPath
- name
- newName
- nomPage
-
WebSitesException
public void index() throws RemoteException
RemoteException
public void notifyPublishers(String auteur, String nomSite, String description, String nomPage, String listeMessage, String date)
public int getSilverObjectId(String objectId)
public void close()
close
in class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
public void updateClassification(String idSite, ArrayList<String> arrayTopic) throws WebSitesException
idSite
- arrayTopic
-
WebSitesException
public void checkPath(String path) throws WebSitesException
WebSitesException
public int addFileIntoWebSite(String webSitePath, org.apache.commons.fileupload.FileItem fileItem) throws Exception
Exception
public int createWebSiteFromZipFile(SiteDetail descriptionSite, org.apache.commons.fileupload.FileItem fileItem) throws Exception
descriptionSite
- the site to create.fileItem
- the zip archive with the content of the site to create.
Exception
- if an unexpected error occurs when creating the web site.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |