|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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.caddy.AbstractCaddyManagerHandler
com.jalios.jcms.caddy.PublicationCaddyManagerHandler
public class PublicationCaddyManagerHandler
This form handler process Publication Caddy Manager actions.
Caddy
Fields inherited from class com.jalios.jcms.caddy.AbstractCaddyManagerHandler |
---|
applyInEmptyFields, deleteDataExtension, doSearchAndReplace, ignoreIntegrityCheck, opClearCaddy, opDelete, openTab, opPreview, opRemoveCaddy, opUpdate, PREVIOUS_TAB, replaceLangList, replacePattern, searchPattern, useRegExp |
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, jsboSet, 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, userCountry, 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 | |
---|---|
PublicationCaddyManagerHandler()
|
Method Summary | |
---|---|
protected void |
compute()
This methods computes all the common attributes of the publication in the caddy. |
protected void |
computeWorkingPubSet()
|
Member |
getAuthor()
|
String |
getAuthorId()
|
int |
getAuthorizedGroupsAddCount()
|
int |
getAuthorizedGroupsCount()
|
int |
getAuthorizedMemberSetCount()
|
Date |
getAvailableAdate()
|
Member |
getAvailableAuthor()
|
Group[] |
getAvailableAuthorizedGroups()
|
Set<Member> |
getAvailableAuthorizedMemberSet()
|
Date |
getAvailableEdate()
|
Workspace |
getAvailableNewWS()
|
Date |
getAvailablePdate()
|
String[] |
getAvailableTemplates()
|
Group[] |
getAvailableUpdateGroups()
|
Set<Member> |
getAvailableUpdateMemberSet()
|
SortedSet<Category> |
getCategorySet()
|
Class<? extends Publication> |
getCommonClass()
|
String |
getCommonMainLanguage()
Retrieve the mainlanguage common to all publication, if any. |
boolean |
getCommonTracked()
Retrieve the tracked value common to all publication, this getter is only valid if isCommonTrackedAvailable() is true. |
WFState |
getCommonWFState()
|
Workflow |
getCommonWorkflow()
|
boolean |
getGenerateFriendlyURLs()
Check whether friendly URL should be automatically generated from publication's category and title. |
boolean |
getNoAdate()
Get the value of noAdate. |
boolean |
getNoCategory()
Gets the value of noCategory |
boolean |
getNoCommonCategory()
Gets the value of noCommonCategory |
boolean |
getNoEdate()
Get the value of noEdate. |
boolean |
getNoPdate()
Get the value of noPdate. |
boolean |
getNoReadRight()
Get the value of noReadRight. |
boolean |
getNoUpdateRight()
Get the value of noUpdateRight. |
int |
getPstatus()
Get the value of pstatus. |
boolean |
getRemoveFriendlyURLs()
Check if friendly url will be removed during update. |
String[] |
getTemplates()
Retrieve the templates value that were asked to be set for publication. |
int |
getUpdateGroupsAddCount()
|
int |
getUpdateGroupsCount()
|
int |
getUpdateMemberSetAddCount()
|
int |
getUpdateMemberSetCount()
|
boolean |
isCommonTrackedAvailable()
Check if a common tracked value was found for all publication of the caddy |
boolean |
isExpanded(Category cat,
String inputName)
Check if the specified category has been expanded in the treecat |
boolean |
isTypeHomogeneous()
Check if publication in the caddy are of same class. |
boolean |
isWFHomogeneous()
Check if publication in the caddy use the same Workflow. |
boolean |
processAction()
Method to be implemented to check/validate action to be performed and process them. |
void |
setAdate(String v)
Set the value of adate. |
void |
setAuthorId(String v)
|
void |
setAuthorizedGroups(String[] v)
|
void |
setAuthorizedGroupsAddCount(int v)
|
void |
setAuthorizedMemberIds(String[] mbrIds)
Set the value of authorizedMemberIds. |
void |
setAuthorizedMemberSetAddCount(int v)
|
void |
setCids(String[] cids)
Set the value of cids. |
void |
setEdate(String v)
Set the value of edate. |
void |
setGenerateFriendlyURLs(boolean generate)
Set whether friendly URL should be automatically generated from publication's category and title. |
void |
setMainLanguage(String lang)
Set the main language to assign to all publication. |
void |
setMajorUpdate(String v)
Set whether the update perform by the caddy on publication should be a major updated |
void |
setNewWSId(String v)
|
void |
setNoAdate(boolean v)
Set the value of noAdate. |
void |
setNoCategory(boolean v)
Set the value of noCategory. |
void |
setNoCommonCategory(boolean v)
Set the value of noCommonCategory. |
void |
setNoEdate(boolean v)
Set the value of noEdate. |
void |
setNoPdate(boolean v)
Set the value of noPdate. |
void |
setNoReadRight(boolean v)
Set the value of noReadRight. |
void |
setNoUpdateRight(boolean v)
Set the value of noUpdateRight. |
void |
setOpRefine(String v)
|
void |
setPdate(String v)
Set the value of pdate. |
void |
setPstatus(int v)
Set the value of pstatus. |
void |
setRefineCids(String[] refcids)
Sets the cids to be used in refine operation to select publications which belong to the corresponding categories (remove all the others from the caddy). |
void |
setRefineTypes(String[] reftypes)
Important: This setter trigger an immediate action modifying the caddy content! |
void |
setRemoveFriendlyURLs(boolean remove)
Set if friendly urls should be removed for all publication of the caddy |
void |
setTemplates(String[] templates)
Set the templates to define for the set of publication in the caddy. |
void |
setTracked(boolean track)
Set whether publication should be tracked or not. |
void |
setUpdateGroups(String[] v)
|
void |
setUpdateGroupsAddCount(int v)
|
void |
setUpdateMemberIds(String[] mbrIds)
Set the value of updateMemberIds. |
void |
setUpdateMemberSetAddCount(int v)
|
boolean |
validateCommonPdateEdate()
|
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
protected String opRefine
protected String[] refcids
protected String[] reftypes
protected boolean noCategory
protected boolean noCommonCategory
protected String authorId
protected String commonAuthorId
protected String newWSId
protected String commonWSId
protected boolean commonTracked
protected boolean commonTrackedAvailable
protected boolean isTrackedProvided
protected boolean isTracked
protected String[] templates
protected String[] commonTemplates
protected int pstatus
protected Date pdate
protected Date commonPdate
protected Date edate
protected Date commonEdate
protected Date adate
protected Date commonAdate
protected boolean noPdate
protected boolean noEdate
protected boolean noAdate
protected String commonMainLanguage
protected String mainLanguage
protected boolean majorUpdate
protected boolean removeFriendlyURLs
protected boolean generateFriendlyURLs
protected boolean noReadRight
protected TreeSet<Member> authorizedMemberSet
protected TreeSet<Member> commonAuthorizedMemberSet
protected int authorizedMemberSetAddCount
protected Group[] authorizedGroups
protected Group[] commonAuthorizedGroups
protected int authorizedGroupsAddCount
protected boolean noUpdateRight
protected Group[] updateGroups
protected Group[] commonUpdateGroups
protected int updateGroupsAddCount
protected TreeSet<Member> updateMemberSet
protected TreeSet<Member> commonUpdateMemberSet
protected int updateMemberSetAddCount
protected TreeSet<Category> categorySet
protected TreeSet<Category> commonCategorySet
protected Class<? extends Publication> commonClass
protected Workflow commonWF
protected WFState commonWFState
protected Workflow wf
protected Member newAuthor
protected Workspace newWS
Constructor Detail |
---|
public PublicationCaddyManagerHandler()
Method Detail |
---|
protected void computeWorkingPubSet()
protected void compute()
public boolean processAction() throws IOException
JcmsFormHandler
Default implementation is to return false. No need to call super method.
This method may NOT be invoked at all if security validation are not met.
You must ensure your handler and JSP can work properly without any code invoked
in this method.
processAction
in class AbstractCaddyManagerHandler
IOException
public boolean validateCommonPdateEdate()
public void setOpRefine(String v)
public void setRefineCids(String[] refcids)
refcids
- The id of the category that is to be used to select a subset of the caddy.public void setRefineTypes(String[] reftypes)
reftypes
- The types to keep in the caddy.public SortedSet<Category> getCategorySet()
public boolean isExpanded(Category cat, String inputName)
cat
- the category to check, must not be nullinputName
- this parameter is not used
public boolean isWFHomogeneous()
public Workflow getCommonWorkflow()
public WFState getCommonWFState()
public boolean isTypeHomogeneous()
public Class<? extends Publication> getCommonClass()
public String getAuthorId()
public Member getAuthor()
public void setAuthorId(String v)
public Workspace getAvailableNewWS()
public void setNewWSId(String v)
public String[] getTemplates()
public void setTemplates(String[] templates)
templates
- an array of template name, or null to skipppublic int getPstatus()
public void setPstatus(int v)
v
- Value to assign to pstatus.public void setPdate(String v)
v
- Value to assign to pdate.public void setEdate(String v)
v
- Value to assign to edate.public void setAdate(String v)
v
- Value to assign to adate.public boolean getNoPdate()
public void setNoPdate(boolean v)
v
- Value to assign to noPdate.public boolean getNoEdate()
public void setNoEdate(boolean v)
v
- Value to assign to noEdate.public boolean getNoAdate()
public void setNoAdate(boolean v)
v
- Value to assign to noAdate.public void setAuthorizedMemberIds(String[] mbrIds)
mbrIds
- Value to assign to authorizedMemberIds.public Group[] getAvailableAuthorizedGroups()
public Member getAvailableAuthor()
public String[] getAvailableTemplates()
public void setAuthorizedGroups(String[] v)
public void setAuthorizedGroupsAddCount(int v)
public void setAuthorizedMemberSetAddCount(int v)
public void setUpdateMemberSetAddCount(int v)
public int getAuthorizedGroupsCount()
public int getAuthorizedGroupsAddCount()
public Set<Member> getAvailableAuthorizedMemberSet()
public Set<Member> getAvailableUpdateMemberSet()
public Date getAvailablePdate()
public Date getAvailableEdate()
public Date getAvailableAdate()
public void setUpdateMemberIds(String[] mbrIds)
mbrIds
- Value to assign to updateMemberIds.public Group[] getAvailableUpdateGroups()
public void setUpdateGroups(String[] v)
public void setUpdateGroupsAddCount(int v)
public int getUpdateGroupsCount()
public int getUpdateGroupsAddCount()
public int getAuthorizedMemberSetCount()
public int getUpdateMemberSetCount()
public int getUpdateMemberSetAddCount()
public boolean getNoReadRight()
public void setNoReadRight(boolean v)
v
- Value to assign to noReadRight.public boolean getNoUpdateRight()
public void setNoUpdateRight(boolean v)
v
- Value to assign to noUpdateRight.public void setNoCategory(boolean v)
v
- Value to assign to noCategory.public boolean getNoCategory()
public void setNoCommonCategory(boolean v)
v
- Value to assign to noCommonCategory.public boolean getNoCommonCategory()
public void setCids(String[] cids)
cids
- Value to assign to cids.public void setTracked(boolean track)
track
- true to enable reader tracker for all publication false to disable itpublic boolean isCommonTrackedAvailable()
public boolean getCommonTracked()
isCommonTrackedAvailable()
is true.
public void setMainLanguage(String lang)
lang
- an ISO-639 language codepublic String getCommonMainLanguage()
public void setMajorUpdate(String v)
v
- the value of this parameter is ignored, as long as this method is invoked the update will be a major updatepublic boolean getRemoveFriendlyURLs()
public void setRemoveFriendlyURLs(boolean remove)
remove
- true to remove friendly url, false to leave as ispublic boolean getGenerateFriendlyURLs()
public void setGenerateFriendlyURLs(boolean generate)
generate
- true to generate new friendly url (added to existing one), false to leave friendly url as is
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |