|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.publicationTemplate.PublicationTemplateManager
public class PublicationTemplateManager
The PublicationTemplateManager manages all the PublicationTemplate for all the Job'Peas. It is a singleton.
Field Summary | |
---|---|
static String |
defaultTemplateDir
|
static String |
templateDir
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String templateDir
public static String defaultTemplateDir
Method Detail |
---|
public static PublicationTemplateManager getInstance()
public static String makePath(String dirName, String fileName)
public GenericRecordSet addDynamicPublicationTemplate(String externalId, String templateFileName) throws PublicationTemplateException
PublicationTemplateException
public PublicationTemplate getPublicationTemplate(String externalId) throws PublicationTemplateException
PublicationTemplateException
public PublicationTemplate getPublicationTemplate(String externalId, String templateFileName) throws PublicationTemplateException
externalId
- templateFileName
-
PublicationTemplateException
public void removePublicationTemplate(String externalId) throws PublicationTemplateException
externalId
-
PublicationTemplateException
public PublicationTemplate loadPublicationTemplate(String xmlFileName) throws PublicationTemplateException
xmlFileName
- the xml file name that contains publication template definition
PublicationTemplateException
public void savePublicationTemplate(PublicationTemplate template) throws PublicationTemplateException, CryptoException
template
- the PublicationTemplate to save
PublicationTemplateException
CryptoException
FormException
public List<PublicationTemplate> getPublicationTemplates(boolean onlyVisibles) throws PublicationTemplateException
onlyVisibles
- only visible templates boolean
PublicationTemplateException
public List<PublicationTemplate> getPublicationTemplates() throws PublicationTemplateException
PublicationTemplateException
public List<PublicationTemplate> getPublicationTemplates(GlobalContext globalContext) throws PublicationTemplateException
globalContext
- componentName It can be null. It is usefull when componentId is not defined.
PublicationTemplateException
public boolean isPublicationTemplateVisible(String templateName, GlobalContext globalContext) throws PublicationTemplateException
PublicationTemplateException
public List<PublicationTemplate> getSearchablePublicationTemplates() throws PublicationTemplateException
PublicationTemplateException
public List<PublicationTemplate> getCryptedPublicationTemplates() throws PublicationTemplateException
PublicationTemplateException
public void removePublicationTemplateFromCaches(String fileName)
fileName
- the file name of the template to remove from cacheprotected void registerForRenewingContentCipher()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |