com.stratelia.webactiv.kmelia.control
Class KmeliaSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.webactiv.kmelia.control.KmeliaSessionController
All Implemented Interfaces:
ExportFileNameProducer, com.stratelia.silverpeas.peasCore.ComponentSessionController

public class KmeliaSessionController
extends com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
implements ExportFileNameProducer


Field Summary
 boolean isKmaxMode
           
static String MASSIVE_IMPORT_MODE_MULTI_PUBLICATIONS
           
static String MASSIVE_IMPORT_MODE_ONE_PUBLICATION
           
static String TAB_ACCESS_PATHS
           
static String TAB_ATTACHMENTS
           
static String TAB_COMMENT
           
static String TAB_CONTENT
           
static String TAB_HEADER
           
static String TAB_PREVIEW
           
static String TAB_READER_LIST
           
static String TAB_SEE_ALSO
           
static String UNITARY_IMPORT_MODE
           
static String VER_USE_NONE
           
static String VER_USE_READERS
           
static String VER_USE_WRITERS
           
static String VER_USE_WRITERS_AND_READERS
           
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
KmeliaSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext context)
          Creates new sessionClientController
 
Method Summary
 com.stratelia.webactiv.util.node.model.NodePK addAxis(com.stratelia.webactiv.util.node.model.NodeDetail axis)
           
 String addDelegatedNews()
          Ajout d'une actualité déléguée dans le composant delegatednews
 void addInfoLinks(String pubId, List<com.silverpeas.util.ForeignPK> links)
          adds links between specified publication and other publications contained in links parameter
 com.stratelia.webactiv.util.node.model.NodePK addPosition(String fatherId, com.stratelia.webactiv.util.node.model.NodeDetail position)
           
 void addPublicationReminder(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail, List<org.apache.commons.fileupload.FileItem> parameters)
          Create the date reminder for the given publication
 int addPublicationsToLink(String pubId, HashSet<String> links)
          adds links between specified publication and other publications contained in links parameter
 void addPublicationToCombination(String pubId, List<String> combination)
           
 void addPublicationToTopic(String pubId, String fatherId)
           
 void addSubscription(String topicId)
           
 com.stratelia.webactiv.util.node.model.NodePK addSubTopic(com.stratelia.webactiv.util.node.model.NodeDetail nd, String alertType, String parentId)
           
 void addUploadedFilesToPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail, Collection<org.silverpeas.upload.UploadedFile> uploadedFiles)
          attach uploaded files to the specified publication
 boolean attachmentsInPubList()
           
 void changeTopicStatus(String newStatus, String topicId, boolean recursiveChanges)
           
 String clonePublication()
           
 String clonePublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)
           
 void copyPublication(String pubId)
           
 void copySelectedPublications()
           
 void copyTopic(String id)
           
 String createPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail, com.silverpeas.pdc.web.PdcClassificationEntity classification)
           
 void cutPublication(String pubId)
           
 void cutSelectedPublications()
           
 void cutTopic(String id)
           
 void deleteAxis(String axisId)
           
 void deleteClone()
           
 void deleteInfoLinks(String pubId, List<com.silverpeas.util.ForeignPK> links)
          removes links between specified publication and other publications contained in links parameter
 void deletePosition(String positionId)
           
 void deletePublication(String pubId)
           
 void deletePublication(String pubId, boolean kmaxMode)
           
 void deletePublicationFromAllTopics(String pubId)
           
 void deletePublicationFromCombination(String pubId, String combinationId)
           
 List<String> deleteSelectedPublications()
           
 String deleteTopic(String topicId)
           
 boolean displayNbPublis()
           
 String displayPath(Collection<com.stratelia.webactiv.util.node.model.NodeDetail> path, boolean linked, int beforeAfter)
           
 void draftInPublication()
          Change publication status from any state to draft
 void draftOutPublication()
           
 File exportPublication()
           
 void flushTrashCan()
           
 boolean forcePublicationValidation(String publicationId)
           
 File generateDocument(com.silverpeas.converter.DocumentFormat inFormat, String fromPubId)
          Generates a document in the specified format from the specified publication.
 List<com.stratelia.webactiv.util.publication.model.Alias> getAliases()
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getAliasTreeview()
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getAliasTreeview(String instanceId)
           
 List<com.silverpeas.comment.model.Comment> getAllComments(String id)
           
 com.stratelia.webactiv.util.node.model.NodePK getAllowedPublicationFather(String pubId)
           
 Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublications()
           
 Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublications(String sortedBy)
          Get all publications sorted
 Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublicationsByTopic(com.stratelia.webactiv.util.publication.model.PublicationPK pubPK, List<String> fatherIds)
           
 List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllPublicationsIds()
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getAllTopics()
           
 List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllVisiblePublications()
          Get all visible publications
 List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllVisiblePublicationsByTopic(String topicId)
           
 List<String> getAttachmentLanguages()
           
 String getAttachmentURL(String fileId)
          Return the url to access the file
 List<String> getAvailableFormats()
          Gets all available export formats.
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getAxis()
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getAxisHeaders()
           
 String getAxisIdGlossary()
          return the value of component parameter "axisIdGlossary".
 List<String> getCombination(String axisValuesStr)
          Get combination Axis (ie: /0/1037)
protected  com.silverpeas.comment.service.CommentService getCommentService()
          Gets a business service of comments.
 com.stratelia.webactiv.util.publication.model.CompletePublication getCompletePublication(String pubId)
           
 List<Treeview> getComponents(List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
           
 String getContentLanguage()
           
 List<String> getCurrentCombination()
           
 com.stratelia.webactiv.util.node.model.NodeDetail getCurrentFolder()
           
 String getCurrentFolderId()
           
 com.stratelia.webactiv.util.node.model.NodePK getCurrentFolderPK()
           
 String getCurrentLanguage()
           
 List<com.stratelia.webactiv.util.WAAttributeValuePair> getCurrentPublicationsList()
          Get session publications
 String getCustomPublicationTemplateName()
           
protected  org.silverpeas.dateReminder.persistent.service.PersistentDateReminderService getDateReminderService()
          Gets a business service of dateReminder.
 DelegatedNews getDelegatedNews(String pubId)
          Récupère une actualité déléguée dans le composant delegatednews correspondant à la publication passée en paramètre
 String getErrorMessageImportation(com.silverpeas.importExport.report.ImportReport importReport, String importMode)
           
 Fields getFieldUpdateChain()
           
 String getFirst()
           
 List<com.silverpeas.publicationTemplate.PublicationTemplate> getForms()
           
 com.stratelia.webactiv.SilverpeasRole getHighestSilverpeasUserRole()
           
 int getIndexOfFirstPubToDisplay()
           
 List<String> getInvisibleTabs()
           
 KmeliaPublication getKmaxCompletePublication(String pubId)
          **********************************************************************************
 KmeliaBm getKmeliaBm()
           
static List<String> getLanguagesOfAttachments(com.silverpeas.util.ForeignPK foreignPK)
           
 List<com.stratelia.webactiv.util.statistic.model.HistoryObjectDetail> getLastAccess(com.stratelia.webactiv.util.publication.model.PublicationPK pk)
           
 List<KmeliaPublication> getLatestPublications()
           
 List<KmeliaPublication> getLinkedVisiblePublications()
          Get publications explicitly referenced by current publication.
 List<com.stratelia.webactiv.util.publication.model.PublicationDetail> getListPublicationImported(com.silverpeas.importExport.report.ImportReport importReport, String importMode)
           
 Collection<String> getModelUsed()
           
 int getNbPublicationImported(com.silverpeas.importExport.report.ImportReport importReport)
           
 int getNbPublicationsOnRoot()
           
 int getNbPublicationsPerPage()
           
 int getNbPublis()
           
 String getNext()
          getNext
 com.stratelia.webactiv.util.node.control.NodeBm getNodeBm()
           
 com.stratelia.webactiv.util.node.model.NodeDetail getNodeHeader(String id)
           
 com.stratelia.silverpeas.notificationManager.NotificationManager getNotificationManager()
           
 Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getPath(String positionId)
           
 com.stratelia.silverpeas.pdc.control.PdcBm getPdcBm()
           
 String getPrevious()
          getPrevious
 String getProfile()
           
 com.stratelia.webactiv.beans.admin.ProfileInst getProfile(String role)
           
 KmeliaPublication getPublication(String pubId)
           
 KmeliaPublication getPublication(String pubId, boolean processIndex)
           
 com.silverpeas.accesscontrol.PublicationAccessController getPublicationAccessController()
           
 com.stratelia.webactiv.util.publication.control.PublicationBm getPublicationBm()
           
 Collection<com.stratelia.webactiv.util.coordinates.model.Coordinate> getPublicationCoordinates(String pubId)
           
 com.stratelia.webactiv.util.publication.model.PublicationDetail getPublicationDetail(String pubId)
           
 String getPublicationExportFileName(KmeliaPublication publication, String language)
          Gets the name of the file into which the specified publication can be exported, whatever the format of the export file.
 Collection<com.stratelia.webactiv.util.node.model.NodePK> getPublicationFathers(String pubId)
           
 List<String> getPublicationLanguages()
          get languages of publication header and attachments
 Collection<KmeliaPublication> getPublications(List<com.silverpeas.util.ForeignPK> links)
           
 com.stratelia.webactiv.util.ResourceLocator getPublicationSettings()
           
 List<KmeliaPublication> getPublicationsOfCurrentFolder()
           
 TopicDetail getPublicationTopic(String pubId)
           
 int getRang()
           
 String getRole()
           
 com.stratelia.webactiv.util.node.model.NodePK getRootPK()
           
 SearchContext getSearchContext()
           
 List<com.stratelia.webactiv.util.publication.model.PublicationPK> getSelectedPublicationPKs()
           
 String[] getSelectedUsers()
           
 KmeliaPublication getSessionClone()
           
 List<String> getSessionCombination()
           
 boolean getSessionOwner()
           
 String getSessionPath()
           
 String getSessionPathString()
           
 KmeliaPublication getSessionPublication()
           
 List<KmeliaPublication> getSessionPublicationsList()
           
 KmeliaPublication getSessionPubliOrClone()
           
 String getSessionTimeCriteria()
           
 TopicDetail getSessionTopic()
           
 TopicDetail getSessionTopicToLink()
           
 int getSilverObjectId(String objectId)
           
 String getSingleAttachmentURLOfCurrentPublication()
          Returns URL of single attached file for the current publication.
 String getSortValue()
           
 List<com.stratelia.webactiv.beans.admin.SpaceInst> getSpacePath()
           
 com.stratelia.webactiv.util.statistic.control.StatisticBm getStatisticBm()
           
 Collection<Collection<com.stratelia.webactiv.util.node.model.NodeDetail>> getSubscriptionList()
           
 com.stratelia.webactiv.util.node.model.NodeDetail getSubTopicDetail(String subTopicId)
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getSubTopics(String rootId)
           
 List<String> getSupportedFormats()
          Gets the export formats that are supported by the current Kmelia component instance.
 com.silverpeas.thumbnail.ThumbnailSettings getThumbnailSettings()
           
 List<Integer> getTimeAxisKeys()
           
 TopicDetail getTopic(String id)
           
 TopicDetail getTopic(String id, boolean resetSessionPublication)
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getTopicPath(String topicId)
           
 com.stratelia.webactiv.beans.admin.ProfileInst getTopicProfile(String role)
           
 com.stratelia.webactiv.beans.admin.ProfileInst getTopicProfile(String role, String topicId)
           
 List<com.stratelia.webactiv.beans.admin.ProfileInst> getTopicProfiles()
           
 List<com.stratelia.webactiv.beans.admin.ProfileInst> getTopicProfiles(String topicId)
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getTreeview(String nodeId)
           
 List<KmeliaPublication> getUnbalancedPublications()
           
 List<com.stratelia.webactiv.util.node.model.NodeDetail> getUpdateChainTopics()
           
 List<String> getUserIdsOfTopic()
           
 String getUserTopicProfile()
           
 String getUserTopicProfile(String id)
           
 com.stratelia.webactiv.util.publication.model.ValidationStep getValidationStep()
           
 List<com.stratelia.webactiv.util.publication.model.ValidationStep> getValidationSteps()
           
 int getValidationType()
           
 String getVersionningFileRightsMode()
           
 String getWizard()
           
 String getWizardLast()
           
 String getWizardRow()
           
 String getWysiwygOnTopic()
           
 String getWysiwygOnTopic(String id)
           
 String getXmlFormForFiles()
           
 List<com.stratelia.webactiv.beans.admin.Group> groupIds2Groups(List<String> groupIds)
           
 com.silverpeas.importExport.report.ImportReport importFile(File fileUploaded, String fileType, String importMode, boolean draftMode, int versionType)
           
 void indexKmax(String componentId)
           
 void indexKmelia()
           
 String initAlertUser()
           
 String initAlertUserAttachment(String attachmentOrDocumentId)
           
 void initUpdateChainDescriptor()
           
 void initUpdateChainTopicChoice(String pubId)
           
 String initUPToSelectValidator(String formElementName, String formElementId)
           
 String initUserPanelForTopicProfile(String role, String nodeId, String[] groupIds, String[] userIds)
           
 boolean isAttachmentsEnabled()
           
 boolean isAuthorUsed()
           
 boolean isClassifiedOnThePdC(com.stratelia.webactiv.util.publication.model.PublicationDetail publication)
          Is the specified publication classified on the PdC.
 boolean isClipboardContainsSomeCopiedItems()
           
 boolean isCloneNeeded()
           
 boolean isCloneNeededWithDraft()
           
 boolean isCollegiateValidationEnable()
           
 boolean isComponentManageable()
           
 boolean isContentEnabled()
           
 boolean isCoWritingEnable()
           
 boolean isCurrentPublicationHaveContent()
           
 boolean isCurrentTopicAvailable()
           
 boolean isCustomPublicationTemplateUsed()
           
 boolean isDefaultClassificationModifiable(String topicId, String componentId)
          Is the default classification on the PdC used to classify the publications published in the specified topic of the specified component instance can be modified during the multi-publications import process?
 boolean isDraftEnabled()
           
 boolean isDraftVisibleWithCoWriting()
           
 boolean isDragAndDropEnable()
           
 boolean isExportAllowedToUsers()
           
 boolean isExportComponentAllowed()
           
 boolean isExportPdfAllowed()
           
 boolean isExportZipAllowed()
           
 boolean isFieldDescriptionMandatory()
           
 boolean isFieldDescriptionVisible()
          Parameter for fields visibility of the publication
 boolean isFieldImportanceVisible()
           
 boolean isFieldKeywordsVisible()
           
 boolean isFieldVersionVisible()
           
 boolean isFolderSharingEnabled()
           
 boolean isFoldersLinkedEnabled()
           
 boolean isFormatSupported(String format)
          Is the specified export format is supported by the Kmelia component instance?
 boolean isImportFileAllowed()
           
 boolean isImportFilesAllowed()
           
 boolean isIndexable(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)
           
 boolean isLastVisitorsEnabled()
           
 boolean isMassiveDragAndDropAllowed()
           
 boolean isNewsManage()
          Is news manage
 boolean isNotificationAllowed()
           
 boolean isOrientedWebContent()
           
 boolean isPDCClassifyingMandatory()
           
 boolean isPdcUsed()
           
 boolean isPublicationAlwaysVisibleEnabled()
           
 boolean isPublicationDeleted(com.stratelia.webactiv.util.publication.model.PublicationPK pk)
          Return if publication is in the basket
 boolean isPublicationIdDisplayed()
           
 boolean isPublicationRatingAllowed()
           
 boolean isPublicationSharingEnabled()
           
 boolean isPublicationTaxonomyOK()
          Si le mode brouillon est activé et que le classement PDC est possible alors une publication ne peut sortir du mode brouillon que si elle est classée sur le PDC
 boolean isPublicationValidatorsOK()
           
 boolean isReminderUsed()
           
 boolean isRightsOnTopicsEnabled()
           
 boolean isSearchOnTopicsEnabled()
          Is search in topics enabled
 boolean isSeeAlsoEnabled()
           
 boolean isSortedTopicsEnabled()
           
 boolean isSuppressionOnlyForAdmin()
           
 boolean isTargetMultiValidationEnable()
           
 boolean isTargetValidationEnable()
           
 boolean isTimeAxisUsed()
          Parameter for time Axis visibility
 boolean isTopicAdmin(String nodeId)
          Check user access right on folder
 boolean isTopicHaveUpdateChainDescriptor()
           
 boolean isTopicHaveUpdateChainDescriptor(String id)
           
 boolean isTopicManagementDelegated()
           
 boolean isTreeStructure()
           
 boolean isTreeviewUsed()
           
 boolean isUserCanValidate()
           
 boolean isUserCanValidatePublication()
           
 boolean isUserCanWrite()
           
 boolean isUserComponentAdmin()
           
 boolean isValidationTabVisible()
           
 boolean isVersionControlled()
           
 boolean isVersionControlled(String anotherComponentId)
           
 boolean isWizardEnabled()
           
 boolean isWriterApproval(String pubId)
           
 boolean isWysiwygOnTopicsEnabled()
           
 String manageSubscriptions()
           
 boolean openSingleAttachmentAutomatically()
           
 void orderPublications(List<String> sortedPubIds)
           
 void orderPubs()
           
 void orderPubsToValidate(String sortType)
           
 List<Object> paste(KmeliaPasteDetail pasteDetail)
           
 List<com.stratelia.webactiv.util.publication.model.PublicationPK> processSelectedPublicationIds(String selectedPublicationIds, String notSelectedPublicationIds)
           
 void processTopicWysiwyg(String topicId)
           
 void refreshSessionPubliAndClone()
           
 void removePublicationContent()
           
 void removeSessionObjects()
           
 void removeSubscription(String topicId)
           
 void resetSelectedPublicationPKs()
           
 List<KmeliaPublication> search(List<String> combination)
           
 List<KmeliaPublication> search(List<String> combination, int nbDays)
           
 List<KmeliaPublication> search(String query)
          Get publications and aliases of this topic and its subtopics answering to the query
 void setAliases(List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
           
 void setAliases(com.stratelia.webactiv.util.publication.model.PublicationPK pubPK, List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
           
 void setCurrentCombination(List<String> combination)
           
 void setCurrentFolderId(String id, boolean resetSessionPublication)
           
 void setCurrentLanguage(String currentLanguage)
           
 void setFieldUpdateChain(Fields fields)
           
 void setIndexOfFirstPubToDisplay(String index)
           
 void setModelUsed(String[] models)
           
 void setPublicationValidator(String userIds)
           
 void setSessionClone(KmeliaPublication clone)
           
 void setSessionCombination(List<String> combination)
           
 void setSessionOwner(boolean owner)
           
 void setSessionPath(String path)
           
 void setSessionPathString(String path)
           
 void setSessionPublication(KmeliaPublication pubDetail)
           
 void setSessionPublicationsList(List<KmeliaPublication> publications)
           
 void setSessionTimeCriteria(String timeCriteria)
           
 void setSessionTopic(TopicDetail topicDetail)
           
 void setSessionTopicToLink(TopicDetail topicDetail)
           
 void setSortValue(String sort)
           
 void setWizard(String wizard)
           
 void setWizardLast(String wizardLast)
           
 void setWizardRow(String wizardRow)
           
 boolean showUserNameInList()
           
 void suspendPublication(String publicationId, String defermentMotive)
           
 void toRecoverUserId()
           
 void unvalidatePublication(String publicationId, String refusalMotive)
           
 void updateAxis(com.stratelia.webactiv.util.node.model.NodeDetail axis)
           
 void updatePosition(com.stratelia.webactiv.util.node.model.NodeDetail position)
           
 void updatePublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)
           
 void updatePublicationReminder(String pubId, List<org.apache.commons.fileupload.FileItem> parameters)
          Save Or remove the date reminder for the given publication
 com.stratelia.webactiv.util.node.model.NodePK updateTopicHeader(com.stratelia.webactiv.util.node.model.NodeDetail nd, String alertType)
           
 void updateTopicRole(String role, String nodeId, String[] groupIds, String[] userIds)
           
 List<com.stratelia.webactiv.beans.admin.UserDetail> userIds2Users(List<String> userIds)
           
 boolean useUpdateChain()
           
 boolean validatePublication(String publicationId)
           
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, 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

TAB_PREVIEW

public static final String TAB_PREVIEW
See Also:
Constant Field Values

TAB_HEADER

public static final String TAB_HEADER
See Also:
Constant Field Values

TAB_CONTENT

public static final String TAB_CONTENT
See Also:
Constant Field Values

TAB_COMMENT

public static final String TAB_COMMENT
See Also:
Constant Field Values

TAB_ATTACHMENTS

public static final String TAB_ATTACHMENTS
See Also:
Constant Field Values

TAB_SEE_ALSO

public static final String TAB_SEE_ALSO
See Also:
Constant Field Values

TAB_ACCESS_PATHS

public static final String TAB_ACCESS_PATHS
See Also:
Constant Field Values

TAB_READER_LIST

public static final String TAB_READER_LIST
See Also:
Constant Field Values

UNITARY_IMPORT_MODE

public static final String UNITARY_IMPORT_MODE
See Also:
Constant Field Values

MASSIVE_IMPORT_MODE_ONE_PUBLICATION

public static final String MASSIVE_IMPORT_MODE_ONE_PUBLICATION
See Also:
Constant Field Values

MASSIVE_IMPORT_MODE_MULTI_PUBLICATIONS

public static final String MASSIVE_IMPORT_MODE_MULTI_PUBLICATIONS
See Also:
Constant Field Values

VER_USE_WRITERS_AND_READERS

public static final String VER_USE_WRITERS_AND_READERS
See Also:
Constant Field Values

VER_USE_WRITERS

public static final String VER_USE_WRITERS
See Also:
Constant Field Values

VER_USE_READERS

public static final String VER_USE_READERS
See Also:
Constant Field Values

VER_USE_NONE

public static final String VER_USE_NONE
See Also:
Constant Field Values

isKmaxMode

public boolean isKmaxMode
Constructor Detail

KmeliaSessionController

public KmeliaSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                               com.stratelia.silverpeas.peasCore.ComponentContext context)
Creates new sessionClientController

Parameters:
mainSessionCtrl -
context -
Method Detail

getLanguagesOfAttachments

public static List<String> getLanguagesOfAttachments(com.silverpeas.util.ForeignPK foreignPK)

getCommentService

protected com.silverpeas.comment.service.CommentService getCommentService()
Gets a business service of comments.

Returns:
a DefaultCommentService instance.

getDateReminderService

protected org.silverpeas.dateReminder.persistent.service.PersistentDateReminderService getDateReminderService()
Gets a business service of dateReminder.

Returns:
a DefaultDateReminderService instance.

getKmeliaBm

public KmeliaBm getKmeliaBm()

getStatisticBm

public com.stratelia.webactiv.util.statistic.control.StatisticBm getStatisticBm()

getPublicationSettings

public com.stratelia.webactiv.util.ResourceLocator getPublicationSettings()

getNbPublicationsOnRoot

public int getNbPublicationsOnRoot()

getNbPublicationsPerPage

public int getNbPublicationsPerPage()

isDraftVisibleWithCoWriting

public boolean isDraftVisibleWithCoWriting()

isTreeStructure

public boolean isTreeStructure()

isTreeviewUsed

public boolean isTreeviewUsed()

isPdcUsed

public boolean isPdcUsed()

isDraftEnabled

public boolean isDraftEnabled()

isOrientedWebContent

public boolean isOrientedWebContent()

isSortedTopicsEnabled

public boolean isSortedTopicsEnabled()

isTopicManagementDelegated

public boolean isTopicManagementDelegated()

isAuthorUsed

public boolean isAuthorUsed()

isReminderUsed

public boolean isReminderUsed()

openSingleAttachmentAutomatically

public boolean openSingleAttachmentAutomatically()

isImportFileAllowed

public boolean isImportFileAllowed()

isImportFilesAllowed

public boolean isImportFilesAllowed()

isExportZipAllowed

public boolean isExportZipAllowed()

isExportPdfAllowed

public boolean isExportPdfAllowed()

isExportComponentAllowed

public boolean isExportComponentAllowed()

isExportAllowedToUsers

public boolean isExportAllowedToUsers()

isMassiveDragAndDropAllowed

public boolean isMassiveDragAndDropAllowed()

isPublicationAlwaysVisibleEnabled

public boolean isPublicationAlwaysVisibleEnabled()

isWizardEnabled

public boolean isWizardEnabled()

displayNbPublis

public boolean displayNbPublis()

isRightsOnTopicsEnabled

public boolean isRightsOnTopicsEnabled()

isFoldersLinkedEnabled

public boolean isFoldersLinkedEnabled()

attachmentsInPubList

public boolean attachmentsInPubList()

isPublicationIdDisplayed

public boolean isPublicationIdDisplayed()

isSuppressionOnlyForAdmin

public boolean isSuppressionOnlyForAdmin()

isFolderSharingEnabled

public boolean isFolderSharingEnabled()

isPublicationSharingEnabled

public boolean isPublicationSharingEnabled()

isContentEnabled

public boolean isContentEnabled()

isSeeAlsoEnabled

public boolean isSeeAlsoEnabled()

isPublicationRatingAllowed

public boolean isPublicationRatingAllowed()

showUserNameInList

public boolean showUserNameInList()

getVersionningFileRightsMode

public String getVersionningFileRightsMode()
Returns:

isLastVisitorsEnabled

public boolean isLastVisitorsEnabled()

getInvisibleTabs

public List<String> getInvisibleTabs()
                              throws RemoteException
Throws:
RemoteException

generateDocument

public File generateDocument(com.silverpeas.converter.DocumentFormat inFormat,
                             String fromPubId)
Generates a document in the specified format from the specified publication.

Parameters:
inFormat - the format of the document to generate.
fromPubId - the unique identifier of the publication from which the document will be generated.
Returns:
the generated document as a File instance.

getHighestSilverpeasUserRole

public com.stratelia.webactiv.SilverpeasRole getHighestSilverpeasUserRole()
Specified by:
getHighestSilverpeasUserRole in interface com.stratelia.silverpeas.peasCore.ComponentSessionController
Overrides:
getHighestSilverpeasUserRole in class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController

getProfile

public String getProfile()

getUserTopicProfile

public String getUserTopicProfile()

getUserTopicProfile

public String getUserTopicProfile(String id)

getUserIdsOfTopic

public List<String> getUserIdsOfTopic()
                               throws RemoteException
Throws:
RemoteException

isCurrentTopicAvailable

public boolean isCurrentTopicAvailable()
                                throws RemoteException
Throws:
RemoteException

isUserComponentAdmin

public boolean isUserComponentAdmin()

getRootPK

public com.stratelia.webactiv.util.node.model.NodePK getRootPK()

getTopic

public TopicDetail getTopic(String id)
                     throws RemoteException
Throws:
RemoteException

getTopic

public TopicDetail getTopic(String id,
                            boolean resetSessionPublication)
                     throws RemoteException
Throws:
RemoteException

getTreeview

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getTreeview(String nodeId)
                                                                    throws RemoteException
Throws:
RemoteException

getPublicationTopic

public TopicDetail getPublicationTopic(String pubId)
                                throws RemoteException
Throws:
RemoteException

getAllTopics

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getAllTopics()
                                                                     throws RemoteException
Throws:
RemoteException

flushTrashCan

public void flushTrashCan()
                   throws RemoteException
Throws:
RemoteException

updateTopicHeader

public com.stratelia.webactiv.util.node.model.NodePK updateTopicHeader(com.stratelia.webactiv.util.node.model.NodeDetail nd,
                                                                       String alertType)
                                                                throws RemoteException
Throws:
RemoteException

getSubTopicDetail

public com.stratelia.webactiv.util.node.model.NodeDetail getSubTopicDetail(String subTopicId)
                                                                    throws RemoteException
Throws:
RemoteException

addSubTopic

public com.stratelia.webactiv.util.node.model.NodePK addSubTopic(com.stratelia.webactiv.util.node.model.NodeDetail nd,
                                                                 String alertType,
                                                                 String parentId)
                                                          throws RemoteException
Throws:
RemoteException

deleteTopic

public String deleteTopic(String topicId)
                   throws RemoteException
Throws:
RemoteException

changeTopicStatus

public void changeTopicStatus(String newStatus,
                              String topicId,
                              boolean recursiveChanges)
                       throws RemoteException
Throws:
RemoteException

getSubscriptionList

public Collection<Collection<com.stratelia.webactiv.util.node.model.NodeDetail>> getSubscriptionList()
                                                                                              throws RemoteException
Returns:
@throws RemoteException
Throws:
RemoteException

removeSubscription

public void removeSubscription(String topicId)
                        throws RemoteException
Throws:
RemoteException

addSubscription

public void addSubscription(String topicId)
                     throws RemoteException
Throws:
RemoteException

getPublicationDetail

public com.stratelia.webactiv.util.publication.model.PublicationDetail getPublicationDetail(String pubId)
                                                                                     throws RemoteException
Parameters:
pubId -
Returns:
Throws:
RemoteException

getPublicationFathers

public Collection<com.stratelia.webactiv.util.node.model.NodePK> getPublicationFathers(String pubId)
                                                                                throws RemoteException
Throws:
RemoteException

getAllowedPublicationFather

public com.stratelia.webactiv.util.node.model.NodePK getAllowedPublicationFather(String pubId)
                                                                          throws RemoteException
Throws:
RemoteException

createPublication

public String createPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
                                com.silverpeas.pdc.web.PdcClassificationEntity classification)
                         throws RemoteException
Throws:
RemoteException

addUploadedFilesToPublication

public void addUploadedFilesToPublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
                                          Collection<org.silverpeas.upload.UploadedFile> uploadedFiles)
                                   throws RemoteException
attach uploaded files to the specified publication

Parameters:
pubDetail - publication on which you want to attach files
uploadedFiles - list of uploaded files
Throws:
RemoteException

updatePublication

public void updatePublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)
                       throws RemoteException
Throws:
RemoteException

isCloneNeeded

public boolean isCloneNeeded()
                      throws RemoteException
Throws:
RemoteException

isCloneNeededWithDraft

public boolean isCloneNeededWithDraft()

clonePublication

public String clonePublication()

clonePublication

public String clonePublication(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)

deletePublication

public void deletePublication(String pubId)
                       throws RemoteException
Throws:
RemoteException

deletePublication

public void deletePublication(String pubId,
                              boolean kmaxMode)
                       throws RemoteException
Throws:
RemoteException

deleteSelectedPublications

public List<String> deleteSelectedPublications()
                                        throws RemoteException
Throws:
RemoteException

deleteClone

public void deleteClone()
                 throws RemoteException
Throws:
RemoteException

addPublicationToTopic

public void addPublicationToTopic(String pubId,
                                  String fatherId)
                           throws RemoteException
Throws:
RemoteException

deletePublicationFromAllTopics

public void deletePublicationFromAllTopics(String pubId)
                                    throws RemoteException
Throws:
RemoteException

refreshSessionPubliAndClone

public void refreshSessionPubliAndClone()
                                 throws RemoteException
Throws:
RemoteException

deleteInfoLinks

public void deleteInfoLinks(String pubId,
                            List<com.silverpeas.util.ForeignPK> links)
                     throws RemoteException
removes links between specified publication and other publications contained in links parameter

Parameters:
pubId - publication which you want removes the external link
links - list of links to remove
Throws:
RemoteException

addInfoLinks

public void addInfoLinks(String pubId,
                         List<com.silverpeas.util.ForeignPK> links)
                  throws RemoteException
adds links between specified publication and other publications contained in links parameter

Parameters:
pubId - publication which you want removes the external link
links - list of links to remove
Throws:
RemoteException

getLinkedVisiblePublications

public List<KmeliaPublication> getLinkedVisiblePublications()
                                                     throws RemoteException
Get publications explicitly referenced by current publication. Only valid publications which are not in bin are returned. Rights of user are checked (applications and folders).

Returns:
a List of KmeliaPublication
Throws:
RemoteException
See Also:
KmeliaPublication

getPublication

public KmeliaPublication getPublication(String pubId)
                                 throws RemoteException
