|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.template.A_CmsTemplate
|
+--com.opencms.template.CmsXmlTemplate
|
+--com.opencms.workplace.CmsWorkplaceDefault
|
+--com.opencms.defaults.A_CmsBackoffice
Abstract class for generic backoffice display. It automatically generates the
| Field Summary | |
protected static String[] |
C_ACCESS_FLAGS
|
protected static int |
C_DEFAULT_PERMISSIONS
Default value of permission |
static int |
C_NO_ACCESS
|
static int |
C_NOT_LOCKED
|
| Fields inherited from class com.opencms.template.CmsXmlTemplate |
C_BODY_ELEMENT, C_DEBUG, C_FRAME_SELECTOR, m_cache |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Constructor Summary | |
A_CmsBackoffice()
|
|
| Method Summary | |
Object |
checkbox(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
user-method to create a checkbox with the according hidden field |
abstract String |
getBackofficeUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the backoffice url of the module. |
byte[] |
getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentCopy(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
protected Object |
getContentDefinition(CmsObject cms,
Class cdClass)
Gets the content definition class method constructor |
protected Object |
getContentDefinition(CmsObject cms,
Class cdClass,
Integer id)
Gets the content definition class method constructor |
protected Object |
getContentDefinition(CmsObject cms,
Class cdClass,
String id)
Gets the content definition class method constructor |
abstract Class |
getContentDefinitionClass()
Gets the content definition class |
byte[] |
getContentDelete(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentDirectPublish(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
String |
getContentEdit(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
A_CmsContentDefinition cd,
String elementName,
Enumeration keys,
Hashtable parameters,
String templateSelector)
Gets the content of a edited entry form. |
byte[] |
getContentEdit(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a edited entry form. |
byte[] |
getContentHistory(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
String |
getContentNew(CmsObject cms,
CmsXmlWpTemplateFile template,
A_CmsContentDefinition cd,
String elementName,
Enumeration keys,
Hashtable parameters,
String templateSelector)
The new version of the getContentNew methos. |
byte[] |
getContentNew(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
The old version of the getContentNew methos. |
byte[] |
getContentPermissions(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
byte[] |
getContentUndelete(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
Gets the content of a given template file. |
abstract String |
getCreateUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the create url of the module. |
String |
getDeleteUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the edit url of the module. |
abstract String |
getEditUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the edit url of the module. |
Integer |
getFilter(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
This method creates the selectbox in the head-frame |
Integer |
getHistory(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
Gets all versions of the resource from the history. |
String |
getHistoryUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the history url of the module. |
String |
getPreviewUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the preview url of the module. |
String |
getPublishUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the publish url of the module. |
Integer |
getSelectedPage(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
This method creates the selectbox with all avaiable Pages to select from. |
String |
getSetupUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the setup url of the module. |
String |
getUndeleteUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the undelete url of the module. |
String |
getUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
Gets the redirect url of the module. |
Object |
handleCheckbox(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
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 |
String |
readSaveGroupName(CmsObject cms,
int id)
|
String |
readSaveUserName(CmsObject cms,
int id)
|
| Methods inherited from class com.opencms.workplace.CmsWorkplaceDefault |
bubblesort, checkJavaProperty, checkPort, doNotShow, getCacheDirectives, getConfigFile, getConstantSelectEntries, getFonts, getKey, getLastUrl, getOwnTemplateFile, isAdmin, isAdminFalse, isCacheable, isNotOnlineProject, isOnlineProject, isProjectManager, isStreamable, isTheAdminUser, picsUrl, resourcesUri, scriptsUri, startProcessing, userName |
| Methods inherited from class com.opencms.template.A_CmsTemplate |
debugPrint, isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.opencms.template.I_CmsTemplate |
isExportable, isProxyPrivateCacheable, isProxyPublicCacheable |
| Field Detail |
public static int C_NOT_LOCKED
public static int C_NO_ACCESS
protected static final int C_DEFAULT_PERMISSIONS
protected static final String[] C_ACCESS_FLAGS
| Constructor Detail |
public A_CmsBackoffice()
| Method Detail |
public abstract String getBackofficeUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public abstract String getCreateUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public abstract String getEditUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getDeleteUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getUndeleteUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getPublishUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getHistoryUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getSetupUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public String getPreviewUrl(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws Exception
Exception
public byte[] getContent(CmsObject cms,
String templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
getContent in interface I_CmsTemplategetContent in class CmsXmlTemplatecms - A_CmsObject Object for accessing system resourcestemplateFile - Filename of the template fileelementName - not used here.parameters - not used here.templateSelector - template section that should be processed.
CmsExceptionCmsXmlTemplate.getContent(CmsObject, String, String, Hashtable, String)public abstract Class getContentDefinitionClass()
protected Object getContentDefinition(CmsObject cms,
Class cdClass,
Integer id)
protected Object getContentDefinition(CmsObject cms,
Class cdClass)
protected Object getContentDefinition(CmsObject cms,
Class cdClass,
String id)
public String readSaveUserName(CmsObject cms,
int id)
cms - A CmsObject to read the user withid - The id of the user to read
public String readSaveGroupName(CmsObject cms,
int id)
cms - A CmsObject to read the group withid - The id of the group to read
public byte[] getContentDelete(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the delete dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public byte[] getContentUndelete(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the delete dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public byte[] getContentCopy(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the delete dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public byte[] getContentDirectPublish(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the direct publish dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public byte[] getContentHistory(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the history dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public Integer getHistory(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
throws CmsException
The given vectors names and values will
be filled with the appropriate information to be used for building
a select box.
cms - CmsObject Object for accessing system resources.names - Vector to be filled with the appropriate values in this method.values - Vector to be filled with the appropriate values in this method.parameters - Hashtable containing all user parameters (not used here).
CmsException
public byte[] getContentPermissions(CmsObject cms,
CmsXmlWpTemplateFile template,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
While processing the template file the table entry
entryTitle will be displayed in the delete dialog
cms - A_CmsObject Object for accessing system resourceselementName - not used hereparameters - get the parameters action for the button activity
and id for the used content definition instance objecttemplateSelector - template section that should be processed.
CmsException
public byte[] getContentNew(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
CmsException
public String getContentNew(CmsObject cms,
CmsXmlWpTemplateFile template,
A_CmsContentDefinition cd,
String elementName,
Enumeration keys,
Hashtable parameters,
String templateSelector)
throws CmsException
CmsException
public byte[] getContentEdit(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
String elementName,
Hashtable parameters,
String templateSelector)
throws CmsException
CmsException
public String getContentEdit(CmsObject cms,
CmsXmlWpTemplateFile templateFile,
A_CmsContentDefinition cd,
String elementName,
Enumeration keys,
Hashtable parameters,
String templateSelector)
throws CmsException
CmsExceptionpublic boolean isExtendedList()
public Integer getFilter(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
throws CmsException
CmsException
public Object handleCheckbox(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws CmsException
CmsException
public Integer getSelectedPage(CmsObject cms,
CmsXmlLanguageFile lang,
Vector names,
Vector values,
Hashtable parameters)
throws CmsException
CmsException
public Object checkbox(CmsObject cms,
String tagcontent,
A_CmsXmlContent doc,
Object userObject)
throws CmsException
cms - the CmsObjecttagcontent - params of the user-methoddoc - userObject -
CmsException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||