|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.imcode.imcms.api.TemplateService
public class TemplateService
| Method Summary | |
|---|---|
TemplateGroup[] |
getAllTemplateGroups()
Get all the template groups found in the system. |
Template[] |
getPossibleTemplates(TextDocument textDocument)
Get an array of all templates that may be used for a TextDocument. |
Template |
getTemplate(java.lang.String templateName)
|
TemplateGroup |
getTemplateGroupById(int templateGroupId)
|
Template[] |
getTemplates(TemplateGroup templateGroup)
Get an array of all the Templates in a TemplateGroup. |
TemplateGroup[] |
getTemplatesGroups(TextDocument textDocument)
Get a list of all template groups the calling user has right to see for this document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public TemplateGroup[] getTemplatesGroups(TextDocument textDocument)
throws NoPermissionException
textDocument - The textDocument for witch we would like to see the possible groups.
NoPermissionException - If the current user isn't superadminpublic TemplateGroup[] getAllTemplateGroups()
public Template[] getTemplates(TemplateGroup templateGroup)
throws NoPermissionException
templateGroup - The wanted TemplateGroup
NoPermissionException - If the current user doesn't have permission to list the templates in the templategroup.
public Template[] getPossibleTemplates(TextDocument textDocument)
throws NoPermissionException
textDocument - The TextDocument
NoPermissionExceptionpublic Template getTemplate(java.lang.String templateName)
public TemplateGroup getTemplateGroupById(int templateGroupId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||