Throws:
RemoteException

getPublication

public KmeliaPublication getPublication(String pubId,
                                        boolean processIndex)

getNbPublis

public int getNbPublis()

getCompletePublication

public com.stratelia.webactiv.util.publication.model.CompletePublication getCompletePublication(String pubId)
                                                                                         throws RemoteException
Throws:
RemoteException

orderPubs

public void orderPubs()

orderPubsToValidate

public void orderPubsToValidate(String sortType)
                         throws RemoteException
Throws:
RemoteException

orderPublications

public void orderPublications(List<String> sortedPubIds)
                       throws RemoteException
Throws:
RemoteException

getAllPublications

public Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublications()
                                                                                               throws RemoteException
Throws:
RemoteException

getAllPublications

public Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublications(String sortedBy)
                                                                                               throws RemoteException
Get all publications sorted

Parameters:
sortedBy - (example: pubName asc)
Returns:
Collection of Publications
Throws:
RemoteException

getAllPublicationsByTopic

public Collection<com.stratelia.webactiv.util.publication.model.PublicationDetail> getAllPublicationsByTopic(com.stratelia.webactiv.util.publication.model.PublicationPK pubPK,
                                                                                                             List<String> fatherIds)
                                                                                                      throws RemoteException
Throws:
RemoteException

getAllVisiblePublications

public List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllVisiblePublications()
                                                                                 throws RemoteException
Get all visible publications

Returns:
List of WAAtributeValuePair (Id and InstanceId)
Throws:
RemoteException

getAllVisiblePublicationsByTopic

public List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllVisiblePublicationsByTopic(String topicId)
                                                                                        throws RemoteException
Throws:
RemoteException

getAllPublicationsIds

public List<com.stratelia.webactiv.util.WAAttributeValuePair> getAllPublicationsIds()
                                                                             throws RemoteException
Throws:
RemoteException

getIndexOfFirstPubToDisplay

public int getIndexOfFirstPubToDisplay()

setIndexOfFirstPubToDisplay

public void setIndexOfFirstPubToDisplay(String index)

getAllComments

public List<com.silverpeas.comment.model.Comment> getAllComments(String id)
                                                          throws RemoteException
Throws:
RemoteException

processTopicWysiwyg

public void processTopicWysiwyg(String topicId)
                         throws RemoteException
Throws:
RemoteException

isPublicationTaxonomyOK

public boolean isPublicationTaxonomyOK()
Si le mode brouillon est activé et que le classement PDC est possible alors une publication ne peut sortir du mode brouillon que si elle est classée sur le PDC

Returns:
true si le PDC n'est pas utilisé ou si aucun axe n'est utilisé par le composant ou si la publication est classée sur le PDC
Throws:
RemoteException

isPublicationValidatorsOK

public boolean isPublicationValidatorsOK()
                                  throws RemoteException
Throws:
RemoteException

getPublications

public Collection<KmeliaPublication> getPublications(List<com.silverpeas.util.ForeignPK> links)
                                              throws RemoteException
Parameters:
links -
Returns:
Throws:
RemoteException

validatePublication

public boolean validatePublication(String publicationId)
                            throws RemoteException
Throws:
RemoteException

forcePublicationValidation

public boolean forcePublicationValidation(String publicationId)
                                   throws RemoteException
Throws:
RemoteException

unvalidatePublication

public void unvalidatePublication(String publicationId,
                                  String refusalMotive)
                           throws RemoteException
Throws:
RemoteException

suspendPublication

public void suspendPublication(String publicationId,
                               String defermentMotive)
                        throws RemoteException
Throws:
RemoteException

getValidationSteps

public List<com.stratelia.webactiv.util.publication.model.ValidationStep> getValidationSteps()
                                                                                      throws RemoteException
Throws:
RemoteException

isUserCanValidatePublication

public boolean isUserCanValidatePublication()
                                     throws RemoteException
Throws:
RemoteException

getValidationStep

public com.stratelia.webactiv.util.publication.model.ValidationStep getValidationStep()
                                                                               throws RemoteException
Throws:
RemoteException

draftOutPublication

public void draftOutPublication()
                         throws RemoteException
Throws:
RemoteException

draftInPublication

public void draftInPublication()
                        throws RemoteException
Change publication status from any state to draft

Throws:
RemoteException
Since:
3.0

indexKmelia

public void indexKmelia()
                 throws RemoteException
Throws:
RemoteException

isIndexable

public boolean isIndexable(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail)

addPublicationsToLink

public int addPublicationsToLink(String pubId,
                                 HashSet<String> links)
                          throws RemoteException
adds links between specified publication and other publications contained in links parameter

