|
||||||||||
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.media.MediaBrowserHandler
public class MediaBrowserHandler
This handler controls the MediaBrowser.
Field Summary | |
---|---|
protected String |
catMode
|
protected String[] |
cids
|
protected String |
currentMedia
|
protected boolean |
isListView
|
protected ArrayList<String> |
mediaList
|
protected QueryHandler |
queryHandler
|
protected QueryResultSet |
resultSet
|
static String |
REVISION
|
protected boolean |
sortReverse
|
protected String |
sortType
|
protected int |
start
|
protected static ArrayList<String> |
staticMediaList
|
protected String |
text
|
protected boolean |
workspaceFilter
|
protected ArrayList<Workspace> |
workspaceList
|
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 | |
---|---|
MediaBrowserHandler()
Bean constructor. |
Method Summary | |
---|---|
void |
computeFileDocumentSet()
Compute the FileDocument result set to display in this media browser using the option already given. |
Set<Category> |
getCategorySet()
Retrieve the current categories used for refinement in this media browser. |
String |
getCatMode()
Retrieve the current mode used for category refinement in this media browser. |
String |
getCurrentMedia()
Retrieve the current media name displayed by this media browser. |
static String |
getMedia(QueryHandler qh)
Retrieve the media selected in the specified MediaBrowser's query. |
ArrayList<String> |
getMediaList()
Retrieve the media list the media browser should display, as declared using property "media-browser.media-list". |
String |
getMediaURL(String media)
Retrieve an url that can be used to display thie media browser using a new media (the given one). |
QueryResultSet |
getResultSet()
Retrieve the QueryResultSet of FileDocument we are currently working on. |
String |
getText()
Retrieve the current text used for refinement in this media browser. |
ArrayList<Workspace> |
getWorkspaceList()
Retrieve the workspace list in which the logged member can work. |
boolean |
isCurrentMedia(String media)
Check if the given media is the same as the current one displayed by this media browser. |
boolean |
isListView()
Retrieve the current view mode of this media browser. |
static boolean |
isMediaBrowserQuery(QueryHandler qh)
Check if the specified QueryHandler is a MediaBrowser's query. |
boolean |
isWorkspaceFilter()
Check if workspace filter is enabled or not. |
static void |
reloadProperties()
|
void |
setCatMode(String catMode)
Set the mode to use when dealing with categories refinement in this MediaBrowser |
void |
setCids(String[] cids)
Set the categories id used to refine FileDocument displayed in this MediaBrowser |
void |
setListView(boolean activate)
Set the current view mode of this Media Browser to list view |
void |
setMedia(String media)
Set the media to display for this MediaBrowser. |
void |
setMedias(String[] medias)
Set the medias authorized to be viewed for this MediaBrowser |
void |
setReverse(boolean reverse)
|
void |
setSort(String sort)
|
void |
setStart(int start)
|
void |
setText(String text)
Set the text to use to refine FileDocument displayed in this MediaBrowser |
void |
setWorkspaceFilter(boolean workspaceFilter)
Set whether to refine using current workspace or not. |
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
protected static ArrayList<String> staticMediaList
protected ArrayList<String> mediaList
protected String currentMedia
protected ArrayList<Workspace> workspaceList
protected boolean isListView
protected String catMode
protected String[] cids
protected String text
protected boolean workspaceFilter
protected QueryHandler queryHandler
protected QueryResultSet resultSet
protected int start
protected String sortType
protected boolean sortReverse
Constructor Detail |
---|
public MediaBrowserHandler()
Method Detail |
---|
public static void reloadProperties()
public boolean validate() throws IOException
IOException
public void computeFileDocumentSet()
public boolean isListView()
public ArrayList<String> getMediaList()
public String getCurrentMedia()
getMediaList()
public boolean isCurrentMedia(String media)
media
- the media to check
public String getMediaURL(String media)
media
- the new media to use
public ArrayList<Workspace> getWorkspaceList()
public String getCatMode()
public Set<Category> getCategorySet()
public String getText()
public boolean isWorkspaceFilter()
public QueryResultSet getResultSet()
public void setListView(boolean activate)
activate
- true to set mediabrowser to list view, false otherwisepublic void setMedias(String[] medias)
medias
- an array of medias (from "all", "image", "video" and "audio")public void setMedia(String media)
media
- a media (from "all","image","video" or "audio")public void setCatMode(String catMode)
catMode
- the cat mode ("or" or "and")QueryHandler.setCatMode(String)
public void setCids(String[] cids)
cids
- the category idspublic void setText(String text)
text
- the text to searchpublic void setWorkspaceFilter(boolean workspaceFilter)
workspaceFilter
- true to refine, false to use all workspacepublic void setStart(int start)
public void setSort(String sort)
public void setReverse(boolean reverse)
public static boolean isMediaBrowserQuery(QueryHandler qh)
MediaBrowserHandler.java
in "work/mediaBrowser.jsp"
.
qh
- the QueryHandler to check
public static String getMedia(QueryHandler qh)
"media-browser.media-list"
qh
- the QueryHandler to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |