public class TemplateEntryImpl extends RelationalObjectImpl implements TemplateEntry, EventManager
RelationalObject.Filter
LOGGER, VALIDATE_INITIAL_STATE
index, path
CUSTOM_PREFIX, IDENTIFIER, NO_TEMPLATE_ENTRIES, RESOLVER, TYPE_ID
DDL_QNAMES_FILTER, DEFAULT_FILTERS, JCR_FILTER, NO_FILTERS, NT_FILTER, RESIDUAL_FILTER
EMPTY_ARRAY
EVENT_MANAGER_ADAPTER
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
TemplateEntryImpl(Repository.UnitOfWork uow,
Repository repository,
String path) |
getChild, getChild, getChildren, getChildrenOfType, getDescriptor, getDescriptors, getFilters, getParent, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasProperty, isChildRestricted, removeDescriptor, resolveType, setFilters, setPrimaryType, toString, validateInitialState
accept, addChild, addDescriptor, equals, getAbsolutePath, getAllDescriptors, getChildTypes, getIndex, getName, getObjectFactory, getObjectProperty, getPrimaryType, getPropertyFactory, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, getRepository, handleError, hashCode, hasProperties, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, print, provision, remove, removeChild, rename, setObjectProperty, setProperty, validatePropertyValue, validateType
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFilters, setFilters
accept, addChild, addDescriptor, getChild, getChild, getChildren, getChildrenOfType, getChildTypes, getDescriptor, getDescriptors, getIndex, getObjectFactory, getPrimaryType, getProperty, getPropertyDescriptor, getPropertyDescriptors, getPropertyFactory, getPropertyNames, getRawChildren, getRawDescriptors, getRawParent, getRawProperty, getRawPropertyDescriptors, getRawPropertyNames, hasChild, hasChild, hasChildren, hasDescriptor, hasProperties, hasProperty, hasRawChild, hasRawChild, hasRawChildren, hasRawProperty, isChildRestricted, print, remove, removeChild, removeDescriptor, rename, setPrimaryType, setProperty
getAbsolutePath, getName, getParent, getRepository
public TemplateEntryImpl(Repository.UnitOfWork uow, Repository repository, String path) throws KException
uow
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)repository
- the repositorypath
- the pathKException
- if error occurspublic KomodoType getTypeIdentifier(Repository.UnitOfWork uow)
getTypeIdentifier
in interface KomodoObject
getTypeIdentifier
in class ObjectImpl
public String getId(Repository.UnitOfWork transaction) throws KException
getId
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
- if error occurspublic int getTypeId()
getTypeId
in interface KomodoObject
getTypeId
in class ObjectImpl
KomodoObject.getTypeId()
public String getDescription(Repository.UnitOfWork transaction) throws KException
getDescription
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setDescription(Repository.UnitOfWork transaction, String description) throws KException
setDescription
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)description
- the descriptionKException
public String getDisplayName(Repository.UnitOfWork transaction) throws KException
getDisplayName
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setDisplayName(Repository.UnitOfWork transaction, String displayName) throws KException
setDisplayName
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)displayName
- the display nameKException
public Collection<Object> getAllowedValues(Repository.UnitOfWork transaction) throws KException
getAllowedValues
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setAllowedValues(Repository.UnitOfWork transaction, Collection<Object> allowedValues) throws KException
setAllowedValues
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)allowedValues
- the collection of allowed valuesKException
public String getCategory(Repository.UnitOfWork transaction) throws KException
getCategory
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setCategory(Repository.UnitOfWork transaction, String category) throws KException
setCategory
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)category
- the categoryKException
public Object getDefaultValue(Repository.UnitOfWork transaction) throws KException
getDefaultValue
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setDefaultValue(Repository.UnitOfWork transaction, Object defaultValue) throws KException
setDefaultValue
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)defaultValue
- the default valueKException
public String getTypeClassName(Repository.UnitOfWork transaction) throws KException
getTypeClassName
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setTypeClassName(Repository.UnitOfWork transaction, String typeClassName) throws KException
setTypeClassName
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public boolean isConstrainedToAllowedValues(Repository.UnitOfWork transaction) throws KException
isConstrainedToAllowedValues
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setConstrainedToAllowedValues(Repository.UnitOfWork transaction, boolean constrainedToAllowedValues) throws KException
setConstrainedToAllowedValues
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)constrainedToAllowedValues
- is the property constrained to allowed valuesKException
public boolean isAdvanced(Repository.UnitOfWork transaction) throws KException
isAdvanced
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setAdvanced(Repository.UnitOfWork transaction, boolean advanced) throws KException
setAdvanced
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)advanced
- is advanced propertyKException
public boolean isMasked(Repository.UnitOfWork transaction) throws KException
isMasked
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setMasked(Repository.UnitOfWork transaction, boolean masked) throws KException
setMasked
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)masked
- is value maskedKException
public boolean isModifiable(Repository.UnitOfWork transaction) throws KException
isModifiable
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setModifiable(Repository.UnitOfWork transaction, boolean modifiable) throws KException
setModifiable
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)modifiable
- is value modifiableKException
public boolean isRequired(Repository.UnitOfWork transaction) throws KException
isRequired
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void setRequired(Repository.UnitOfWork transaction, boolean required) throws KException
setRequired
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)required
- is property requiredKException
public Properties getCustomProperties(Repository.UnitOfWork transaction) throws KException
getCustomProperties
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)KException
public void addCustomProperty(Repository.UnitOfWork transaction, String key, String value) throws KException
addCustomProperty
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)key
- the property namevalue
- the property valueKException
public void setCustomProperties(Repository.UnitOfWork transaction, Properties properties) throws KException
setCustomProperties
in interface TemplateEntry
transaction
- the transaction (cannot be null
or have a state that is not Repository.UnitOfWork.State.NOT_STARTED
)properties
- the property valuesKException
public boolean addListener(ExecutionConfigurationListener listener)
addListener
in interface EventManager
public void permitListeners(boolean enable)
permitListeners
in interface EventManager
public void notifyListeners(ExecutionConfigurationEvent event)
notifyListeners
in interface EventManager
public boolean removeListener(ExecutionConfigurationListener listener)
removeListener
in interface EventManager
Copyright © 2013–2019. All rights reserved.