Parameters:
pubId - publication which you want removes the external link
links - list of links to remove
Returns:
the number of links created
Throws:
RemoteException

setSessionTopic

public void setSessionTopic(TopicDetail topicDetail)
Parameters:
topicDetail -

setSessionTopicToLink

public void setSessionTopicToLink(TopicDetail topicDetail)

setSessionPublication

public void setSessionPublication(KmeliaPublication pubDetail)

setSessionClone

public void setSessionClone(KmeliaPublication clone)

setSessionPath

public void setSessionPath(String path)

setSessionPathString

public void setSessionPathString(String path)

setSessionOwner

public void setSessionOwner(boolean owner)

setSessionPublicationsList

public void setSessionPublicationsList(List<KmeliaPublication> publications)

setSessionCombination

public void setSessionCombination(List<String> combination)

setSessionTimeCriteria

public void setSessionTimeCriteria(String timeCriteria)

getSortValue

public String getSortValue()

setSortValue

public void setSortValue(String sort)
                  throws RemoteException
Throws:
RemoteException

getSessionTopic

public TopicDetail getSessionTopic()

getCurrentFolderId

public String getCurrentFolderId()

getCurrentFolderPK

public com.stratelia.webactiv.util.node.model.NodePK getCurrentFolderPK()

getCurrentFolder

public com.stratelia.webactiv.util.node.model.NodeDetail getCurrentFolder()

setCurrentFolderId

public void setCurrentFolderId(String id,
                               boolean resetSessionPublication)

getSessionTopicToLink

public TopicDetail getSessionTopicToLink()

getSessionPublication

public KmeliaPublication getSessionPublication()

getSessionClone

public KmeliaPublication getSessionClone()

getSessionPubliOrClone

public KmeliaPublication getSessionPubliOrClone()

getSessionPath

public String getSessionPath()

getSessionPathString

public String getSessionPathString()

getSessionOwner

public boolean getSessionOwner()

getSessionPublicationsList

public List<KmeliaPublication> getSessionPublicationsList()

getSessionCombination

public List<String> getSessionCombination()

getSessionTimeCriteria

public String getSessionTimeCriteria()

removeSessionObjects

public void removeSessionObjects()

initUPToSelectValidator

public String initUPToSelectValidator(String formElementName,
                                      String formElementId)

initAlertUser

public String initAlertUser()
                     throws RemoteException
Throws:
RemoteException

initAlertUserAttachment

public String initAlertUserAttachment(String attachmentOrDocumentId)
                               throws RemoteException
Throws:
RemoteException

toRecoverUserId

public void toRecoverUserId()

isVersionControlled

public boolean isVersionControlled()

isVersionControlled

public boolean isVersionControlled(String anotherComponentId)

isWriterApproval

public boolean isWriterApproval(String pubId)
                         throws RemoteException
Parameters:
pubId -
Returns:
Throws:
RemoteException

isTargetValidationEnable

public boolean isTargetValidationEnable()

isTargetMultiValidationEnable

public boolean isTargetMultiValidationEnable()

isCollegiateValidationEnable

public boolean isCollegiateValidationEnable()

isValidationTabVisible

public boolean isValidationTabVisible()

getValidationType

public int getValidationType()

isCoWritingEnable

public boolean isCoWritingEnable()

getSelectedUsers

public String[] getSelectedUsers()

getSilverObjectId

public int getSilverObjectId(String objectId)

isCurrentPublicationHaveContent

public boolean isCurrentPublicationHaveContent()
                                        throws org.silverpeas.wysiwyg.WysiwygException
Throws:
org.silverpeas.wysiwyg.WysiwygException

isPDCClassifyingMandatory

public boolean isPDCClassifyingMandatory()

getPdcBm

public com.stratelia.silverpeas.pdc.control.PdcBm getPdcBm()
Returns:

getNodeBm

public com.stratelia.webactiv.util.node.control.NodeBm getNodeBm()

getPublicationBm

public com.stratelia.webactiv.util.publication.control.PublicationBm getPublicationBm()

getNotificationManager

public com.stratelia.silverpeas.notificationManager.NotificationManager getNotificationManager()
Returns:

importFile

public com.silverpeas.importExport.report.ImportReport importFile(File fileUploaded,
                                                                  String fileType,
                                                                  String importMode,
                                                                  boolean draftMode,
                                                                  int versionType)
                                                           throws com.silverpeas.importExport.model.ImportExportException
Parameters:
fileUploaded - : File uploaded in temp directory
fileType -
importMode -
draftMode -
versionType -
Returns:
a report of the import
Throws:
com.silverpeas.importExport.model.ImportExportException

isPublicationDeleted

public boolean isPublicationDeleted(com.stratelia.webactiv.util.publication.model.PublicationPK pk)
Return if publication is in the basket

Parameters:
pk -
Returns:
true or false

setModelUsed

public void setModelUsed(String[] models)

getModelUsed

public Collection<String> getModelUsed()

getWizard

public String getWizard()

setWizard

public void setWizard(String wizard)

getWizardRow

public String getWizardRow()

setWizardRow

public void setWizardRow(String wizardRow)

getWizardLast

public String getWizardLast()

setWizardLast

public void setWizardLast(String wizardLast)

isTimeAxisUsed

public boolean isTimeAxisUsed()
Parameter for time Axis visibility

Returns:

isFieldDescriptionVisible

public boolean isFieldDescriptionVisible()
Parameter for fields visibility of the publication

Returns:

isFieldDescriptionMandatory

public boolean isFieldDescriptionMandatory()

isFieldKeywordsVisible

public boolean isFieldKeywordsVisible()

isFieldImportanceVisible

public boolean isFieldImportanceVisible()

isFieldVersionVisible

public boolean isFieldVersionVisible()

getTimeAxisKeys

public List<Integer> getTimeAxisKeys()

getAxis

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getAxis()
                                                                throws RemoteException
Throws:
RemoteException

getAxisHeaders

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getAxisHeaders()
                                                                       throws RemoteException
Throws:
RemoteException

addAxis

public com.stratelia.webactiv.util.node.model.NodePK addAxis(com.stratelia.webactiv.util.node.model.NodeDetail axis)
                                                      throws RemoteException
Throws:
RemoteException

getNodeHeader

public com.stratelia.webactiv.util.node.model.NodeDetail getNodeHeader(String id)

updateAxis

public void updateAxis(com.stratelia.webactiv.util.node.model.NodeDetail axis)
                throws RemoteException
Throws:
RemoteException

deleteAxis

public void deleteAxis(String axisId)
                throws RemoteException
Throws:
RemoteException

search

public List<KmeliaPublication> search(List<String> combination)
                               throws RemoteException
Throws:
RemoteException

search

public List<KmeliaPublication> search(List<String> combination,
                                      int nbDays)
                               throws RemoteException
Throws:
RemoteException

getUnbalancedPublications

public List<KmeliaPublication> getUnbalancedPublications()
                                                  throws RemoteException
Throws:
RemoteException

addPosition

public com.stratelia.webactiv.util.node.model.NodePK addPosition(String fatherId,
                                                                 com.stratelia.webactiv.util.node.model.NodeDetail position)
                                                          throws RemoteException
Throws:
RemoteException

updatePosition

public void updatePosition(com.stratelia.webactiv.util.node.model.NodeDetail position)
                    throws RemoteException
Throws:
RemoteException

deletePosition

public void deletePosition(String positionId)
                    throws RemoteException
Throws:
RemoteException

indexKmax

public void indexKmax(String componentId)
               throws RemoteException
