com.liferay.portlet.dynamicdatamapping.model.impl
Class DDMStructureImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<DDMStructure>
com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl
com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureBaseImpl
com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureImpl
- All Implemented Interfaces:
- AuditedModel, BaseModel<DDMStructure>, ClassedModel, GroupedModel, PersistedModel, StagedGroupedModel, StagedModel, TypedModel, DDMStructure, DDMStructureModel, Serializable, Cloneable, Comparable<DDMStructure>
public class DDMStructureImpl
- extends DDMStructureBaseImpl
- See Also:
- Serialized Form
Fields inherited from class com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl |
CLASSNAMEID_COLUMN_BITMASK, COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, DESCRIPTION_COLUMN_BITMASK, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_DLFILEENTRYTYPES_DDMSTRUCTURES, GROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_COLUMNS, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_NAME, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_SQL_CREATE, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PARENTSTRUCTUREID_COLUMN_BITMASK, SESSION_FACTORY, STRUCTUREID_COLUMN_BITMASK, STRUCTUREKEY_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, UUID_COLUMN_BITMASK |
Method Summary |
String[] |
getAvailableLanguageIds()
|
List<String> |
getChildrenFieldNames(String fieldName)
|
String |
getCompleteXsd()
|
String |
getDefaultLanguageId()
|
Document |
getDocument()
|
String |
getFieldDataType(String fieldName)
|
String |
getFieldLabel(String fieldName,
Locale locale)
|
String |
getFieldLabel(String fieldName,
String locale)
|
Set<String> |
getFieldNames()
|
String |
getFieldProperty(String fieldName,
String property)
|
String |
getFieldProperty(String fieldName,
String property,
String locale)
|
boolean |
getFieldRepeatable(String fieldName)
|
boolean |
getFieldRequired(String fieldName)
|
Map<String,String> |
getFields(String fieldName,
String attributeName,
String attributeValue)
|
Map<String,String> |
getFields(String fieldName,
String attributeName,
String attributeValue,
String locale)
|
Map<String,Map<String,String>> |
getFieldsMap()
|
Map<String,Map<String,String>> |
getFieldsMap(boolean includeTransientFields)
|
Map<String,Map<String,String>> |
getFieldsMap(String locale)
|
Map<String,Map<String,String>> |
getFieldsMap(String locale,
boolean includeTransientFields)
|
String |
getFieldTip(String fieldName,
Locale locale)
|
String |
getFieldTip(String fieldName,
String locale)
|
String |
getFieldType(String fieldName)
|
Map<String,Map<String,Map<String,String>>> |
getLocalizedFieldsMap()
|
Map<String,Map<String,Map<String,String>>> |
getLocalizedPersistentFieldsMap()
|
Map<String,Map<String,Map<String,String>>> |
getLocalizedTransientFieldsMap()
|
Map<String,Map<String,String>> |
getPersistentFieldsMap(String locale)
|
List<String> |
getRootFieldNames()
|
List<DDMTemplate> |
getTemplates()
|
Map<String,Map<String,String>> |
getTransientFieldsMap(String locale)
|
String |
getWebDavURL(ThemeDisplay themeDisplay,
String webDAVToken)
Returns the WebDAV URL to access the structure. |
boolean |
hasField(String fieldName)
|
boolean |
isFieldPrivate(String fieldName)
|
boolean |
isFieldRepeatable(String fieldName)
|
boolean |
isFieldTransient(String fieldName)
|
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
setDocument(Document document)
|
void |
setLocalizedFieldsMap(Map<String,Map<String,Map<String,String>>> localizedFieldsMap)
|
void |
setLocalizedPersistentFieldsMap(Map<String,Map<String,Map<String,String>>> localizedPersistentFieldsMap)
|
void |
setLocalizedTransientFieldsMap(Map<String,Map<String,Map<String,String>>> localizedTransientFieldsMap)
|
void |
setXsd(String xsd)
Sets the xsd of this d d m structure. |
Methods inherited from class com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl |
clone, compareTo, equals, getClassName, getClassNameId, getColumnBitmask, getCompanyId, getCreateDate, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, 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, getXsd, hashCode, prepareLocalizedFieldsForImport, resetOriginalValues, setClassName, setClassNameId, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setGroupId, setModelAttributes, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setParentStructureId, setPrimaryKey, setPrimaryKeyObj, setStorageType, setStructureId, setStructureKey, setType, setUserId, setUserName, setUserUuid, setUuid, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString |
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel |
clone, compareTo, getClassName, getClassNameId, getCompanyId, getCreateDate, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getGroupId, getModifiedDate, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentStructureId, getPrimaryKey, getPrimaryKeyObj, getStorageType, getStructureId, getStructureKey, getType, getUserId, getUserName, getUserUuid, getUuid, getXsd, hashCode, isCachedModel, isEscapedModel, isNew, prepareLocalizedFieldsForImport, setCachedModel, setClassName, setClassNameId, setCompanyId, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setGroupId, setModifiedDate, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setNew, setParentStructureId, setPrimaryKey, setPrimaryKeyObj, setStorageType, setStructureId, setStructureKey, setType, setUserId, setUserName, setUserUuid, setUuid, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString |
DDMStructureImpl
public DDMStructureImpl()
getAvailableLanguageIds
public String[] getAvailableLanguageIds()
- Specified by:
getAvailableLanguageIds
in interface DDMStructureModel
- Overrides:
getAvailableLanguageIds
in class DDMStructureModelImpl
getChildrenFieldNames
public List<String> getChildrenFieldNames(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCompleteXsd
public String getCompleteXsd()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getDefaultLanguageId
public String getDefaultLanguageId()
- Specified by:
getDefaultLanguageId
in interface DDMStructureModel
- Overrides:
getDefaultLanguageId
in class DDMStructureModelImpl
getDocument
public Document getDocument()
- Specified by:
getDocument
in interface DDMStructure
- Overrides:
getDocument
in class DDMStructureModelImpl
getFieldDataType
public String getFieldDataType(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldLabel
public String getFieldLabel(String fieldName,
Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldLabel
public String getFieldLabel(String fieldName,
String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldNames
public Set<String> getFieldNames()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldProperty
public String getFieldProperty(String fieldName,
String property)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldProperty
public String getFieldProperty(String fieldName,
String property,
String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldRepeatable
public boolean getFieldRepeatable(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldRequired
public boolean getFieldRequired(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFields
public Map<String,String> getFields(String fieldName,
String attributeName,
String attributeValue)
getFields
public Map<String,String> getFields(String fieldName,
String attributeName,
String attributeValue,
String locale)
getFieldsMap
public Map<String,Map<String,String>> getFieldsMap()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldsMap
public Map<String,Map<String,String>> getFieldsMap(boolean includeTransientFields)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldsMap
public Map<String,Map<String,String>> getFieldsMap(String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldsMap
public Map<String,Map<String,String>> getFieldsMap(String locale,
boolean includeTransientFields)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldTip
public String getFieldTip(String fieldName,
Locale locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldTip
public String getFieldTip(String fieldName,
String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getFieldType
public String getFieldType(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLocalizedFieldsMap
public Map<String,Map<String,Map<String,String>>> getLocalizedFieldsMap()
- Specified by:
getLocalizedFieldsMap
in interface DDMStructure
- Overrides:
getLocalizedFieldsMap
in class DDMStructureModelImpl
getLocalizedPersistentFieldsMap
public Map<String,Map<String,Map<String,String>>> getLocalizedPersistentFieldsMap()
- Specified by:
getLocalizedPersistentFieldsMap
in interface DDMStructure
- Overrides:
getLocalizedPersistentFieldsMap
in class DDMStructureModelImpl
getLocalizedTransientFieldsMap
public Map<String,Map<String,Map<String,String>>> getLocalizedTransientFieldsMap()
- Specified by:
getLocalizedTransientFieldsMap
in interface DDMStructure
- Overrides:
getLocalizedTransientFieldsMap
in class DDMStructureModelImpl
getPersistentFieldsMap
public Map<String,Map<String,String>> getPersistentFieldsMap(String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getRootFieldNames
public List<String> getRootFieldNames()
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getTemplates
public List<DDMTemplate> getTemplates()
throws SystemException
- Throws:
SystemException
getTransientFieldsMap
public Map<String,Map<String,String>> getTransientFieldsMap(String locale)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getWebDavURL
public String getWebDavURL(ThemeDisplay themeDisplay,
String webDAVToken)
- Returns the WebDAV URL to access the structure.
- Parameters:
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 URL
- Returns:
- the WebDAV URL
hasField
public boolean hasField(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isFieldPrivate
public boolean isFieldPrivate(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isFieldRepeatable
public boolean isFieldRepeatable(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
isFieldTransient
public boolean isFieldTransient(String fieldName)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
prepareLocalizedFieldsForImport
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
- Specified by:
prepareLocalizedFieldsForImport
in interface DDMStructureModel
- Overrides:
prepareLocalizedFieldsForImport
in class DDMStructureModelImpl
- Throws:
LocaleException
setDocument
public void setDocument(Document document)
- Specified by:
setDocument
in interface DDMStructure
- Overrides:
setDocument
in class DDMStructureModelImpl
setLocalizedFieldsMap
public void setLocalizedFieldsMap(Map<String,Map<String,Map<String,String>>> localizedFieldsMap)
- Specified by:
setLocalizedFieldsMap
in interface DDMStructure
- Overrides:
setLocalizedFieldsMap
in class DDMStructureModelImpl
setLocalizedPersistentFieldsMap
public void setLocalizedPersistentFieldsMap(Map<String,Map<String,Map<String,String>>> localizedPersistentFieldsMap)
- Specified by:
setLocalizedPersistentFieldsMap
in interface DDMStructure
- Overrides:
setLocalizedPersistentFieldsMap
in class DDMStructureModelImpl
setLocalizedTransientFieldsMap
public void setLocalizedTransientFieldsMap(Map<String,Map<String,Map<String,String>>> localizedTransientFieldsMap)
- Specified by:
setLocalizedTransientFieldsMap
in interface DDMStructure
- Overrides:
setLocalizedTransientFieldsMap
in class DDMStructureModelImpl
setXsd
public void setXsd(String xsd)
- Description copied from interface:
DDMStructureModel
- Sets the xsd of this d d m structure.
- Specified by:
setXsd
in interface DDMStructureModel
- Overrides:
setXsd
in class DDMStructureModelImpl
- Parameters:
xsd
- the xsd of this d d m structure