org.opencms.workplace.galleries
Class A_CmsGallery

java.lang.Object
  extended byorg.opencms.workplace.CmsWorkplace
      extended byorg.opencms.workplace.tools.CmsToolDialog
          extended byorg.opencms.workplace.CmsDialog
              extended byorg.opencms.workplace.galleries.A_CmsGallery
Direct Known Subclasses:
CmsDownloadGallery, CmsHtmlGallery, CmsImageGallery, CmsLinkGallery

public abstract class A_CmsGallery
extends CmsDialog

Provides constants, members and methods to generate a gallery popup window usable in editors or as widget.

Extend this class for every gallery type (e.g. image gallery) to build.

Since:
6.0.0
Version:
$Revision: 1.19 $
Author:
Andreas Zahner, Armen Markarian

Field Summary
static int ACTION_DELETE
          Value for the action: delete the gallery item.
static int ACTION_LIST
          Value for the action: list gallery items.
static int ACTION_SEARCH
          Value for the action: search gallery items.
static int ACTION_UPLOAD
          Value for the action: upload a new gallery item.
static String CSS_FILENAME
          The CSS filename used in the galleries.
static String DIALOG_DELETE
          Request parameter value for the action: delete the gallery item.
static String DIALOG_EDITPROPERTY
          Request parameter value for the action: edit property value.
static String DIALOG_LIST
          Request parameter value for the action: list gallery items.
static String DIALOG_SEARCH
          Request parameter value for the action: search gallery items.
static String DIALOG_TYPE
          The dialog type.
static String DIALOG_UPLOAD
          Request parameter value for the action: upload a new gallery item.
static String MODE_EDITOR
          Request parameter value for the dialog mode: editor.
static String MODE_VIEW
          Request parameter value for the dialog mode: view.
static String MODE_WIDGET
          Request parameter value for the dialog mode: widget.
static String OPEN_URI_SUFFIX
          The uri suffix for the gallery start page.
static String PARAM_DIALOGMODE
          Request parameter name for the dialog mode (widget or editor).
static String PARAM_FIELDID
          Request parameter name for the input field id.
static String PARAM_GALLERY_TYPENAME
          Request parameter name for the gallery type.
static String PARAM_GALLERYPATH
          Request parameter name for the gallery path.
static String PARAM_PAGE
          Request parameter name for the gallery list page.
static String PARAM_PROPERTYVALUE
          Request parameter name for the property value.
static String PARAM_RESOURCEPATH
          Request parameter name for the resourcepath.
static String PARAM_SEARCHWORD
          Request parameter name for the search word.
static String PATH_GALLERIES
          The galleries path in the workplace containing the JSPs.
 
Fields inherited from class org.opencms.workplace.CmsDialog
ACTION_CANCEL, ACTION_CLOSEPOPUP, ACTION_CLOSEPOPUP_SAVE, ACTION_CONFIRMED, ACTION_DEFAULT, ACTION_OK, ACTION_REPORT_BEGIN, ACTION_REPORT_END, ACTION_REPORT_UPDATE, ACTION_SET, ACTION_WAIT, ATTRIBUTE_THROWABLE, BUTTON_ADVANCED, BUTTON_BACK, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_CONTINUE, BUTTON_DETAILS, BUTTON_DISCARD, BUTTON_EDIT, BUTTON_OK, BUTTON_OK_NO_SUBMIT, BUTTON_SET, DIALOG_BACK, DIALOG_CANCEL, DIALOG_CONFIRMED, DIALOG_CONTINUE, DIALOG_INITIAL, DIALOG_OK, DIALOG_SET, DIALOG_WAIT, PARAM_ACTION, PARAM_CLOSELINK, PARAM_DIALOGTYPE, PARAM_ERRORSTACK, PARAM_FILE, PARAM_FRAMENAME, PARAM_ISPOPUP, PARAM_LOCK, PARAM_MESSAGE, PARAM_REDIRECT, PARAM_RESOURCE, PARAM_TARGET, PARAM_THREAD, PARAM_THREAD_HASNEXT, PARAM_TITLE, REPORT_BEGIN, REPORT_END, REPORT_UPDATE
 
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog
PARAM_PATH, PARAM_ROOT, PARAM_STYLE
 
