com.jalios.jcms.handler
Class EditPublicationHandler

java.lang.Object
  extended by com.jalios.jcms.context.JcmsContext
      extended by com.jalios.jcms.context.JcmsJspContext
          extended by com.jalios.jcms.handler.JcmsFormHandler
              extended by com.jalios.jcms.handler.EditDataHandler
                  extended by com.jalios.jcms.handler.EditPublicationHandler
All Implemented Interfaces:
JcmsConstants, JaliosConstants
Direct Known Subclasses:
DocUploadHandler, EditFileDocumentHandler, EditFormHandler, EditPortalElementHandler

public abstract class EditPublicationHandler
extends EditDataHandler

This form handler processes Publication forms.

Version:
$Revision: 30495 $
Author:
Olivier Dedieu
See Also:
Publication

Field Summary
protected  Date adate
           
protected  String anchor
           
protected  Member author
           
protected  int authorizedGroupsAddCount
           
protected  TreeSet<Group> authorizedGroupSet
           
protected  TreeSet<Member> authorizedMemberSet
           
protected  int authorizedMemberSetAddCount
           
protected  Set<Category> categorySet
           
protected  String[] cids
           
static String DISPLAY_URL_TOKEN
           
protected  Date edate
           
protected  Map<String,FieldStatus> fieldStatusMap
           
protected  TreeSet<String> friendlyURLSet
           
static String ID_TOKEN
           
protected  boolean isAuthorForced
           
protected  boolean isCategorized
           
protected  boolean isContentType
           
protected  boolean isDBType
           
protected  boolean isFormType
           
protected  boolean isPortletType
           
protected  boolean isTracked
           
protected  boolean isUGCType
           
protected  int itemPos
           
protected  String listToProcess
           
protected  String mainLanguage
           
protected  boolean majorUpdate
           
protected  int oldPstatus
           
protected  boolean opAddItem
           
protected  boolean opAddItemReadRights
           
protected  boolean opAddItemUpdateRights
           
protected  int openTab
           
protected  boolean opMerge
           
protected  Date pdate
           
static String PREVIEW_URL_TOKEN
           
protected  int pstatus
           
protected  Class<? extends Publication> pubClass
           
protected  Publication publication
           
static String REVISION
           
protected  String[] roleIds
           
protected  HashMap<String,TreeSet<Member>> roleMap
           
protected  Member[] roleMembers
           
protected  Date sdate
           
protected  boolean showAllTabs
           
protected  boolean showContentTabOnly
           
protected  String[] templates
           
protected  String title
           
protected  HashMap<String,String> titleML
           
protected  String typeLabel
           
protected  int updateGroupsAddCount
           
protected  TreeSet<Group> updateGroupSet
           
protected  TreeSet<Member> updateMemberSet
           
protected  int updateMemberSetAddCount
           
protected  Workflow wf
           
protected  String wfNote
           
protected  Publication workingPub
           
protected  WSTypeEntry wste
           
 
Fields inherited from class com.jalios.jcms.handler.EditDataHandler
extFormHandler, formStep, id, isDeleteForced, op, opCancel, opCreate, opDelete, opFinish, opNext, opPrevious, opRefresh, opUpdate, resultOpCreate, resultOpDelete, resultOpUpdate
 
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced
 
Fields inherited from class com.jalios.jcms.context.JcmsJspContext
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, JS_HEADER, jsboMap, jsboSet, jsfoMap, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER
 
Fields inherited from class com.jalios.jcms.context.JcmsContext
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isLogged, loggedMember, request, response, userLang, userLocale, workspace
 
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, CRYPT_MD5, CRYPT_UNDEFINED, CRYPT_UNIX, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, ICON_ARCHIVE, ICON_LOCK, ICON_LOCK_STRONG, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_DEEP_COPY, OP_DEEP_DELETE, OP_DELETE, OP_MERGE, OP_UPDATE, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SESSION_AUTHORIZED_FILENAMES_SET, STATS_REPORT_DIR, STATUS_PROP, STORE_XML, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, URL_REGEXP, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
 
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
 
