public interface ChannelSourceProvider extends IDProvider
template set
) source content.
Example usage:
finalTemplateStoreRoot
templatestore = (TemplateStoreRoot
)userService.getStore
(Store.Type.TEMPLATESTORE
, false); ChannelSourceProvider csp = templatestore.getPageTemplates()
.getTemplate
("standard"); csp.setLock
(true, false); // e.g. use default (first) template set final TemplateSet templateSet =userService.getProject()
.getTemplateSets()
.get(0); try { final String source = csp.getChannelSource
(templateSet); csp.setChannelSource
(templateSet, "$-- (c) e-Spirit AG 2007 --$\n" + source); csp.save("channel source set via API", false); } finally { csp.setLock
(false, false); }
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
String |
getChannelSource(TemplateSet templateSet)
Get the source for the channel specified by the given templateset.
|
void |
setChannelSource(TemplateSet templateSet,
String source)
Sets the given source for the template channel specified by the given template set
|
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
String getChannelSource(@NotNull TemplateSet templateSet)
templateSet
- the templateset to specify the channel to look up.Project.getTemplateSets()
,
setChannelSource(de.espirit.firstspirit.access.project.TemplateSet, String)
void setChannelSource(@NotNull TemplateSet templateSet, String source)
templateSet
- the templateset which specifies the channel the given source should be set forsource
- the channel source to be setProject.getTemplateSets()
,
getChannelSource(de.espirit.firstspirit.access.project.TemplateSet)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500