Fields inherited from class org.opencms.workplace.CmsWorkplace
DEBUG, DEFAULT_LANGUAGE, DEFAULT_LOCALE, DIALOG_PATH_COMMON, FILE_DIALOG_CLOSE, FILE_DIALOG_SCREEN_CONFIRM, FILE_DIALOG_SCREEN_ERROR, FILE_DIALOG_SCREEN_ERRORPAGE, FILE_DIALOG_SCREEN_WAIT, FILE_EXPLORER_FILELIST, FILE_REPORT_OUTPUT, HTML_END, HTML_START, PATH_DIALOGS, PATH_WORKPLACE, REQUEST_ATTRIBUTE_MULTIPART, REQUEST_ATTRIBUTE_RELOADTREE, RFS_PATH_RESOURCES, SESSION_WORKPLACE_CLASS, TEMP_FILE_PREFIX, VFS_DIR_DEFAULTBODIES, VFS_DIR_TEMPLATES, VFS_PATH_GALLERIES, VFS_PATH_LOCALES, VFS_PATH_MODULES, VFS_PATH_RESOURCES, VFS_PATH_SYSTEM, VFS_PATH_VIEWS, VFS_PATH_WORKPLACE
 
Constructor Summary
A_CmsGallery()
          Public empty constructor, required for createInstance(String, CmsJspActionElement).
A_CmsGallery(CmsJspActionElement jsp)
          Public constructor with JSP action element.
 
Method Summary
 String applyButton()
          Generates an apply button for the gallery button bar.
 String buildGalleryButtonBar()
          Builds the html String for the buttonbar frame.
protected  String buildGalleryItemListHeadline()
          Generates the HTML for the gallery item list headline.
abstract  String buildGalleryItemPreview()
          Builds the html String for the preview frame.
 String buildGalleryItems()
          Builds the html for the gallery items list.
 String buildGallerySelectBox()
          Returns the html for the gallery select box.
 String buildPageSelectBox()
          Builds the HTML String for the page select box.
static A_CmsGallery createInstance(CmsJspActionElement jsp)
          Creates a new gallery instance.
static A_CmsGallery createInstance(String galleryTypeName, CmsJspActionElement jsp)
          Creates a new gallery instance of the given gallery type name.
 String deleteButton()
          Generates a delete button for the gallery button bar.
 String editPropertyButton()
          Generates an edit property button for the gallery button bar.
 boolean galleriesExists()
          Checks if at least one gallery exists.
 String getBodyOnload()
          Returns the javascript body onload call for the gallery head frame.
 String getCssPath()
          Return the path of the css file used in the galleries.
 CmsResource getCurrentResource()
          Returns the current resource in the gallery.
 List getGalleries()
          Returns a list of galleries which have the required gallery type id.
 List getGalleryItems()
          Returns a list of gallery items (resources) for the currently selected gallery and resource type id.
abstract  int getGalleryItemsTypeId()
          Returns the type id of the gallery items that should be listed.
 int getGalleryTypeId()
          Returns the resource type id of this gallery instance.
 String getGalleryTypeName()
          Returns the resource type name of this gallery instance.
 String getHeadFrameSetHeight()
          Returns the height of the head frameset.
 String getKeyTitle()
          Returns the key title of the current gallery view.
 String getNoGalleryErrorMsg()
          Returns the error message if no gallery could be found.
 String getParamDialogMode()
          Returns the current mode of the dialog.
 String getParamFieldId()
          Returns the input field ID when in widget mode.
 String getParamGalleryPath()
          Returns the path of the gallery to display.
 String getParamPage()
          Returns the current page to display in the item list.
 String getParamPropertyValue()
          Returns the property value parameter.
 String getParamResourcePath()
          Returns the resource path.
 String getParamSearchWord()
          Returns the search word to look up in the gallery items.
 String getPreviewBodyStyle()
          Returns the style for the body tag of the preview frame.
 String getPreviewDivStyle()
          Returns the style for the div tag of the preview frame.
protected  String getPropertyValue(CmsResource resource, String propertydefinition)
          Returns the value of the given property definition of the specified resource.
protected  List getSearchHits(List items)
          Returns a list of hit items.
protected  String getTargetOptions()
          Returns a HTML String representing the options of the target select box.
 String getWizardUrl()
          Returns the url for the upload applet or JSP dialog.
protected  boolean hasWritePermissions()
          Checks if the current user has required permissions to edit the current resource.
static void initGallery(CmsDialog wp)
          Initializes the gallery dialog before redirecting.
protected  void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)
          Analyzes the request for workplace parameters and adjusts the workplace settings accordingly.
 String previewButton()
          Generates a preview button for the gallery button bar.
 String previewRow(String column1, String column2)
          Generates a HTML table row with two columns.
 String publishButton()
          Generates a publish button for the gallery button bar.
 String searchButton()
          Builds the HTML for the search button.
 void setCurrentResource(CmsResource currentResource)
          Sets the current resource.
 void setParamDialogMode(String dialogMode)
          Sets the current mode of the dialog.
 void setParamFieldId(String fieldId)
          Sets the input field ID if in widget mode.
 void setParamGalleryPath(String galleryPath)
          Sets the path of the gallery to display.
 void setParamPage(String page)
          Sets the current page to display in the item list.
 void setParamPropertyValue(String paramPropertyValue)
          Sets the property value parameter.
 void setParamResourcePath(String resourcePath)
          Sets the resource path.
 void setParamSearchWord(String searchWord)
          Sets the search word to look up in the gallery items.
 String targetSelectBox()
          Generates a HTML String representing a target select box.
 String wizardButton()
          Builds the HTML for the wizard button.
protected  void writeTitleProperty(CmsResource res)
          Changes the value of the property title for the specified resource.
 
Methods inherited from class org.opencms.workplace.CmsDialog
actionCloseDialog, appendDelimiter, checkResourcePermissions, checkResourcePermissions, dialog, dialogBlock, dialogBlockEnd, dialogBlockStart, dialogButtonRow, dialogButtonRowEnd, dialogButtonRowStart, dialogButtons, dialogButtonsClose, dialogButtonsClose, dialogButtonsCloseDetails, dialogButtonsHtml, dialogButtonsOk, dialogButtonsOk, dialogButtonsOkCancel, dialogButtonsOkCancel, dialogButtonsOkCancelAdvanced, dialogButtonsSetOkCancel, dialogContent, dialogContentEnd, dialogContentStart, dialogEnd, dialogHead, dialogHorizontalSpacer, dialogRow, dialogRowEnd, dialogRowStart, dialogScriptSubmit, dialogSeparator, dialogSpacer, dialogStart, dialogStart, dialogSubheadline, dialogWhiteBox, dialogWhiteBoxEnd, dialogWhiteBoxStart, getAction, getAdministrationBackLink, getCancelAction, getDialogRealUri, getDialogUri, getParamAction, getParamCloseLink, getParamDialogtype, getParamFramename, getParamIsPopup, getParamMessage, getParamRedirect, getParamResource, getParamTitle, getState, htmlStart, htmlStart, htmlStart, htmlStartStyle, includeErrorpage, initCmsDialog, isPopup, pageHtml, pageHtml, setAction, setParamAction, setParamCloseLink, setParamDialogtype, setParamFramename, setParamIsPopup, setParamMessage, setParamRedirect, setParamResource, setParamTitle
 
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog
dialogTitle, getAdminTool, getCurrentToolPath, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamPath, setParamRoot, setParamStyle, useNewStyle
 
Methods inherited from class org.opencms.workplace.CmsWorkplace
addMessages, allParamsAsHidden, allParamsAsRequest, allParamValues, bodyEnd, bodyStart, bodyStart, buildSelect, buildSelect, button, button, buttonBar, buttonBar, buttonBarHorizontalLine, buttonBarLabel, buttonBarLabel, buttonBarLine, buttonBarLineSpacer, buttonBarSeparator, buttonBarSpacer, buttonBarStartTab, calendarIncludes, calendarIncludes, calendarInit, calendarInit, checkLock, checkLock, decodeParamValue, fillParamValues, getBroadcastMessageString, getCalendarDate, getCalendarJavaDateFormat, getCalendarLocalizedTime, getCms, getEncoding, getExplorerFileListFullUri, getFrameSource, getJsp, getLocale, getMacroResolver, getMessages, getMultiPartFileItems, getParameterMap, getResourceUri, getResourceUri, getSession, getSettings, getSkinUri, getStyleUri, getStyleUri, getStyleUri, htmlEnd, initMessages, initUserSettings, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, key, key, key, nullToEmpty, paramsAsHidden, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, paramValues, resolveMacros, sendCmsRedirect, setForwarded, shortKey, switchToCurrentProject, switchToTempProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_DELETE

public static final int ACTION_DELETE
Value for the action: delete the gallery item.

See Also:
Constant Field Values

ACTION_LIST

public static final int ACTION_LIST
Value for the action: list gallery items.

See Also:
Constant Field Values

ACTION_SEARCH

public static final int ACTION_SEARCH
Value for the action: search gallery items.

See Also:
Constant Field Values

ACTION_UPLOAD

public static final int ACTION_UPLOAD
Value for the action: upload a new gallery item.

See Also:
Constant Field Values

CSS_FILENAME

public static final String CSS_FILENAME
The CSS filename used in the galleries.

See Also:
Constant Field Values

DIALOG_DELETE

public static final String DIALOG_DELETE
Request parameter value for the action: delete the gallery item.

See Also:
Constant Field Values

DIALOG_EDITPROPERTY

public static final String DIALOG_EDITPROPERTY
Request parameter value for the action: edit property value.

See Also:
Constant Field Values

DIALOG_LIST

public static final String DIALOG_LIST
Request parameter value for the action: list gallery items.

See Also:
Constant Field Values

DIALOG_SEARCH

public static final String DIALOG_SEARCH
Request parameter value for the action: search gallery items.

See Also:
Constant Field Values

DIALOG_TYPE

public static final String DIALOG_TYPE
The dialog type.

See Also:
Constant Field Values

DIALOG_UPLOAD

public static final String DIALOG_UPLOAD
Request parameter value for the action: upload a new gallery item.

See Also:
Constant Field Values

MODE_EDITOR

public static final String MODE_EDITOR
Request parameter value for the dialog mode: editor.

See Also:
Constant Field Values

MODE_VIEW

public static final String MODE_VIEW
Request parameter value for the dialog mode: view.

See Also:
Constant Field Values

MODE_WIDGET

public static final String MODE_WIDGET
Request parameter value for the dialog mode: widget.

See Also:
Constant Field Values

OPEN_URI_SUFFIX

public static final String OPEN_URI_SUFFIX
The uri suffix for the gallery start page.

See Also:
Constant Field Values

PARAM_DIALOGMODE

public static final String PARAM_DIALOGMODE
Request parameter name for the dialog mode (widget or editor).

See Also:
Constant Field Values

PARAM_FIELDID

public static final String PARAM_FIELDID
Request parameter name for the input field id.

See Also:
Constant Field Values

PARAM_GALLERY_TYPENAME

public static final String PARAM_GALLERY_TYPENAME
Request parameter name for the gallery type.

See Also:
Constant Field Values

PARAM_GALLERYPATH

public static final String PARAM_GALLERYPATH
Request parameter name for the gallery path.

See Also:
Constant Field Values

PARAM_PAGE

public static final String PARAM_PAGE
Request parameter name for the gallery list page.

See Also:
Constant Field Values

PARAM_PROPERTYVALUE

public static final String PARAM_PROPERTYVALUE
Request parameter name for the property value.

See Also:
Constant Field Values

PARAM_RESOURCEPATH

public static final String PARAM_RESOURCEPATH
Request parameter name for the resourcepath.

See Also:
Constant Field Values

PARAM_SEARCHWORD

public static final String PARAM_SEARCHWORD
Request parameter name for the search word.

See Also:
Constant Field Values

PATH_GALLERIES

public static final String PATH_GALLERIES
The galleries path in the workplace containing the JSPs.

See Also:
Constant Field Values
Constructor Detail

A_CmsGallery

public A_CmsGallery()
Public empty constructor, required for createInstance(String, CmsJspActionElement).


A_CmsGallery

public A_CmsGallery(CmsJspActionElement jsp)
Public constructor with JSP action element.

Parameters:
jsp - an initialized JSP action element
Method Detail

createInstance

public static A_CmsGallery createInstance(CmsJspActionElement jsp)
Creates a new gallery instance.

Parameters:
jsp - an initialized JSP action element
Returns:
a new gallery instance

createInstance

public static A_CmsGallery createInstance(String galleryTypeName,
                                          CmsJspActionElement jsp)
Creates a new gallery instance of the given gallery type name.

Parameters:
galleryTypeName - the gallery type name to create the instance for
jsp - an initialized JSP action element
Returns:
a new gallery instance of the given gallery type name

initGallery

public static void initGallery(CmsDialog wp)
Initializes the gallery dialog before redirecting.

Parameters:
wp - the workplace object

applyButton

public String applyButton()
Generates an apply button for the gallery button bar.

The default apply button calls the javascript function link(resourcePath, input.title.value, input.title.value). Overwrite this method if necessary in the specified gallery class.

Returns:
an apply button for the gallery button bar

buildGalleryButtonBar

public String buildGalleryButtonBar()
Builds the html String for the buttonbar frame.

Returns:
the html String for the buttonbar frame

buildGalleryItemPreview

public abstract String buildGalleryItemPreview()
Builds the html String for the preview frame.

Returns:
the html String for the preview frame

buildGalleryItems

public String buildGalleryItems()
Builds the html for the gallery items list.

Returns:
the html for the gallery items list

buildGallerySelectBox

public String buildGallerySelectBox()
Returns the html for the gallery select box.

Returns:
the html for the gallery select box

buildPageSelectBox

public String buildPageSelectBox()
Builds the HTML String for the page select box.

Returns:
the HTML String for the page select box

deleteButton

public String deleteButton()
Generates a delete button for the gallery button bar.

This button is disabled if the urrent user has no write permissions.

Overwrite this method if necessary in the specified gallery class.

Returns:
a delete button for the gallery button bar

editPropertyButton

public String editPropertyButton()
Generates an edit property button for the gallery button bar.

If the current resource is not 'editable' a disabled button will be returned.

Overwrite this method if necessary in the specified gallery class.

Returns:
an edit property button for the gallery button bar

galleriesExists

public boolean galleriesExists()
Checks if at least one gallery exists.

Returns:
true if at least one gallery exists, otherwise false

getBodyOnload

public String getBodyOnload()
Returns the javascript body onload call for the gallery head frame.

Returns:
the javascript body onload call for the gallery head frame

getCssPath

public String getCssPath()
Return the path of the css file used in the galleries.

Returns:
the path of the css file used in the galleries

getCurrentResource

public CmsResource getCurrentResource()
Returns the current resource in the gallery.

Returns:
the current resource in the gallery

getGalleries

public List getGalleries()
Returns a list of galleries which have the required gallery type id.

Returns:
a list of galleries

getGalleryItems

public List getGalleryItems()
Returns a list of gallery items (resources) for the currently selected gallery and resource type id.

Returns:
a list of gallery items (resources)

getGalleryItemsTypeId

public abstract int getGalleryItemsTypeId()
Returns the type id of the gallery items that should be listed.

In case of downloadgallery use '-1' to list all resources excluding folders.

Returns:
the type id of the gallery items that should be listed

getGalleryTypeId

public int getGalleryTypeId()
Returns the resource type id of this gallery instance.

Returns:
the resource type id of this gallery instance

getGalleryTypeName

public String getGalleryTypeName()
Returns the resource type name of this gallery instance.

Returns:
the resource type name of this gallery instance

getHeadFrameSetHeight

public String getHeadFrameSetHeight()
Returns the height of the head frameset.

Returns:
the height of the head frameset

getKeyTitle

public String getKeyTitle()
Returns the key title of the current gallery view.

Returns:
the key title of the current gallery view

getNoGalleryErrorMsg

public String getNoGalleryErrorMsg()
Returns the error message if no gallery could be found.

Returns:
the error message if no gallery could be found

getParamDialogMode

public String getParamDialogMode()
Returns the current mode of the dialog.

This is necessary to distinguish between widget mode, view mode and editor mode.

Returns:
the current mode of the dialog

getParamFieldId

public String getParamFieldId()
Returns the input field ID when in widget mode.

Returns:
the input field ID

getParamGalleryPath

public String getParamGalleryPath()
Returns the path of the gallery to display.

Returns:
the path of the gallery to display

getParamPage

public String getParamPage()
Returns the current page to display in the item list.

Returns:
the current page to display in the item list

getParamPropertyValue

public String getParamPropertyValue()
Returns the property value parameter.

Returns:
the property value parameter

getParamResourcePath

public String getParamResourcePath()
Returns the resource path.

Returns:
the resource path

getParamSearchWord

