|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.context.JcmsContext com.jalios.jcms.context.JcmsJspContext com.jalios.jcms.handler.JcmsFormHandler com.jalios.jcms.handler.PubBrowserHandler
public class PubBrowserHandler
Field Summary | |
---|---|
protected String |
ability
|
protected Category |
category
|
protected Class |
currentClass
|
protected boolean |
detailMode
|
protected String[] |
documentKinds
|
protected Group[] |
groups
|
protected boolean |
isAllMode
|
protected boolean |
isContentMode
|
protected boolean |
isDeleteMode
|
protected boolean |
isFormMode
|
protected boolean |
isMineMode
|
protected boolean |
isPortletMode
|
protected boolean |
isUGCMode
|
protected Member |
member
|
static String |
MINE_GROUPS
|
static String |
MINE_PORTAL
|
protected String |
mode
|
static String |
MODE_ALL
|
static String |
MODE_DELETE
|
static String |
MODE_MINE
|
protected String |
oldType
|
protected String |
opCaddy
|
protected boolean |
pagerAll
|
protected int |
pageSize
|
protected TreeSet |
portals
|
protected int |
pstatus
|
static String |
PUBBROWSER_QUERY
QueryHandler attribute used to indicate that we are processing a pub browser query. |
protected int |
pubCount
|
protected QueryResultSet |
qrs
|
protected QueryHandler |
queryHandler
|
protected Set |
resultSet
|
static String |
REVISION
|
protected boolean |
showAllTypesFilter
|
protected boolean |
showCaddy
|
protected boolean |
showCategories
|
protected boolean |
showReadRightsPub
|
protected boolean |
sortReverse
|
protected String |
sortType
|
protected int |
start
|
protected List<Class<?>> |
subTypeList
|
protected Class |
superClass
|
protected String |
text
|
protected boolean |
workspaceFilter
|
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 | |
---|---|
PubBrowserHandler()
|
Method Summary | |
---|---|
boolean |
canPublish()
Return true if LoggedMember can publish current type |
String |
getAbility()
Retrieves the current the portal element's ability defined for this handler. |
Category |
getCategory()
Return the refine category |
Class |
getCurrentClass()
Return the refine class |
String[] |
getDocumentKinds()
Retrieve the kind of document defined for this PubBrowser |
Group[] |
getGroups()
Return all the groups |
Member |
getMember()
Return the refine member |
Class |
getOldTypeClass()
Return the old type |
String |
getOpCaddy()
|
TreeSet |
getPortals()
|
TreeSet |
getPortalSet()
|
int |
getPstatus()
|
String |
getPubBrowserDescription()
Returns the description of the pubBrowser class |
String |
getPubBrowserTitle(Class clazz)
Returns the title of the pubBrowser |
int |
getPubCount()
|
QueryHandler |
getQueryHandler()
|
String |
getQueryStatusMessage(String userLang)
|
Set |
getResultSet()
Return the result of publication |
Group |
getSelectedGroup()
Return the selected group |
List<Class<?>> |
getSubTypeList()
|
Class |
getSuperClass()
Return the refine super class |
String |
getText()
|
boolean |
isAllMode()
Return true if pubBrowser show All Publication |
boolean |
isContentMode()
Return true if pubBrowser show Content |
boolean |
isDeleteMode()
Return true if pubBrowser show Deleted Publication |
boolean |
isDetailMode()
Return if the table is in detailed mode |
boolean |
isFormMode()
Return true if pubBrowser show Form |
boolean |
isHybrid()
|
boolean |
isMineMode()
Return true if pubBrowser show My Publication |
boolean |
isPortletMode()
Return true if pubBrowser show Portlet |
boolean |
isUGCMode()
Return true if pubBrowser show UGC |
boolean |
isWorkspaceFilter()
|
protected void |
queryData()
Execute the query to prepare resultSet |
boolean |
selectGroup(Group g)
Return true if the current group should be selected |
boolean |
selectPortal(Portal p)
Return true if the current portal should be selected |
void |
setAbility(String ability)
Sets the portal element's ability to match when PortalElement are found. |
void |
setCid(String cid)
|
void |
setClassname(String type)
|
void |
setDetail(boolean detail)
|
void |
setDocumentKinds(String[] kinds)
Set the kind of document to match for this PubBrowser |
void |
setGid(String gid)
|
void |
setMid(String mid)
|
void |
setMode(String mode)
|
void |
setOldType(String string)
|
void |
setOpCaddy(String string)
|
void |
setPagerAll(boolean pagerAll)
|
void |
setPageSize(int pageSize)
|
void |
setPortalId(String portalId)
|
void |
setPstatus(int i)
|
void |
setReverse(boolean reverse)
|
void |
setShowCategories(boolean b)
Set the value of showCategories to b except if this parameter is forced as request parameter |
void |
setShowReadRightPubs(boolean v)
|
void |
setSort(String sort)
|
void |
setStart(int start)
|
void |
setSuper(String superType)
|
void |
setText(String string)
|
void |
setWorkspaceFilter(boolean workspaceFilter)
|
boolean |
showAllTypesFilter()
|
boolean |
showCaddy()
|
boolean |
showCategories()
Return true if pubBrowser must show Category tree |
boolean |
showGroupFilter()
|
boolean |
showMemberFilter()
|
boolean |
showPortalFilter()
|
boolean |
showPstatusFilter()
|
boolean |
showQueryStatusMessage()
|
boolean |
showTextFilter()
|
boolean |
validate()
|
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 PUBBROWSER_QUERY
public static final String MINE_PORTAL
public static final String MINE_GROUPS
public static final String MODE_MINE
public static final String MODE_ALL
public static final String MODE_DELETE
protected QueryHandler queryHandler
protected Class superClass
protected Class currentClass
protected Member member
protected Category category
protected Group[] groups
protected String mode
protected boolean showCategories
protected boolean showAllTypesFilter
protected boolean showReadRightsPub
protected boolean showCaddy
protected boolean detailMode
protected QueryResultSet qrs
protected Set resultSet
protected TreeSet portals
protected int pstatus
protected String oldType
protected String text
protected String opCaddy
protected boolean workspaceFilter
protected String ability
protected String[] documentKinds
protected int start
protected int pageSize
protected boolean pagerAll
protected int pubCount
protected String sortType
protected boolean sortReverse
protected boolean isContentMode
protected boolean isPortletMode
protected boolean isFormMode
protected boolean isUGCMode
protected boolean isDeleteMode
protected boolean isAllMode
protected boolean isMineMode
protected List<Class<?>> subTypeList
Constructor Detail |
---|
public PubBrowserHandler()
Method Detail |
---|
public boolean validate() throws Exception
Exception
protected void queryData() throws LogException
LogException
public Class getOldTypeClass()
public Class getSuperClass()
public Class getCurrentClass()
public Member getMember()
public Category getCategory()
public Group[] getGroups()
public boolean canPublish()
public TreeSet getPortals()
public TreeSet getPortalSet()
public boolean showCategories()
public boolean showAllTypesFilter()
public boolean showCaddy()
public boolean isDetailMode()
public boolean selectGroup(Group g)
public Group getSelectedGroup()
public boolean selectPortal(Portal p)
public boolean isPortletMode()
public boolean isFormMode()
public boolean isContentMode()
public boolean isUGCMode()
public boolean isDeleteMode()
public boolean isAllMode()
public boolean isMineMode()
public boolean showPstatusFilter()
public boolean showGroupFilter()
public boolean showMemberFilter()
public boolean showPortalFilter()
public boolean showTextFilter()
public Set getResultSet()
public int getPubCount()
public String getPubBrowserTitle(Class clazz)
clazz
-
public String getPubBrowserDescription()
public List<Class<?>> getSubTypeList()
public void setSuper(String superType)
public void setClassname(String type)
public void setMode(String mode)
public void setMid(String mid)
public void setDetail(boolean detail)
public void setCid(String cid)
public void setPortalId(String portalId)
public void setGid(String gid)
public void setShowCategories(boolean b)
public int getPstatus()
public void setPstatus(int i)
public void setOldType(String string)
public String getText()
public void setText(String string)
public void setOpCaddy(String string)
public String getOpCaddy()
public boolean isWorkspaceFilter()
public void setWorkspaceFilter(boolean workspaceFilter)
public void setAbility(String ability)
ability
- an ability choosen from the PortalElement.getAllAbilities()
public String getAbility()
public void setDocumentKinds(String[] kinds)
kinds
- an array of document kind (e.g "pdf", "image", "spreadsheet", ...)public String[] getDocumentKinds()
public QueryHandler getQueryHandler()
public void setStart(int start)
public void setPageSize(int pageSize)
public void setPagerAll(boolean pagerAll)
public void setSort(String sort)
public void setReverse(boolean reverse)
public void setShowReadRightPubs(boolean v)
public boolean isHybrid()
public boolean showQueryStatusMessage()
public String getQueryStatusMessage(String userLang)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |