public class TemplateBindings extends ArrayList<TemplateBinding>
Modifier and Type | Field and Description |
---|---|
static String |
BINDING_PROP_NAME |
static String |
DEFAULT_BINDING |
Constructor and Description |
---|
TemplateBindings(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
void |
addOrUpdate(TemplateBinding tb) |
boolean |
containsTemplateId(String templateId) |
boolean |
containsTemplateName(String templateName) |
TemplateBinding |
get() |
TemplateBinding |
get(String name) |
List<String> |
getNames() |
void |
removeByName(String templateName) |
void |
save(DocumentModel doc) |
String |
useMainContentAsTemplate() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
public static final String DEFAULT_BINDING
public static final String BINDING_PROP_NAME
public TemplateBindings(DocumentModel doc) throws ClientException
ClientException
public String useMainContentAsTemplate()
public TemplateBinding get()
public void removeByName(String templateName)
public boolean containsTemplateName(String templateName)
public boolean containsTemplateId(String templateId)
public TemplateBinding get(String name)
public void addOrUpdate(TemplateBinding tb)
public void save(DocumentModel doc) throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.