Constructor Summary
EditPublicationHandler()
           
 
Method Summary
 boolean cannotRead()
          Returns true if the loggedMember cannot read this publication.
 boolean containsHiddenParts()
           
 HashMap<String,String> getAllAvailableTitleML()
           
 String getAnchor()
          Get the value of anchor.
 int getAuthorizedGroupsCount()
           
 int getAuthorizedMemberSetCount()
           
 Date getAvailableAdate()
           
 Member getAvailableAuthor()
           
 Set<Group> getAvailableAuthorizedGroupSet()
           
 Set<Member> getAvailableAuthorizedMemberSet()
           
 Category[] getAvailableCategories()
           
 Date getAvailableEdate()
           
 TreeSet<String> getAvailableFriendlyURLSet()
           
 String getAvailableMainLanguage()
           
 boolean getAvailableMajorUpdate()
           
 Date getAvailablePdate()
           
 int getAvailablePstatus()
           
 HashMap<String,TreeSet<Member>> getAvailableRoleMap()
           
 Date getAvailableSdate()
           
 TypeTemplateEntry getAvailableTemplateEntry(String usage)
           
 String[] getAvailableTemplates()
           
 String getAvailableTitle()
           
 String getAvailableTitle(String lang)
           
 HashMap<String,String> getAvailableTitleML()
           
 boolean getAvailableTracked()
           
 Set<Group> getAvailableUpdateGroupSet()
           
 Set<Member> getAvailableUpdateMemberSet()
           
 String getAvailableWFNote()
           
 Workspace getAvailableWorkspace()
           
 Set<Category> getCategorySet(String inputName)
          Returns the root set bound to the given inputName
protected  HashMap getControllerContext()
          Build a controller context.
 Class<? extends Data> getDataClass()
           
 Set<Group> getDefaultAuthorizedGroupSet()
          This method should be overriden by sub-classes
 Set<Member> getDefaultAuthorizedMemberSet()
          This method should be overriden by sub-classes
 Set<Category> getDefaultCategorySet()
          This method should be overriden by sub-classes
 String getDefaultTemplateUsage()
          Returns the default template usage used to display the publication.
 Set<Group> getDefaultUpdateGroupSet()
          This method should be overriden by sub-classes
 Set<Member> getDefaultUpdateMemberSet()
          This method should be overriden by sub-classes
 FieldStatus getFieldStatus(String fieldName)
          Returns the FieldStatus for the given field.
 Set<Category> getHiddenCatSet(Set<Category> typeRemovedCatSet)
           
 TreeSet<Member> getMemberSetAssignedToRole(String roleId)
           
 int getOpenTab()
           
 Publication getPublication()
           
abstract  Class<? extends Publication> getPublicationClass()
           
 boolean getShowAllTabs()
           
 boolean getShowContentTabOnly()
           
 String getTabLabel(String tabId)
           
 Object getTitleFieldValue(boolean isTitleML)
           
 String getTypeLabel()
          Returns the label of the edited type.
 int getUpdateGroupsCount()
           
 int getUpdateMemberSetCount()
           
 String getWorkAreaCss()
          Returns the css class used for style, and javascript window resize in footer in popup edition.
 Workflow getWorkflow()
           
 WSTypeEntry getWSTypeEntry()
           
protected  void init()
           
protected  boolean internalPerformCreate()
           
protected  boolean internalPerformDelete()
           
protected  boolean internalPerformUpdate()
           
 boolean isAdvancedTabHidden()
           
 boolean isCategoryTabHidden()
           
 boolean isContentTabOnly()
           
 boolean isDBType()
          Returns true if the publication class extends DBData.
 boolean isExpanded(Category cat, String inputName)
           
 boolean isFieldEdition(String field)
           
 boolean isForm()
          Is this handler dedicated to Form sub-class processing.
 boolean isLocked()
          Returns true if the publication is (weakly) locked.
 boolean isReadRightTabHidden()
           
 boolean isStrongLocked()
          Returns true if the publication is a FileDocument with a strong lock.
 boolean isTabForced()
           
 boolean isTemplateTabHidden()
           
 boolean isUpdateRightTabHidden()
           
 boolean isWorkflowTabHidden()
           
 boolean performAddItem()
           
 boolean performAddItemReadRights()
           
 boolean performAddItemUpdateRights()
           
 boolean performCreate()
           
 boolean performDelete()
           
 boolean performMerge()
           
 boolean performRefresh()
           
 boolean performUpdate()
           
 void prepare()
           
 boolean processAction()
           
protected  boolean processStatus(ControllerStatus status)
          Process the ControllerStatus: do nothing if OK, or send on forbidden, or put a warning message in the request.
protected  void releaseDBWorkingPub()
           
protected  void sendRedirect()
           
 void setAdate(String v)
           
 void setAnchor(String v)
          Set the value of anchor.
 void setAuthor(String v)
           
 void setAuthorForced(boolean v, Member author)
           
 void setAuthorizedGroupIds(String[] v)
           
 void setAuthorizedMemberIds(String[] v)
           
 void setAuthorizedMemberSetAddCount(int v)
           
 void setCids(String[] v)
           
 void setEdate(String v)
           
 void setFields(Publication pub)
          Set the common (Publication) fields.
 void setFriendlyURL(String[] v)
          Set the friendly urls.
 void setId(String id)
          Set the value of id.
 void setItemPos(int v)
           
 void setMainLanguage(String v)
          Set the main language.
 void setMajorUpdate(String v)
           
 void setOpAddItem(String v)
           
 void setOpAddItemReadRights(String v)
           
 void setOpAddItemUpdateRights(String v)
           
 void setOpenTab(int openTab)
           
 void setOpMerge(String v)
           
 void setPdate(String v)
           
 void setPstatus(int v)
           
 void setRoleId(String[] v)
          Set the role ids
 void setSdate(String v)
           
 void setShowAllTabs(boolean v)
           
 void setShowContentTabOnly(boolean v)
          since jcms-5.5.0
 void setTemplates(String[] v)
           
 void setTitle(String[] v)
           
 void setTracked(boolean v)
           
 void setUpdateGroupIds(String[] v)
           
 void setUpdateMemberIds(String[] v)
           
 void setUpdateMemberSetAddCount(int v)
           
 void setWfNote(String v)
           
 boolean showForceDelete()
          Returns true if the "Force deletion" option must be proposed.
 boolean showFriendlyURL()
           
 boolean showLockWarning()
          Returns true if the lock warning message must be displayed.
 boolean showMainLanguage()
           
 boolean showReaderTracker()
           
 boolean showSDate()
           
 boolean showWFRole()
           
 void updateCids(String[] v)
          Update the cids (this method is called by setCids() and all setCidsXXX() methods)
 boolean validateAddItem()
           
 boolean validateAddItemReadRights()
           
 boolean validateAddItemUpdateRights()
           
 boolean validateBeforeOp()
           
 boolean validateCreate()
           
 boolean validateDelete()
           
 boolean validateFieldFormat()
           
 boolean validateMember()
           
 boolean validateMerge()
           
 boolean validateUpdate()
           
 boolean validateWorkspace()
           
 
Methods inherited from class com.jalios.jcms.handler.EditDataHandler
afterValidation, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, createUploadedFileDocument, getAvailableData, getAvailableDataArray, getAvailableExtraDataMap, getAvailableExtraDBDataMap, getExtFormHandler, getFormStep, getFormStepCount, getId, handleRestResponse, isFirstAccess, performCancel, performCreateExtension, performFinish, performNext, performPrevious, performUpdateExtension, processDataId, processDataIds, processDataIds, processMLData, processMLDataArray, restValidation, setExtFormHandler, setExtraDBKeys, setExtraDBValues, setExtraKeys, setExtraValues, setFields, setForceDelete, setFormStep, setOpCancel, setOpCreate, setOpDelete, setOpFinish, setOpNext, setOpPrevious, setOpRefresh, setOpUpdate, showFinishButton, showNextButton, showPreviousButton, validate, validateCancel, validateCreateExtension, validateFinish, validateNext, validatePrevious, validateRefresh, validateUpdateExtension, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument, validateUploadedFileDocument
 
Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler
checkMissingField, getEditFieldSet, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenField, getHiddenFieldML, getMainLangValue, getMainLangValueArray, getMLMap, getMLMapArray, getRedirect, getRedirectOnClosePopup, getWorkspace, isFieldMissing, isPartialFieldEdition, isPopupEdition, isWorkspaceForced, sendRedirect, sendRedirect, setEditField, setNoRedirect, setNoSendRedirect, setPopupEdition, setRedirect, setRedirectOnClosePopup, setWorkspace, setWs, updateUploadedField, updateUploadedFields
 
Methods inherited from class com.jalios.jcms.context.JcmsJspContext
addBodyAttributes, addCSSHeader, addCSSHeader, addCSSHeader, addCSSHeader, addCustomHeader, addHttpEquivHeader, addHttpNameHeader, addJavaScript, addJavaScript, addJavaScript, addJavaScriptCode, addJSHeader, addJSHeader, addJSHeader, addJSHeader, addStyleHeader, addStyleHeader, checkAccess, checkAccess, debugDisplayContext, forceEditIcon, forceUpdate, getAjaxRequestAttribute, getAjaxRequestId, getAllHeadersDiffMap, getAllHeadersMap, getBackOfficeCSSHeader, getBackOfficeJavaScriptSet, getBackOfficeJSHeader, getBodyAttributes, getContentForm, getCSSHeaders, getCtxCategories, getCurrentCategory, getCustomHeaders, getDocType, getFinalCSSMap, getFinalJavaScriptSet, getFormElementCount, getFrontOfficeCSSHeader, getFrontOfficeJavaScriptSet, getFrontOfficeJSHeader, getHttpEquivHeaders, getHttpNameHeaders, getJavaScriptCodeSet, getJavaScriptSet, getJSHeaders, getJSONBridge, getPackVersion, getPageContext, getPageTitle, getPageZone, getPortal, getPortalCategory, getPortlet, getStyleHeaders, getTemplateUsage, internalSetupEmptyHeader, isEditIcon, isPrintView, registerDisplayContext, removeAjaxRequestAttribute, setAjaxRequestAttribute, setAjaxRequestId, setAllHeadersDiffMap, setDocType, setEditIcon, setFormElementCount, setPageContext, setPageTitle, setPageZone, setShowEditIcon, setTemplateUsage, showEditIcon, workaroundBrowserBaseHrefBug
 
Methods inherited from class com.jalios.jcms.context.JcmsContext
addCookie, addMsg, addMsg, addMsgSession, applySelector, forceWorkspaceUpdate, getBaseUrl, getBrowser, getCaddy, getContextPath, getErrorMsg, getErrorMsgList, getErrorMsgSession, getErrorMsgSessionList, getInfoMsg, getInfoMsgList, getInfoMsgSession, getInfoMsgSessionList, getLoggedMember, getMsgList, getMsgSessionList, getRequest, getResponse, getSession, getUploadedFile, getUploadedFileList, getUrlWithCommonUpdatedParams, getUserLang, getUserLocale, getWarningMsg, getWarningMsgList, getWarningMsgSession, getWarningMsgSessionList, glp, isAdmin, isAjaxRequest, isDBMember, isDebug, isInFrontOffice, isLogged, isWebdavAccess, removeMessage, removeMessage, retrieveUploadedFile, select, sendForbidden, sendForbidden, sendRedirect, sendRedirect, setErrorMsg, setErrorMsg, setErrorMsgSession, setErrorMsgSession, setInfoMsg, setInfoMsg, setInfoMsgSession, setInfoMsgSession, setLoggedMember, setRequest, setResponse, setWarningMsg, setWarningMsg, setWarningMsgSession, setWarningMsgSession, validateRegexp, validateSchedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

ID_TOKEN

public static final String ID_TOKEN
See Also:
Constant Field Values

DISPLAY_URL_TOKEN

public static final String DISPLAY_URL_TOKEN
See Also:
Constant Field Values

PREVIEW_URL_TOKEN

public static final String PREVIEW_URL_TOKEN
See Also:
Constant Field Values

opMerge

protected boolean opMerge

opAddItem

protected boolean opAddItem

opAddItemReadRights

protected boolean opAddItemReadRights

opAddItemUpdateRights

protected boolean opAddItemUpdateRights

majorUpdate

protected boolean majorUpdate

title

protected String title

titleML

protected HashMap<String,String> titleML

cids

protected String[] cids

templates

protected String[] templates

pstatus

protected int pstatus

oldPstatus

protected int oldPstatus

pdate

protected Date pdate

edate

protected Date edate

sdate

protected Date sdate

adate

protected Date adate

wfNote

protected String wfNote

authorizedMemberSetAddCount

protected int authorizedMemberSetAddCount

authorizedGroupsAddCount

protected int authorizedGroupsAddCount

updateMemberSetAddCount

protected int updateMemberSetAddCount

updateGroupsAddCount

protected int updateGroupsAddCount

anchor

protected String anchor

isTracked

protected boolean isTracked

mainLanguage

protected String mainLanguage

friendlyURLSet

protected TreeSet<String> friendlyURLSet

roleIds

protected String[] roleIds

roleMembers

protected Member[] roleMembers

roleMap

protected HashMap<String,TreeSet<Member>> roleMap

publication

protected Publication publication

pubClass

protected Class<? extends Publication> pubClass

wste

protected WSTypeEntry wste

wf

protected Workflow wf

author

protected Member author

isAuthorForced

protected boolean isAuthorForced

categorySet

protected Set<Category> categorySet

authorizedMemberSet

protected TreeSet<Member> authorizedMemberSet

authorizedGroupSet

protected TreeSet<Group> authorizedGroupSet

updateMemberSet

protected TreeSet<Member> updateMemberSet

updateGroupSet

protected TreeSet<Group> updateGroupSet

openTab

protected int openTab

showAllTabs

protected boolean showAllTabs

showContentTabOnly

protected boolean showContentTabOnly

typeLabel

protected String typeLabel

isContentType

protected boolean isContentType

isPortletType

protected boolean isPortletType

isFormType

protected boolean isFormType

isUGCType

protected boolean isUGCType

isDBType

protected boolean isDBType

isCategorized

protected boolean isCategorized

listToProcess

protected String listToProcess

itemPos

protected int itemPos

workingPub

protected Publication workingPub

fieldStatusMap

protected Map<String,FieldStatus> fieldStatusMap
Constructor Detail

EditPublicationHandler

public EditPublicationHandler()
Method Detail

getDataClass

public Class<? extends Data> getDataClass()
Specified by:
getDataClass in class EditDataHandler

getPublicationClass

public abstract Class<? extends Publication> getPublicationClass()

getPublication

public Publication getPublication()
Overrides:
getPublication in class JcmsJspContext
Returns:
the current Content or Form if not null, or the Portlet (or null). Slow: we DO NOT cache this value (so do not use this getter every 2millisecs).

getWorkflow

public Workflow getWorkflow()

getWSTypeEntry

public WSTypeEntry getWSTypeEntry()

getTabLabel

public String getTabLabel(String tabId)

init

protected void init()

processAction

public boolean processAction()
                      throws IOException
Overrides:
processAction in class EditDataHandler
Throws:
IOException

validateBeforeOp

public boolean validateBeforeOp()

releaseDBWorkingPub

protected void releaseDBWorkingPub()

sendRedirect

protected void sendRedirect()
                     throws IOException
Overrides:
sendRedirect in class EditDataHandler
Throws:
IOException

validateMember

public boolean validateMember()
                       throws IOException
Throws:
IOException

validateWorkspace

public boolean validateWorkspace()
                          throws IOException
Throws:
IOException

processStatus

protected boolean processStatus(ControllerStatus status)
                         throws IOException
Description copied from class: JcmsFormHandler
Process the ControllerStatus: do nothing if OK, or send on forbidden, or put a warning message in the request.

Overrides:
processStatus in class JcmsFormHandler
Parameters:
status - the ControllerStatus to be processed
Throws:
IOException

validateFieldFormat

public boolean validateFieldFormat()

validateCreate

public boolean validateCreate()
                       throws IOException
Throws:
IOException

performCreate

public boolean performCreate()
                      throws IOException
Throws:
IOException

internalPerformCreate

protected boolean internalPerformCreate()
                                 throws IOException
