public class DDMStructureImpl extends DDMStructureBaseImpl
CLASSNAMEID_COLUMN_BITMASK, COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, DESCRIPTION_COLUMN_BITMASK, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, GROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PARENTSTRUCTUREID_COLUMN_BITMASK, SESSION_FACTORY, STRUCTUREID_COLUMN_BITMASK, STRUCTUREKEY_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, UUID_COLUMN_BITMASK
STRUCTURE_ID_ACCESSOR
Constructor and Description |
---|
DDMStructureImpl() |
Modifier and Type | Method and Description |
---|---|
DDMForm |
createFullHierarchyDDMForm() |
protected java.util.List<DDMFormField> |
filterTransientDDMFormFields(java.util.List<DDMFormField> ddmFormFields) |
java.lang.String[] |
getAvailableLanguageIds() |
java.util.List<java.lang.String> |
getChildrenFieldNames(java.lang.String fieldName) |
DDMForm |
getDDMForm() |
DDMFormField |
getDDMFormField(java.lang.String fieldName) |
protected java.util.List<java.lang.String> |
getDDMFormFieldNames(java.util.List<DDMFormField> ddmFormFields) |
java.util.List<DDMFormField> |
getDDMFormFields(boolean includeTransientFields) |
DDMFormLayout |
getDDMFormLayout() |
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getFieldDataType(java.lang.String fieldName) |
java.lang.String |
getFieldLabel(java.lang.String fieldName,
java.util.Locale locale) |
java.lang.String |
getFieldLabel(java.lang.String fieldName,
java.lang.String locale) |
java.util.Set<java.lang.String> |
getFieldNames() |
java.lang.String |
getFieldProperty(java.lang.String fieldName,
java.lang.String property) |
boolean |
getFieldRepeatable(java.lang.String fieldName) |
boolean |
getFieldRequired(java.lang.String fieldName) |
java.lang.String |
getFieldTip(java.lang.String fieldName,
java.util.Locale locale) |
java.lang.String |
getFieldTip(java.lang.String fieldName,
java.lang.String locale) |
java.lang.String |
getFieldType(java.lang.String fieldName) |
DDMForm |
getFullHierarchyDDMForm() |
java.util.Map<java.lang.String,DDMFormField> |
getFullHierarchyDDMFormFieldsMap(boolean includeNestedDDMFormFields) |
DDMStructureVersion |
getLatestStructureVersion() |
protected DDMStructure |
getParentDDMStructure() |
java.util.List<java.lang.String> |
getRootFieldNames() |
DDMStructureVersion |
getStructureVersion() |
java.util.List<DDMTemplate> |
getTemplates() |
java.lang.String |
getUnambiguousName(java.util.List<DDMStructure> structures,
long groupId,
java.util.Locale locale) |
java.lang.String |
getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
java.lang.String webDAVToken)
Returns the WebDAV URL to access the structure.
|
boolean |
hasField(java.lang.String fieldName) |
boolean |
isFieldRepeatable(java.lang.String fieldName) |
boolean |
isFieldTransient(java.lang.String fieldName) |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setDDMForm(DDMForm ddmForm) |
void |
setDefinition(java.lang.String definition)
Sets the definition of this ddm structure.
|
persist
clone, compareTo, equals, getClassName, getClassNameId, getColumnBitmask, getCompanyId, getCreateDate, getDefinition, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, getLastPublishDate, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getOriginalClassNameId, getOriginalCompanyId, getOriginalDescription, getOriginalGroupId, getOriginalName, getOriginalParentStructureId, getOriginalStructureKey, getOriginalUuid, getParentStructureId, getPrimaryKey, getPrimaryKeyObj, getStagedModelType, getStorageType, getStructureId, getStructureKey, getType, getUserId, getUserName, getUserUuid, getUuid, getVersion, getVersionUserId, getVersionUserName, getVersionUserUuid, hashCode, hasSetModifiedDate, isEntityCacheEnabled, isFinderCacheEnabled, prepareLocalizedFieldsForImport, resetOriginalValues, setClassName, setClassNameId, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setGroupId, setLastPublishDate, setModelAttributes, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setParentStructureId, setPrimaryKey, setPrimaryKeyObj, setStorageType, setStructureId, setStructureKey, setType, setUserId, setUserName, setUserUuid, setUuid, setVersion, setVersionUserId, setVersionUserName, setVersionUserUuid, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, compareTo, getClassName, getClassNameId, getCompanyId, getCreateDate, getDefinition, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, getLastPublishDate, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentStructureId, getPrimaryKey, getPrimaryKeyObj, getStorageType, getStructureId, getStructureKey, getType, getUserId, getUserName, getUserUuid, getUuid, getVersion, getVersionUserId, getVersionUserName, getVersionUserUuid, hashCode, isCachedModel, isEscapedModel, isNew, prepareLocalizedFieldsForImport, setCachedModel, setClassName, setClassNameId, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setGroupId, setLastPublishDate, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setNew, setParentStructureId, setPrimaryKey, setPrimaryKeyObj, setStorageType, setStructureId, setStructureKey, setType, setUserId, setUserName, setUserUuid, setUuid, setVersion, setVersionUserId, setVersionUserName, setVersionUserUuid, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
public DDMForm createFullHierarchyDDMForm() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds
in interface DDMStructureModel
getAvailableLanguageIds
in interface com.liferay.portal.kernel.model.LocalizedModel
getAvailableLanguageIds
in class DDMStructureModelImpl
public java.util.List<java.lang.String> getChildrenFieldNames(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public DDMForm getDDMForm()
getDDMForm
in interface DDMStructure
getDDMForm
in class DDMStructureModelImpl
public DDMFormField getDDMFormField(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<DDMFormField> getDDMFormFields(boolean includeTransientFields)
public DDMFormLayout getDDMFormLayout() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getDefaultLanguageId()
getDefaultLanguageId
in interface DDMStructureModel
getDefaultLanguageId
in interface com.liferay.portal.kernel.model.LocalizedModel
getDefaultLanguageId
in class DDMStructureModelImpl
public java.lang.String getFieldDataType(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getFieldLabel(java.lang.String fieldName, java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getFieldLabel(java.lang.String fieldName, java.lang.String locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.Set<java.lang.String> getFieldNames()
public java.lang.String getFieldProperty(java.lang.String fieldName, java.lang.String property) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean getFieldRepeatable(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean getFieldRequired(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getFieldTip(java.lang.String fieldName, java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getFieldTip(java.lang.String fieldName, java.lang.String locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getFieldType(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public DDMForm getFullHierarchyDDMForm()
public java.util.Map<java.lang.String,DDMFormField> getFullHierarchyDDMFormFieldsMap(boolean includeNestedDDMFormFields)
public DDMStructureVersion getLatestStructureVersion() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<java.lang.String> getRootFieldNames()
public DDMStructureVersion getStructureVersion() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.util.List<DDMTemplate> getTemplates()
public java.lang.String getUnambiguousName(java.util.List<DDMStructure> structures, long groupId, java.util.Locale locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getWebDavURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.lang.String webDAVToken)
themeDisplay
- the theme display needed to build the URL. It can
set HTTPS access, the server name, the server port, the path
context, and the scope group.webDAVToken
- the WebDAV token for the URLpublic boolean hasField(java.lang.String fieldName)
public boolean isFieldRepeatable(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isFieldTransient(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) throws com.liferay.portal.kernel.exception.LocaleException
prepareLocalizedFieldsForImport
in interface DDMStructureModel
prepareLocalizedFieldsForImport
in interface com.liferay.portal.kernel.model.LocalizedModel
prepareLocalizedFieldsForImport
in class DDMStructureModelImpl
com.liferay.portal.kernel.exception.LocaleException
public void setDDMForm(DDMForm ddmForm)
setDDMForm
in interface DDMStructure
setDDMForm
in class DDMStructureModelImpl
public void setDefinition(java.lang.String definition)
DDMStructureModel
setDefinition
in interface DDMStructureModel
setDefinition
in class DDMStructureModelImpl
definition
- the definition of this ddm structureprotected java.util.List<DDMFormField> filterTransientDDMFormFields(java.util.List<DDMFormField> ddmFormFields)
protected java.util.List<java.lang.String> getDDMFormFieldNames(java.util.List<DDMFormField> ddmFormFields)
protected DDMStructure getParentDDMStructure() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException