Abstract class for generic backoffice display. It automatically
generates the
using the content definition class defined by the getContentDefinition method.
The methods and data provided by the content definition class
is accessed by reflection. This way it is possible to re-use
this class for any content definition class, that just has
to extend the A_CmsContentDefinition class!
Creation date: (27.10.00 10:04:42)
|
Method Summary |
java.lang.Object |
checkbox(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
user-method to create a checkbox with the according hidden field |
private void |
fillContentDefinition(com.opencms.file.CmsObject cms,
A_CmsContentDefinition contentDefinition,
java.util.Hashtable parameters,
java.util.Hashtable setMethods)
This method automatically fills the content definition with the values read from the template. |
private int |
getAccessValue(java.util.Hashtable parameters)
get the accessFlags from the template |
abstract java.lang.String |
getBackofficeUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the backoffice url of the module. |
byte[] |
getContent(com.opencms.file.CmsObject cms,
java.lang.String templateFile,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
private java.lang.String |
getContentButtonsInternal(com.opencms.file.CmsObject cms,
A_CmsContentDefinition cd,
com.opencms.core.I_CmsSession session,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.util.Hashtable parameters,
java.lang.String templateSelector,
java.lang.String action,
java.lang.String error)
This method checks the three function buttons on the backoffice edit/new template. |
byte[] |
getContentCopy(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
protected java.lang.Object |
getContentDefinition(com.opencms.file.CmsObject cms,
java.lang.Class cdClass)
Gets the content definition class method constructor |
protected java.lang.Object |
getContentDefinition(com.opencms.file.CmsObject cms,
java.lang.Class cdClass,
java.lang.Integer id)
Gets the content definition class method constructor |
protected java.lang.Object |
getContentDefinition(com.opencms.file.CmsObject cms,
java.lang.Class cdClass,
java.lang.String id)
Gets the content definition class method constructor |
abstract java.lang.Class |
getContentDefinitionClass()
Gets the content definition class |
byte[] |
getContentDelete(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentDirectPublish(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
java.lang.String |
getContentEdit(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile templateFile,
A_CmsContentDefinition cd,
java.lang.String elementName,
java.util.Enumeration keys,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a edited entry form. |
byte[] |
getContentEdit(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile templateFile,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a edited entry form. |
private byte[] |
getContentEditInternal(com.opencms.file.CmsObject cms,
java.lang.String id,
A_CmsContentDefinition cd,
com.opencms.core.I_CmsSession session,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
This method contains the code used by the getContent method when the edit form of the backoffice is processed. |
private byte[] |
getContentExtendedList(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
private byte[] |
getContentHead(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentHistory(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
private byte[] |
getContentList(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
private byte[] |
getContentLock(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
private java.lang.Object |
getContentMethodObject(com.opencms.file.CmsObject cms,
java.lang.Class cdClass,
java.lang.String method,
java.lang.Class[] paramClasses,
java.lang.Object[] params)
gets the content definition class method object |
java.lang.String |
getContentNew(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
A_CmsContentDefinition cd,
java.lang.String elementName,
java.util.Enumeration keys,
java.util.Hashtable parameters,
java.lang.String templateSelector)
The new version of the getContentNew methos. |
byte[] |
getContentNew(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile templateFile,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
The old version of the getContentNew methos. |
private byte[] |
getContentNewInternal(com.opencms.file.CmsObject cms,
java.lang.String id,
A_CmsContentDefinition cd,
com.opencms.core.I_CmsSession session,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
This method contains the code used by the getContent method when the new form of the backoffice is processed. |
byte[] |
getContentPermissions(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentUndelete(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.String elementName,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Gets the content of a given template file. |
abstract java.lang.String |
getCreateUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the create url of the module. |
java.lang.String |
getDeleteUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the edit url of the module. |
abstract java.lang.String |
getEditUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the edit url of the module. |
java.lang.Integer |
getFilter(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlLanguageFile lang,
java.util.Vector names,
java.util.Vector values,
java.util.Hashtable parameters)
This method creates the selectbox in the head-frame |
private java.util.Vector |
getFilterMethods(com.opencms.file.CmsObject cms)
Get the all available filter methods. |
private java.util.Vector |
getGetMethods(A_CmsContentDefinition contentDefinition)
This methods collects all "getXYZ" methods of the actual content definition. |
java.lang.Integer |
getHistory(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlLanguageFile lang,
java.util.Vector names,
java.util.Vector values,
java.util.Hashtable parameters)
Gets all versions of the resource from the history. |
java.lang.String |
getHistoryUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the history url of the module. |
java.lang.String |
getPreviewUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the preview url of the module. |
java.lang.String |
getPublishUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the publish url of the module. |
java.lang.Integer |
getSelectedPage(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlLanguageFile lang,
java.util.Vector names,
java.util.Vector values,
java.util.Hashtable parameters)
This method creates the selectbox with all avaiable Pages to select from. |
private java.util.Hashtable |
getSetMethods(A_CmsContentDefinition contentDefinition)
This methods collects all "setXYZ" methods of the actual content definition. |
java.lang.String |
getSetupUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the setup url of the module. |
private java.lang.String |
getStyle(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.Object entryObject)
Return the format for the list output. |
private java.lang.String |
getTemplateSelector(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.util.Hashtable parameters,
java.lang.String templateSelector)
Checks how many template selectors are available in the backoffice template and selects the
correct one. |
java.lang.String |
getUndeleteUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the undelete url of the module. |
java.lang.String |
getUrl(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
Gets the redirect url of the module. |
java.lang.Object |
handleCheckbox(com.opencms.file.CmsObject cms,
java.lang.String tagcontent,
com.opencms.template.A_CmsXmlContent doc,
java.lang.Object userObject)
User method that handles a checkbox in the input form of the backoffice. |
boolean |
isExtendedList()
Checks if the extended list should be used for displaying the cd |
java.lang.String |
readSaveGroupName(com.opencms.file.CmsObject cms,
int id)
|
java.lang.String |
readSaveUserName(com.opencms.file.CmsObject cms,
int id)
|
private void |
setAccessValue(com.opencms.workplace.CmsXmlWpTemplateFile template,
int accessFlags)
Set the accessFlags in the template |
private void |
setContextMenu(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.Object entryObject)
Set the context menu for the current list entry. |
private void |
setDatablocks(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
A_CmsContentDefinition contentDefinition,
java.util.Vector methods)
This method austomatically fills all datablocks in the template that fit to a special name scheme. |
private void |
setExtendedLockstates(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.Class cdClass,
java.lang.Object entryObject,
java.util.Hashtable parameters)
Set the correct lockstates in the list output for the extended list. |
private void |
setGroupSelectbox(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
int group)
Set the groups in the template |
private void |
setLockstates(com.opencms.file.CmsObject cms,
com.opencms.workplace.CmsXmlWpTemplateFile template,
java.lang.Class cdClass,
java.lang.Object entryObject,
java.util.Hashtable parameters)
Set the correct lockstates in the list output. |
|