Throws:
IOException

getControllerContext

protected HashMap getControllerContext()
Description copied from class: JcmsFormHandler
Build a controller context. I.E. add request, response and loggedMember.

Overrides:
getControllerContext in class EditDataHandler
Returns:
the HashMap which contains the context

validateUpdate

public boolean validateUpdate()
                       throws IOException
Throws:
IOException

performUpdate

public boolean performUpdate()
                      throws IOException
Throws:
IOException

internalPerformUpdate

protected boolean internalPerformUpdate()
                                 throws IOException
Throws:
IOException

validateDelete

public boolean validateDelete()
                       throws IOException
Throws:
IOException

performDelete

public boolean performDelete()
                      throws IOException
Throws:
IOException

internalPerformDelete

protected boolean internalPerformDelete()
                                 throws IOException
Throws:
IOException

validateMerge

public boolean validateMerge()

performMerge

public boolean performMerge()
                     throws IOException
Throws:
IOException

validateAddItem

public boolean validateAddItem()

performAddItem

public boolean performAddItem()
                       throws IOException
Throws:
IOException

validateAddItemReadRights

public boolean validateAddItemReadRights()

performAddItemReadRights

public boolean performAddItemReadRights()
                                 throws IOException
Throws:
IOException

validateAddItemUpdateRights

public boolean validateAddItemUpdateRights()

performAddItemUpdateRights

public boolean performAddItemUpdateRights()
                                   throws IOException
Throws:
IOException

performRefresh

public boolean performRefresh()
                       throws IOException
Overrides:
performRefresh in class EditDataHandler
Throws:
IOException

prepare

public void prepare()

setFields

public void setFields(Publication pub)
Set the common (Publication) fields. This method is also a hook for sub-classed to fill some field (or do anything else) before a create or an update.

Parameters:
pub - the publication to set the fields
Since:
jcms-4.0

isFieldEdition

public boolean isFieldEdition(String field)
Overrides:
isFieldEdition in class JcmsFormHandler

isDBType

public boolean isDBType()
Returns true if the publication class extends DBData.

Returns:
true if the publication class extends DBData.
Since:
jcms-6.0.0

showWFRole

public boolean showWFRole()

showReaderTracker

public boolean showReaderTracker()

showMainLanguage

public boolean showMainLanguage()

showSDate

public boolean showSDate()

showFriendlyURL

public boolean showFriendlyURL()

showForceDelete

public boolean showForceDelete()
Returns true if the "Force deletion" option must be proposed.

Returns:
true if the "Force deletion" option must be proposed.
Since:
jcms-5.5.0

isLocked

public boolean isLocked()
Returns true if the publication is (weakly) locked.

Returns:
true if the publication is (weakly) locked.
Since:
jcms-5.7.0

isStrongLocked

public boolean isStrongLocked()
Returns true if the publication is a FileDocument with a strong lock.

Returns:
true if the publication is a FileDocument with a strong lock.
Since:
jcms-5.7.0

showLockWarning

public boolean showLockWarning()
Returns true if the lock warning message must be displayed.

Returns:
true if the lock warning message must be displayed.
Since:
jcms-5.7.0

setOpenTab

public void setOpenTab(int openTab)
Since:
jcms-4.0

getOpenTab

public int getOpenTab()
Since:
jcms-4.0

isTabForced

public boolean isTabForced()
Since:
jcms-4.0

containsHiddenParts

public boolean containsHiddenParts()
Returns:
true if there is at least one tab hidden
Since:
jcms-5.7.1

setShowAllTabs

public void setShowAllTabs(boolean v)
Since:
jcms-4.0

getShowAllTabs

public boolean getShowAllTabs()
Since:
jcms-4.0

setShowContentTabOnly

public void setShowContentTabOnly(boolean v)
since jcms-5.5.0


getShowContentTabOnly

public boolean getShowContentTabOnly()
Since:
jcms-5.5.0

isContentTabOnly

public boolean isContentTabOnly()
Since:
jcms-5.5.0

isCategoryTabHidden

public boolean isCategoryTabHidden()
Since:
jcms-4.0

isReadRightTabHidden

