|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.context.JcmsContext
com.jalios.jcms.context.JcmsJspContext
com.jalios.jcms.handler.JcmsFormHandler
com.jalios.jcms.handler.EditDataHandler
com.jalios.jcms.handler.EditPublicationHandler
public abstract class EditPublicationHandler
This form handler processes Publication forms.
Publication| Fields inherited from class com.jalios.jcms.handler.EditDataHandler |
|---|
extFormHandler, id, isDeleteForced, op, opCancel, opCreate, opDelete, 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.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()
|
|
| Methods inherited from class com.jalios.jcms.handler.JcmsFormHandler |
|---|
getEditFieldSet, 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REVISION
public static final String ID_TOKEN
public static final String DISPLAY_URL_TOKEN
public static final String PREVIEW_URL_TOKEN
protected boolean opMerge
protected boolean opAddItem
protected boolean opAddItemReadRights
protected boolean opAddItemUpdateRights
protected boolean majorUpdate
protected String title
protected HashMap<String,String> titleML
protected String[] cids
protected String[] templates
protected int pstatus
protected Date pdate
protected Date edate
protected Date sdate
protected Date adate
protected String wfNote
protected int authorizedMemberSetAddCount
protected int authorizedGroupsAddCount
protected int updateMemberSetAddCount
protected int updateGroupsAddCount
protected String anchor
protected boolean isTracked
protected String mainLanguage
protected TreeSet<String> friendlyURLSet
protected String[] roleIds
protected Member[] roleMembers
protected HashMap<String,TreeSet<Member>> roleMap
protected Publication publication
protected Class<? extends Publication> pubClass
protected WSTypeEntry wste
protected Workflow wf
protected Member author
protected boolean isAuthorForced
protected Set<Category> categorySet
protected TreeSet<Member> authorizedMemberSet
protected TreeSet<Group> authorizedGroupSet
protected TreeSet<Member> updateMemberSet
protected TreeSet<Group> updateGroupSet
protected int openTab
protected boolean showAllTabs
protected boolean showContentTabOnly
protected String typeLabel
protected boolean isContentType
protected boolean isPortletType
protected boolean isFormType
protected boolean isUGCType
protected boolean isDBType
protected String listToProcess
protected int itemPos
protected Publication workingPub
protected Map<String,FieldStatus> fieldStatusMap
| Constructor Detail |
|---|
public EditPublicationHandler()
| Method Detail |
|---|
public Class<? extends Data> getDataClass()
getDataClass in class EditDataHandlerpublic abstract Class<? extends Publication> getPublicationClass()
public Publication getPublication()
getPublication in class JcmsJspContextpublic Workflow getWorkflow()
public WSTypeEntry getWSTypeEntry()
public String getTabLabel(String tabId)
protected void init()
public boolean processAction()
throws IOException
processAction in class EditDataHandlerIOExceptionpublic boolean validateBeforeOp()
protected void releaseDBWorkingPub()
protected void sendRedirect()
throws IOException
sendRedirect in class EditDataHandlerIOException
public boolean validateMember()
throws IOException
IOException
public boolean validateWorkspace()
throws IOException
IOException
protected boolean processStatus(ControllerStatus status)
throws IOException
JcmsFormHandler
processStatus in class JcmsFormHandlerstatus - the ControllerStatus to be processed
IOExceptionpublic boolean validateFieldFormat()
public boolean validateCreate()
throws IOException
IOException
public boolean performCreate()
throws IOException
IOException
protected boolean internalPerformCreate()
throws IOException
IOExceptionprotected HashMap getControllerContext()
JcmsFormHandler
getControllerContext in class EditDataHandler
public boolean validateUpdate()
throws IOException
IOException
public boolean performUpdate()
throws IOException
IOException
protected boolean internalPerformUpdate()
throws IOException
IOException
public boolean validateDelete()
throws IOException
IOException
public boolean performDelete()
throws IOException
IOException
protected boolean internalPerformDelete()
throws IOException
IOExceptionpublic boolean validateMerge()
public boolean performMerge()
throws IOException
IOExceptionpublic boolean validateAddItem()
public boolean performAddItem()
throws IOException
IOExceptionpublic boolean validateAddItemReadRights()
public boolean performAddItemReadRights()
throws IOException
IOExceptionpublic boolean validateAddItemUpdateRights()
public boolean performAddItemUpdateRights()
throws IOException
IOException
public boolean performRefresh()
throws IOException
performRefresh in class EditDataHandlerIOExceptionpublic void prepare()
public void setFields(Publication pub)
pub - the publication to set the fieldspublic boolean isFieldEdition(String field)
isFieldEdition in class JcmsFormHandlerpublic boolean isDBType()
public boolean showWFRole()
public boolean showReaderTracker()
public boolean showMainLanguage()
public boolean showSDate()
public boolean showFriendlyURL()
public boolean showForceDelete()
public boolean isLocked()
public boolean isStrongLocked()
public boolean showLockWarning()
public void setOpenTab(int openTab)
public int getOpenTab()
public boolean isTabForced()
public boolean containsHiddenParts()
public void setShowAllTabs(boolean v)
public boolean getShowAllTabs()
public void setShowContentTabOnly(boolean v)
public boolean getShowContentTabOnly()
public boolean isContentTabOnly()
public boolean isCategoryTabHidden()
public boolean isReadRightTabHidden()
public boolean isUpdateRightTabHidden()
public boolean isTemplateTabHidden()
public boolean isWorkflowTabHidden()
public boolean isAdvancedTabHidden()
public Category[] getAvailableCategories()
public Set<Category> getCategorySet(String inputName)
inputName - the name of category set to get
public Set<Category> getHiddenCatSet(Set<Category> typeRemovedCatSet)
public boolean isExpanded(Category cat,
String inputName)
public Object getTitleFieldValue(boolean isTitleML)
public String getAvailableTitle()
public HashMap<String,String> getAllAvailableTitleML()
public HashMap<String,String> getAvailableTitleML()
public String getAvailableTitle(String lang)
public TypeTemplateEntry getAvailableTemplateEntry(String usage)
public String[] getAvailableTemplates()
public int getAvailablePstatus()
public Date getAvailablePdate()
public Date getAvailableEdate()
public Date getAvailableSdate()
public Date getAvailableAdate()
public String getAvailableWFNote()
public Set<Member> getAvailableAuthorizedMemberSet()
public Set<Member> getDefaultAuthorizedMemberSet()
public Set<Group> getAvailableAuthorizedGroupSet()
public int getAuthorizedGroupsCount()
public int getUpdateGroupsCount()
public Set<Group> getDefaultAuthorizedGroupSet()
public Set<Category> getDefaultCategorySet()
public Set<Member> getAvailableUpdateMemberSet()
public Set<Member> getDefaultUpdateMemberSet()
public Set<Group> getAvailableUpdateGroupSet()
public Set<Group> getDefaultUpdateGroupSet()
public Member getAvailableAuthor()
public void setAuthorForced(boolean v,
Member author)
public void updateCids(String[] v)
public String getDefaultTemplateUsage()
public void setOpMerge(String v)
public void setOpAddItem(String v)
public void setOpAddItemReadRights(String v)
public void setOpAddItemUpdateRights(String v)
public void setMajorUpdate(String v)
public boolean getAvailableMajorUpdate()
public boolean isForm()
public void setItemPos(int v)
public void setId(String id)
setId in class EditDataHandlerid - Value to assign to id.public void setTitle(String[] v)
public void setCids(String[] v)
public void setAuthor(String v)
public void setTemplates(String[] v)
public void setPstatus(int v)
public void setPdate(String v)
public void setEdate(String v)
public void setSdate(String v)
public void setAdate(String v)
public void setWfNote(String v)
public void setAuthorizedMemberSetAddCount(int v)
public int getAuthorizedMemberSetCount()
public void setAuthorizedMemberIds(String[] v)
public void setAuthorizedGroupIds(String[] v)
public void setUpdateMemberSetAddCount(int v)
public int getUpdateMemberSetCount()
public void setUpdateMemberIds(String[] v)
public void setUpdateGroupIds(String[] v)
public String getAnchor()
public void setAnchor(String v)
v - Value to assign to anchor.public void setTracked(boolean v)
public boolean getAvailableTracked()
public Workspace getAvailableWorkspace()
public void setMainLanguage(String v)
public String getAvailableMainLanguage()
public void setFriendlyURL(String[] v)
public TreeSet<String> getAvailableFriendlyURLSet()
public void setRoleId(String[] v)
public HashMap<String,TreeSet<Member>> getAvailableRoleMap()
public TreeSet<Member> getMemberSetAssignedToRole(String roleId)
roleId - a WFRole id
public String getTypeLabel()
public boolean cannotRead()
public String getWorkAreaCss()
public FieldStatus getFieldStatus(String fieldName)
fieldName - the name of the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||