public String getParamSearchWord()
Returns the search word to look up in the gallery items.

Returns:
the search word to look up in the gallery items

getPreviewBodyStyle

public String getPreviewBodyStyle()
Returns the style for the body tag of the preview frame.

Returns:
the style for the body tag of the preview frame

getPreviewDivStyle

public String getPreviewDivStyle()
Returns the style for the div tag of the preview frame.

Returns:
the style for the div tag of the preview frame

getWizardUrl

public String getWizardUrl()
Returns the url for the upload applet or JSP dialog.

Returns:
the url for the upload applet or JSP dialog

previewButton

public String previewButton()
Generates a preview button for the gallery button bar.

Overwrite this method if neccessary in the specified gallery class.

Returns:
a preview button for the gallery button bar

previewRow

public String previewRow(String column1,
                         String column2)
Generates a HTML table row with two columns.

The first column includes the given key as localized string, the second column includes the value of the given property.

Parameters:
column1 - the string value for the first column
column2 - the string value for the second column
Returns:
a HTML table row with two columns

publishButton

public String publishButton()
Generates a publish button for the gallery button bar.

This button is disabled if the current user has no publish rights.

Returns:
a publish button for the gallery button bar

searchButton

public String searchButton()
Builds the HTML for the search button.

Returns:
the HTML for the search button

setCurrentResource

public void setCurrentResource(CmsResource currentResource)
Sets the current resource.

Parameters:
currentResource - the current resource to set

setParamDialogMode

public void setParamDialogMode(String dialogMode)
Sets the current mode of the dialog.

This is necessary to distinguish between widget mode and editor mode.

Parameters:
dialogMode - the current mode of the dialog

setParamFieldId

public void setParamFieldId(String fieldId)
Sets the input field ID if in widget mode.

Parameters:
fieldId - the input field ID

setParamGalleryPath

public void setParamGalleryPath(String galleryPath)
Sets the path of the gallery to display.

Parameters:
galleryPath - the path of the gallery to display

setParamPage

public void setParamPage(String page)
Sets the current page to display in the item list.

Parameters:
page - the current page to display in the item list

setParamPropertyValue

public void setParamPropertyValue(String paramPropertyValue)
Sets the property value parameter.

Parameters:
paramPropertyValue - the property value parameter to set

setParamResourcePath

public void setParamResourcePath(String resourcePath)
Sets the resource path.

Parameters:
resourcePath - the resource path to set

setParamSearchWord

public void setParamSearchWord(String searchWord)
Sets the search word to look up in the gallery items.

Parameters:
searchWord - the search word to look up in the gallery items

targetSelectBox

public String targetSelectBox()
Generates a HTML String representing a target select box.

Returns:
a HTML String representing a target select box

wizardButton

public String wizardButton()
Builds the HTML for the wizard button.

Returns:
the HTML for the wizard button

buildGalleryItemListHeadline

protected String buildGalleryItemListHeadline()
Generates the HTML for the gallery item list headline.

Returns:
the HTML for the gallery item list headline

getPropertyValue

protected String getPropertyValue(CmsResource resource,
                                  String propertydefinition)
Returns the value of the given property definition of the specified resource.

If the property value is null, '[resourcename]' will be returned instead.

Parameters:
resource - the cms resource
propertydefinition - the property definition
Returns:
the value of the title property or '[resourcename]' if property value was null

getSearchHits

protected List getSearchHits(List items)
Returns a list of hit items.

Searches by the title property value and resource name.

Parameters:
items - a list of resource items
Returns:
a list of hit items

getTargetOptions

protected String getTargetOptions()
Returns a HTML String representing the options of the target select box.

Returns:
a HTML String representing the options of the target select box

hasWritePermissions

protected boolean hasWritePermissions()
                               throws CmsException
Checks if the current user has required permissions to edit the current resource.

Returns:
true if the required permissions are satisfied
Throws:
CmsException - if something goes wrong

initWorkplaceRequestValues

protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
                                          HttpServletRequest request)
Description copied from class: CmsWorkplace
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly.

Overrides:
initWorkplaceRequestValues in class CmsDialog
See Also:
CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)

writeTitleProperty

protected void writeTitleProperty(CmsResource res)
Changes the value of the property title for the specified resource.

Parameters:
res - the resource to change the property value