public boolean isReadRightTabHidden()
Since:
jcms-4.0

isUpdateRightTabHidden

public boolean isUpdateRightTabHidden()
Since:
jcms-4.0

isTemplateTabHidden

public boolean isTemplateTabHidden()
Since:
jcms-4.0

isWorkflowTabHidden

public boolean isWorkflowTabHidden()
Since:
jcms-4.0

isAdvancedTabHidden

public boolean isAdvancedTabHidden()
Since:
jcms-4.0

getAvailableCategories

public Category[] getAvailableCategories()

getCategorySet

public Set<Category> getCategorySet(String inputName)
Returns the root set bound to the given inputName

Parameters:
inputName - the name of category set to get
Returns:
a Set of Category
Since:
jcms-3.0

getHiddenCatSet

public Set<Category> getHiddenCatSet(Set<Category> typeRemovedCatSet)
Returns:
the hidden categories
Since:
jcms-5.6.2

isExpanded

public boolean isExpanded(Category cat,
                          String inputName)
Returns:
true if the given category must be expanded
Since:
jcms-3.0

getTitleFieldValue

public Object getTitleFieldValue(boolean isTitleML)

getAvailableTitle

public String getAvailableTitle()

getAllAvailableTitleML

public HashMap<String,String> getAllAvailableTitleML()

getAvailableTitleML

public HashMap<String,String> getAvailableTitleML()

getAvailableTitle

public String getAvailableTitle(String lang)

getAvailableTemplateEntry

public TypeTemplateEntry getAvailableTemplateEntry(String usage)

getAvailableTemplates

public String[] getAvailableTemplates()

getAvailablePstatus

public int getAvailablePstatus()

getAvailablePdate

public Date getAvailablePdate()

getAvailableEdate

public Date getAvailableEdate()

getAvailableSdate

public Date getAvailableSdate()

getAvailableAdate

public Date getAvailableAdate()
Since:
jcms-4.1.1

getAvailableWFNote

public String getAvailableWFNote()

getAvailableAuthorizedMemberSet

public Set<Member> getAvailableAuthorizedMemberSet()
Since:
jcms-2.1

getDefaultAuthorizedMemberSet

public Set<Member> getDefaultAuthorizedMemberSet()
This method should be overriden by sub-classes

Since:
jcms-3.0

getAvailableAuthorizedGroupSet

public Set<Group> getAvailableAuthorizedGroupSet()
Since:
jcms-2.1

getAuthorizedGroupsCount

public int getAuthorizedGroupsCount()

getUpdateGroupsCount

public int getUpdateGroupsCount()

getDefaultAuthorizedGroupSet

public Set<Group> getDefaultAuthorizedGroupSet()
This method should be overriden by sub-classes

Since:
jcms-3.0

getDefaultCategorySet

public Set<Category> getDefaultCategorySet()
This method should be overriden by sub-classes

Since:
jcms-3.0

getAvailableUpdateMemberSet

public Set<Member> getAvailableUpdateMemberSet()
Since:
jcms-4.0

getDefaultUpdateMemberSet

public Set<Member> getDefaultUpdateMemberSet()
This method should be overriden by sub-classes

Since:
jcms-4.0

getAvailableUpdateGroupSet

public Set<Group> getAvailableUpdateGroupSet()
Since:
jcms-4.0

getDefaultUpdateGroupSet

public Set<Group> getDefaultUpdateGroupSet()
This method should be overriden by sub-classes

Since:
jcms-4.0

getAvailableAuthor

public Member getAvailableAuthor()
Returns:
the selected author
Since:
jcms-5.0.0

setAuthorForced

public void setAuthorForced(boolean v,
                            Member author)

updateCids

public void updateCids(String[] v)
Update the cids (this method is called by setCids() and all setCidsXXX() methods)

Since:
jcms-4.0

getDefaultTemplateUsage

public String getDefaultTemplateUsage()
Returns the default template usage used to display the publication. This default tempalte may change between Content and Portlets

Returns:
String the default usage
Since:
jcms-6.0.0

setOpMerge

public void setOpMerge(String v)

setOpAddItem

public void setOpAddItem(String v)

setOpAddItemReadRights

public void setOpAddItemReadRights(String v)

setOpAddItemUpdateRights

public void setOpAddItemUpdateRights(String v)

setMajorUpdate

public void setMajorUpdate(String v)

getAvailableMajorUpdate

public boolean getAvailableMajorUpdate()

isForm

public boolean isForm()
Is this handler dedicated to Form sub-class processing. Overrided by EditFormHandler.

Since:
jcms-4.0

setItemPos

public void setItemPos(int v)

setId

public void setId(String id)
Set the value of id.

Overrides:
setId in class EditDataHandler
Parameters:
id - Value to assign to id.

setTitle

public void setTitle(String[] v)

setCids

public void setCids(String[] v)

setAuthor

public void setAuthor(String v)

setTemplates

public void setTemplates(String[] v)

setPstatus

public void setPstatus(int v)

setPdate

public void setPdate(String v)

setEdate

public void setEdate(String v)

setSdate

public void setSdate(String v)

setAdate

public void setAdate(String v)

setWfNote

public void setWfNote(String v)

setAuthorizedMemberSetAddCount

public void setAuthorizedMemberSetAddCount(int v)

getAuthorizedMemberSetCount

public int getAuthorizedMemberSetCount()

setAuthorizedMemberIds

public void setAuthorizedMemberIds(String[] v)

setAuthorizedGroupIds

public void setAuthorizedGroupIds(String[] v)

setUpdateMemberSetAddCount

public void setUpdateMemberSetAddCount(int v)

getUpdateMemberSetCount

public int getUpdateMemberSetCount()

setUpdateMemberIds

public void setUpdateMemberIds(String[] v)

setUpdateGroupIds

public void setUpdateGroupIds(String[] v)

getAnchor

public String getAnchor()
Get the value of anchor.

Returns:
Value of anchor.

setAnchor

public void setAnchor(String v)
Set the value of anchor.

Parameters:
v - Value to assign to anchor.

setTracked

public void setTracked(boolean v)
Since:
jcms-4.0.2

getAvailableTracked

public boolean getAvailableTracked()
Since:
jcms-4.0.2

getAvailableWorkspace

public Workspace getAvailableWorkspace()
Returns:
Returns the workspace.

setMainLanguage

public void setMainLanguage(String v)
Set the main language.

Since:
jcms-5.5.0

getAvailableMainLanguage

public String getAvailableMainLanguage()
Returns:
the main language of the publication.

setFriendlyURL

public void setFriendlyURL(String[] v)
Set the friendly urls.

Since:
jcms-5.5.0

getAvailableFriendlyURLSet

public TreeSet<String> getAvailableFriendlyURLSet()
Returns:
the friendly urls HashMap (including the default language)
Since:
jcms-5.5.0

setRoleId

public void setRoleId(String[] v)
Set the role ids

Since:
jcms-5.5.0

getAvailableRoleMap

public HashMap<String,TreeSet<Member>> getAvailableRoleMap()
Returns:
the roleMap
Since:
jcms-5.5.0

getMemberSetAssignedToRole

public TreeSet<Member> getMemberSetAssignedToRole(String roleId)
Parameters:
roleId - a WFRole id
Returns:
the set of member assigned to the given roleId
Since:
jcms-5.5.0

getTypeLabel

public String getTypeLabel()
Returns the label of the edited type.

Returns:
the label of the edited type.
Since:
jcms-5.7.0

cannotRead

public boolean cannotRead()
Returns true if the loggedMember cannot read this publication.

Returns:
true if the loggedMember cannot read this publication.
Since:
jcms-5.7.0

getWorkAreaCss

public String getWorkAreaCss()
Returns the css class used for style, and javascript window resize in footer in popup edition.

Returns:
the css class used for style, and javascript window resize in footer in popup edition.
Since:
jcms-5.7.0

getFieldStatus

public FieldStatus getFieldStatus(String fieldName)
Returns the FieldStatus for the given field.

Parameters:
fieldName - the name of the field
Returns:
the FieldStatus for the given field (never null).
Since:
jcms-6.0.1


Copyright © 2001-2010 Jalios SA. All Rights Reserved.