|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.workplace.CmsHelperMastertemplates
Helper class to receive all mastertemplates that are currently in the system.
| Constructor Summary | |
CmsHelperMastertemplates()
|
|
| Method Summary | |
static boolean |
checkVisible(CmsObject cms,
CmsResource res)
Check if this template should be displayed in the selectbox (this is only true if the visible flag is set for the current user or if he is admin). |
static void |
getTemplateElements(CmsObject cms,
String subFolder,
Vector names,
Vector values)
Gets the templates displayed in the template select box. |
static Integer |
getTemplates(CmsObject cms,
Vector names,
Vector values,
String currentTemplate)
Gets the templates displayed in the template select box. |
static Integer |
getTemplates(CmsObject cms,
Vector names,
Vector values,
String currentTemplate,
int defaultReturnValue)
Gets the templates displayed in the template select box. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsHelperMastertemplates()
| Method Detail |
public static Integer getTemplates(CmsObject cms,
Vector names,
Vector values,
String currentTemplate)
throws CmsException
cms - The CmsObject.names - Will be filled with the display names of found the templates.values - Will be filled with the file names of the found templates.currentTemplate - The file name of the currently selected template.
Throws - CmsException if something goes wrong.
CmsException
public static Integer getTemplates(CmsObject cms,
Vector names,
Vector values,
String currentTemplate,
int defaultReturnValue)
throws CmsException
cms - The CmsObject.names - Will be filled with the display names of found the templates.values - Will be filled with the file names of the found templates.currentTemplate - The file name of the currently selected template.defaultReturnValue - The index used if no currentTemplate was found.
Throws - CmsException if something goes wrong.
CmsException
public static void getTemplateElements(CmsObject cms,
String subFolder,
Vector names,
Vector values)
throws CmsException
cms - The CmsObject.subFolder - The sub folder name in the modules to look for information.names - Will be filled with the display names of found the templates.values - Will be filled with the file names of the found templates.
Throws - CmsException if something goes wrong.
CmsException
public static boolean checkVisible(CmsObject cms,
CmsResource res)
throws CmsException
cms - The CmsObjectres - The resource to be checked.
CmsException - if something goes wrong.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||