Throws:
RemoteException

getKmaxCompletePublication

public KmeliaPublication getKmaxCompletePublication(String pubId)
                                             throws RemoteException
**********************************************************************************

Throws:
RemoteException

getPublicationCoordinates

public Collection<com.stratelia.webactiv.util.coordinates.model.Coordinate> getPublicationCoordinates(String pubId)
                                                                                               throws RemoteException
Throws:
RemoteException

addPublicationToCombination

public void addPublicationToCombination(String pubId,
                                        List<String> combination)
                                 throws RemoteException
Throws:
RemoteException

deletePublicationFromCombination

public void deletePublicationFromCombination(String pubId,
                                             String combinationId)
                                      throws RemoteException
Throws:
RemoteException

getCurrentPublicationsList

public List<com.stratelia.webactiv.util.WAAttributeValuePair> getCurrentPublicationsList()
                                                                                  throws RemoteException
Get session publications

Returns:
List of WAAtributeValuePair (Id and InstanceId)
Throws:
RemoteException

getPath

public Collection<com.stratelia.webactiv.util.node.model.NodeDetail> getPath(String positionId)
                                                                      throws RemoteException
Throws:
RemoteException

setCurrentCombination

public void setCurrentCombination(List<String> combination)

getCurrentCombination

public List<String> getCurrentCombination()

getCombination

public List<String> getCombination(String axisValuesStr)
Get combination Axis (ie: /0/1037)

Parameters:
axisValuesStr -
Returns:
Collection of combination

getFirst

public String getFirst()

getPrevious

public String getPrevious()
getPrevious

Returns:
previous publication id

getNext

public String getNext()
getNext

Returns:
next publication id

getRang

public int getRang()

isDragAndDropEnable

public boolean isDragAndDropEnable()
                            throws RemoteException
Throws:
RemoteException

getCurrentLanguage

public String getCurrentLanguage()

setCurrentLanguage

public void setCurrentLanguage(String currentLanguage)

initUserPanelForTopicProfile

public String initUserPanelForTopicProfile(String role,
                                           String nodeId,
                                           String[] groupIds,
                                           String[] userIds)
                                    throws RemoteException
Throws:
RemoteException

updateTopicRole

public void updateTopicRole(String role,
                            String nodeId,
                            String[] groupIds,
                            String[] userIds)
                     throws RemoteException
Throws:
RemoteException

getTopicProfile

public com.stratelia.webactiv.beans.admin.ProfileInst getTopicProfile(String role,
                                                                      String topicId)

getTopicProfile

public com.stratelia.webactiv.beans.admin.ProfileInst getTopicProfile(String role)

getProfile

public com.stratelia.webactiv.beans.admin.ProfileInst getProfile(String role)

getTopicProfiles

public List<com.stratelia.webactiv.beans.admin.ProfileInst> getTopicProfiles()

getTopicProfiles

public List<com.stratelia.webactiv.beans.admin.ProfileInst> getTopicProfiles(String topicId)

groupIds2Groups

public List<com.stratelia.webactiv.beans.admin.Group> groupIds2Groups(List<String> groupIds)

userIds2Users

public List<com.stratelia.webactiv.beans.admin.UserDetail> userIds2Users(List<String> userIds)

isUserCanValidate

public boolean isUserCanValidate()
                          throws RemoteException
Throws:
RemoteException

isUserCanWrite

public boolean isUserCanWrite()
                       throws RemoteException
Throws:
RemoteException

copyPublication

public void copyPublication(String pubId)
                     throws com.silverpeas.util.clipboard.ClipboardException,
                            RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

copySelectedPublications

public void copySelectedPublications()
                              throws com.silverpeas.util.clipboard.ClipboardException,
                                     RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

cutPublication

public void cutPublication(String pubId)
                    throws com.silverpeas.util.clipboard.ClipboardException,
                           RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

cutSelectedPublications

public void cutSelectedPublications()
                             throws com.silverpeas.util.clipboard.ClipboardException,
                                    RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

copyTopic

public void copyTopic(String id)
               throws com.silverpeas.util.clipboard.ClipboardException,
                      RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

cutTopic

public void cutTopic(String id)
              throws com.silverpeas.util.clipboard.ClipboardException,
                     RemoteException
Throws:
com.silverpeas.util.clipboard.ClipboardException
RemoteException

paste

public List<Object> paste(KmeliaPasteDetail pasteDetail)
                   throws com.silverpeas.util.clipboard.ClipboardException
Throws:
com.silverpeas.util.clipboard.ClipboardException

isClipboardContainsSomeCopiedItems

public boolean isClipboardContainsSomeCopiedItems()

getPublicationLanguages

public List<String> getPublicationLanguages()
get languages of publication header and attachments

Returns:
a List of String (language codes)

getAttachmentLanguages

public List<String> getAttachmentLanguages()

setAliases

public void setAliases(List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
                throws RemoteException
Throws:
RemoteException

setAliases

public void setAliases(com.stratelia.webactiv.util.publication.model.PublicationPK pubPK,
                       List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
                throws RemoteException
Throws:
RemoteException

getAliases

public List<com.stratelia.webactiv.util.publication.model.Alias> getAliases()
                                                                     throws RemoteException
Throws:
RemoteException

getComponents

public List<Treeview> getComponents(List<com.stratelia.webactiv.util.publication.model.Alias> aliases)
                             throws RemoteException
Returns:
a List of Treeview
Throws:
RemoteException

getAliasTreeview

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getAliasTreeview()
                                                                         throws RemoteException
Throws:
RemoteException

getAliasTreeview

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getAliasTreeview(String instanceId)
                                                                         throws RemoteException
Throws:
RemoteException

getSingleAttachmentURLOfCurrentPublication

public String getSingleAttachmentURLOfCurrentPublication()
                                                  throws RemoteException
Returns URL of single attached file for the current publication. If publication contains more than one file, null is returned

Returns:
URL of single attached file for the current publication. Null if publication contains more than one file.
Throws:
RemoteException

getAttachmentURL

public String getAttachmentURL(String fileId)
                        throws RemoteException
Return the url to access the file

Parameters:
fileId - the id of the file (attachment or document id).
Returns:
the url to the file.
Throws:
RemoteException

useUpdateChain

public boolean useUpdateChain()

setFieldUpdateChain

public void setFieldUpdateChain(Fields fields)

getFieldUpdateChain

public Fields getFieldUpdateChain()

initUpdateChainTopicChoice

public void initUpdateChainTopicChoice(String pubId)

isTopicHaveUpdateChainDescriptor

public boolean isTopicHaveUpdateChainDescriptor()

isTopicHaveUpdateChainDescriptor

public boolean isTopicHaveUpdateChainDescriptor(String id)

getSubTopics

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getSubTopics(String rootId)
                                                                     throws RemoteException
Throws:
RemoteException

getUpdateChainTopics

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getUpdateChainTopics()
                                                                             throws RemoteException
Throws:
RemoteException

initUpdateChainDescriptor

public void initUpdateChainDescriptor()
                               throws IOException,
                                      ClassNotFoundException,
                                      ParserConfigurationException
Throws:
IOException
ClassNotFoundException
ParserConfigurationException

getXmlFormForFiles

public String getXmlFormForFiles()

exportPublication

public File exportPublication()

isNotificationAllowed

public boolean isNotificationAllowed()

isWysiwygOnTopicsEnabled

public boolean isWysiwygOnTopicsEnabled()

getWysiwygOnTopic

public String getWysiwygOnTopic(String id)

getWysiwygOnTopic

public String getWysiwygOnTopic()

getTopicPath

public List<com.stratelia.webactiv.util.node.model.NodeDetail> getTopicPath(String topicId)

getThumbnailSettings

public com.silverpeas.thumbnail.ThumbnailSettings getThumbnailSettings()

getAxisIdGlossary

public String getAxisIdGlossary()
return the value of component parameter "axisIdGlossary". This paramater indicate the axis of pdc to use to highlight word in publication content

Returns:
an indentifier of Pdc axis

getRole

public String getRole()

displayPath

public String displayPath(Collection<com.stratelia.webactiv.util.node.model.NodeDetail> path,
                          boolean linked,
                          int beforeAfter)

isSearchOnTopicsEnabled

public boolean isSearchOnTopicsEnabled()
Is search in topics enabled

Returns:
boolean

isAttachmentsEnabled

public boolean isAttachmentsEnabled()

search

public List<KmeliaPublication> search(String query)
Get publications and aliases of this topic and its subtopics answering to the query

Parameters:
query -
Returns:
List of Kmelia publications

getSpacePath

public List<com.stratelia.webactiv.beans.admin.SpaceInst> getSpacePath()
Returns:
the list of SpaceInst from current space identifier (in session) to root space
(all the subspace)

getForms

public List<com.silverpeas.publicationTemplate.PublicationTemplate> getForms()

isNewsManage

public boolean isNewsManage()
Is news manage

Returns:
boolean

getDelegatedNews

public DelegatedNews getDelegatedNews(String pubId)
Récupère une actualité déléguée dans le composant delegatednews correspondant à la publication passée en paramètre

Parameters:
pubId - : l'id de la publication de Theme Tracker
Returns:
DelegatedNews : l'objet correspondant à l'actualité déléguée dans le composant delegatednews ou null si elle n'existe pas

addDelegatedNews

public String addDelegatedNews()
Ajout d'une actualité déléguée dans le composant delegatednews

Returns:
String : pubId

getPublicationExportFileName

public String getPublicationExportFileName(KmeliaPublication publication,
                                           String language)
Description copied from interface: ExportFileNameProducer
Gets the name of the file into which the specified publication can be exported, whatever the format of the export file.

Specified by:
getPublicationExportFileName in interface ExportFileNameProducer
Parameters:
publication - the Kmelia publication to export.
language - the language in which the file should be named. This parameter can be not taken into account in the file name computation by the implementation (depends on the strategy used in the name production).
Returns:
the name of the file into which the publication can be exported.

removePublicationContent

public void removePublicationContent()
                              throws RemoteException
Throws:
RemoteException

isComponentManageable

public boolean isComponentManageable()

getAvailableFormats

public List<String> getAvailableFormats()
Gets all available export formats.

Returns:
a list of export formats Silverpeas supports for export.

getSupportedFormats

public List<String> getSupportedFormats()
Gets the export formats that are supported by the current Kmelia component instance. As some of the export formats can be deactivated in the Kmelia settings file, this method returns all the formats that are currently active.

Returns:
a list of export formats.

isFormatSupported

public boolean isFormatSupported(String format)
Is the specified export format is supported by the Kmelia component instance?

Parameters:
format - a recognized export format.
Returns:
true if the specified format is currently supported for the publication export, false otherwise.

isClassifiedOnThePdC

public boolean isClassifiedOnThePdC(com.stratelia.webactiv.util.publication.model.PublicationDetail publication)
                             throws com.stratelia.silverpeas.pdc.model.PdcException
Is the specified publication classified on the PdC.

Parameters:
publication - a publication;
Returns:
true if the publication is classified, false otherwise.
Throws:
com.stratelia.silverpeas.pdc.model.PdcException - if an error occurs while verifying the publication is classified.

isDefaultClassificationModifiable

public boolean isDefaultClassificationModifiable(String topicId,
                                                 String componentId)
Is the default classification on the PdC used to classify the publications published in the specified topic of the specified component instance can be modified during the multi-publications import process? If no default classification is defined for the specified topic (and for any of its parent topics), then false is returned.

Parameters:
topicId - the unique identifier of the topic.
componentId - the unique identifier of the component instance.
Returns:
true if the default classification can be modified during the automatical classification of the imported publications. False otherwise.

resetSelectedPublicationPKs

public void resetSelectedPublicationPKs()

processSelectedPublicationIds

public List<com.stratelia.webactiv.util.publication.model.PublicationPK> processSelectedPublicationIds(String selectedPublicationIds,
                                                                                                       String notSelectedPublicationIds)

getSelectedPublicationPKs

public List<com.stratelia.webactiv.util.publication.model.PublicationPK> getSelectedPublicationPKs()

isCustomPublicationTemplateUsed

public boolean isCustomPublicationTemplateUsed()

getCustomPublicationTemplateName

public String getCustomPublicationTemplateName()

getLatestPublications

public List<KmeliaPublication> getLatestPublications()
                                              throws RemoteException
Throws:
RemoteException

getPublicationsOfCurrentFolder

public List<KmeliaPublication> getPublicationsOfCurrentFolder()
                                                       throws RemoteException
Throws:
RemoteException

getContentLanguage

public String getContentLanguage()

getSearchContext

public SearchContext getSearchContext()

manageSubscriptions

public String manageSubscriptions()

getNbPublicationImported

public int getNbPublicationImported(com.silverpeas.importExport.report.ImportReport importReport)
Parameters:
importReport -
Returns:
the number of publications created

getErrorMessageImportation

public String getErrorMessageImportation(com.silverpeas.importExport.report.ImportReport importReport,
                                         String importMode)
Parameters:
importReport -
importMode -
Returns:
an error message or null

getListPublicationImported

public List<com.stratelia.webactiv.util.publication.model.PublicationDetail> getListPublicationImported(com.silverpeas.importExport.report.ImportReport importReport,
                                                                                                        String importMode)
                                                                                                 throws RemoteException
Parameters:
importReport -
importMode -
Returns:
a list of publication
Throws:
RemoteException

getLastAccess

public List<com.stratelia.webactiv.util.statistic.model.HistoryObjectDetail> getLastAccess(com.stratelia.webactiv.util.publication.model.PublicationPK pk)

setPublicationValidator

public void setPublicationValidator(String userIds)

addPublicationReminder

public void addPublicationReminder(com.stratelia.webactiv.util.publication.model.PublicationDetail pubDetail,
                                   List<org.apache.commons.fileupload.FileItem> parameters)
                            throws org.silverpeas.dateReminder.exception.DateReminderException
Create the date reminder for the given publication

Parameters:
pubDetail -
parameters -
Throws:
org.silverpeas.dateReminder.exception.DateReminderException

updatePublicationReminder

public void updatePublicationReminder(String pubId,
                                      List<org.apache.commons.fileupload.FileItem> parameters)
                               throws org.silverpeas.dateReminder.exception.DateReminderException,
                                      RemoteException
Save Or remove the date reminder for the given publication

Parameters:
pubId -
parameters -
Throws:
org.silverpeas.dateReminder.exception.DateReminderException
RemoteException

getPublicationAccessController

public com.silverpeas.accesscontrol.PublicationAccessController getPublicationAccessController()

isTopicAdmin

public boolean isTopicAdmin(String nodeId)
Check user access right on folder

Parameters:
nodeId - the topic/folder identifier to check
Returns:
true if current user has admin access on topic given in parameter


Copyright © 2016 Silverpeas. All Rights Reserved.