Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.model.impl
Class DDMStructureImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<DDMStructure>
      extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl
          extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureBaseImpl
              extended by com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureImpl
All Implemented Interfaces:
AuditedModel, BaseModel<DDMStructure>, ClassedModel, GroupedModel, LocalizedModel, PersistedModel, StagedGroupedModel, StagedModel, TypedModel, DDMStructure, DDMStructureModel, Serializable, Cloneable, Comparable<DDMStructure>

public class DDMStructureImpl
extends DDMStructureBaseImpl

See Also:
Serialized Form

Field Summary
 
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, FINDER_CACHE_ENABLED_JOURNALFOLDERS_DDMSTRUCTURES, GROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_COLUMNS, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_NAME, MAPPING_TABLE_DLFILEENTRYTYPES_DDMSTRUCTURES_SQL_CREATE, MAPPING_TABLE_JOURNALFOLDERS_DDMSTRUCTURES_COLUMNS, MAPPING_TABLE_JOURNALFOLDERS_DDMSTRUCTURES_NAME, MAPPING_TABLE_JOURNALFOLDERS_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
 
Constructor Summary
DDMStructureImpl()
           
 
Method Summary
protected  void addDDMFormPrivateDDMFormFields(DDMForm ddmForm)
           
 DDMForm createFullHierarchyDDMForm()
           
protected  DDMFormField createPrivateDDMFormField(String privateFieldName)
           
protected  List<DDMFormField> filterTransientDDMFormFields(List<DDMFormField> ddmFormFields)
           
 String[] getAvailableLanguageIds()
           
 List<String> getChildrenFieldNames(String fieldName)
           
 DDMForm getDDMForm()
           
 DDMFormField getDDMFormField(String fieldName)
           
protected  List<String> getDDMFormFieldNames(List<DDMFormField> ddmFormFields)
           
 List<DDMFormField> getDDMFormFields(boolean includeTransientFields)
           
 String getDefaultLanguageId()
           
 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)
           
 boolean getFieldRepeatable(String fieldName)
           
 boolean getFieldRequired(String fieldName)
           
 String getFieldTip(String fieldName, Locale locale)
           
 String getFieldTip(String fieldName, String locale)
           
 String getFieldType(String fieldName)
           
 DDMForm getFullHierarchyDDMForm()
           
 Map<String,DDMFormField> getFullHierarchyDDMFormFieldsMap(boolean includeNestedDDMFormFields)
           
protected  DDMStructure getParentDDMStructure()
           
 List<String> getRootFieldNames()
           
 List<DDMTemplate> getTemplates()
           
 String getUnambiguousName(List<DDMStructure> structures, long groupId, Locale 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 setDDMForm(DDMForm ddmForm)
           
 void setDefinition(String definition)
          Sets the definition of this d d m structure.
 void setFullHierarchyDDMForm(DDMForm fullHierarchyDDMForm)
           
 void updateDDMForm(DDMForm ddmForm)
           
 
Methods inherited from class com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureBaseImpl
persist
 
Methods inherited from class com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl
clone, compareTo, equals, getClassName, getClassNameId, getColumnBitmask, getCompanyId, getCreateDate, getDefinition, 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, getVersion, hashCode, isEntityCacheEnabled, isFinderCacheEnabled, 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, setVersion, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.model.DDMStructureModel
clone, compareTo, getClassName, getClassNameId, getCompanyId, getCreateDate, getDefinition, 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, getVersion, 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, setVersion, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 
Methods inherited from interface com.liferay.portal.model.StagedModel
getStagedModelType
 

Constructor Detail

DDMStructureImpl

public DDMStructureImpl()
Method Detail

createFullHierarchyDDMForm

public DDMForm createFullHierarchyDDMForm()
                                   throws PortalException
Throws:
PortalException

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface LocalizedModel
Specified by:
getAvailableLanguageIds in interface DDMStructureModel
Overrides:
getAvailableLanguageIds in class DDMStructureModelImpl

getChildrenFieldNames

public List<String> getChildrenFieldNames(String fieldName)
                                   throws PortalException
Throws:
PortalException

getDDMForm

public DDMForm getDDMForm()
Specified by:
getDDMForm in interface DDMStructure
Overrides:
getDDMForm in class DDMStructureModelImpl

getDDMFormField

public DDMFormField getDDMFormField(String fieldName)
                             throws PortalException
Throws:
PortalException

getDDMFormFields

public List<DDMFormField> getDDMFormFields(boolean includeTransientFields)

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface LocalizedModel
Specified by:
getDefaultLanguageId in interface DDMStructureModel
Overrides:
getDefaultLanguageId in class DDMStructureModelImpl

getFieldDataType

public String getFieldDataType(String fieldName)
                        throws PortalException
Throws:
PortalException

getFieldLabel

public String getFieldLabel(String fieldName,
                            Locale locale)
                     throws PortalException
Throws:
PortalException

getFieldLabel

public String getFieldLabel(String fieldName,
                            String locale)
                     throws PortalException
Throws:
PortalException

getFieldNames

public Set<String> getFieldNames()

getFieldProperty

public String getFieldProperty(String fieldName,
                               String property)
                        throws PortalException
Throws:
PortalException

getFieldRepeatable

public boolean getFieldRepeatable(String fieldName)
                           throws PortalException
Throws:
PortalException

getFieldRequired

public boolean getFieldRequired(String fieldName)
                         throws PortalException
Throws:
PortalException

getFieldTip

public String getFieldTip(String fieldName,
                          Locale locale)
                   throws PortalException
Throws:
PortalException

getFieldTip

public String getFieldTip(String fieldName,
                          String locale)
                   throws PortalException
Throws:
PortalException

getFieldType

public String getFieldType(String fieldName)
                    throws PortalException
Throws:
PortalException

getFullHierarchyDDMForm

public DDMForm getFullHierarchyDDMForm()
Specified by:
getFullHierarchyDDMForm in interface DDMStructure
Overrides:
getFullHierarchyDDMForm in class DDMStructureModelImpl

getFullHierarchyDDMFormFieldsMap

public Map<String,DDMFormField> getFullHierarchyDDMFormFieldsMap(boolean includeNestedDDMFormFields)

getRootFieldNames

public List<String> getRootFieldNames()

getTemplates

public List<DDMTemplate> getTemplates()

getUnambiguousName

public String getUnambiguousName(List<DDMStructure> structures,
                                 long groupId,
                                 Locale locale)
                          throws PortalException
Throws:
PortalException

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)

isFieldPrivate

public boolean isFieldPrivate(String fieldName)

isFieldRepeatable

public boolean isFieldRepeatable(String fieldName)
                          throws PortalException
Throws:
PortalException

isFieldTransient

public boolean isFieldTransient(String fieldName)
                         throws PortalException
Throws:
PortalException

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface LocalizedModel
Specified by:
prepareLocalizedFieldsForImport in interface DDMStructureModel
Overrides:
prepareLocalizedFieldsForImport in class DDMStructureModelImpl
Throws:
LocaleException

setDDMForm

public void setDDMForm(DDMForm ddmForm)
Specified by:
setDDMForm in interface DDMStructure
Overrides:
setDDMForm in class DDMStructureModelImpl

setDefinition

public void setDefinition(String definition)
Description copied from interface: DDMStructureModel
Sets the definition of this d d m structure.

Specified by:
setDefinition in interface DDMStructureModel
Overrides:
setDefinition in class DDMStructureModelImpl
Parameters:
definition - the definition of this d d m structure

setFullHierarchyDDMForm

public void setFullHierarchyDDMForm(DDMForm fullHierarchyDDMForm)
Specified by:
setFullHierarchyDDMForm in interface DDMStructure
Overrides:
setFullHierarchyDDMForm in class DDMStructureModelImpl

updateDDMForm

public void updateDDMForm(DDMForm ddmForm)

addDDMFormPrivateDDMFormFields

protected void addDDMFormPrivateDDMFormFields(DDMForm ddmForm)

createPrivateDDMFormField

protected DDMFormField createPrivateDDMFormField(String privateFieldName)

filterTransientDDMFormFields

protected List<DDMFormField> filterTransientDDMFormFields(List<DDMFormField> ddmFormFields)

getDDMFormFieldNames

protected List<String> getDDMFormFieldNames(List<DDMFormField> ddmFormFields)

getParentDDMStructure

protected DDMStructure getParentDDMStructure()
                                      throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m3