/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.dynamic.data.mapping.model; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.annotation.ImplementationClassName; import com.liferay.portal.kernel.model.PersistedModel; import com.liferay.portal.kernel.util.Accessor; /** * The extended model interface for the DDMStructure service. Represents a row in the "DDMStructure" database table, with each column mapped to a property of this class. * * @author Brian Wing Shun Chan * @see DDMStructureModel * @see com.liferay.dynamic.data.mapping.model.impl.DDMStructureImpl * @see com.liferay.dynamic.data.mapping.model.impl.DDMStructureModelImpl * @generated */ @ImplementationClassName("com.liferay.dynamic.data.mapping.model.impl.DDMStructureImpl") @ProviderType public interface DDMStructure extends DDMStructureModel, PersistedModel { /* * NOTE FOR DEVELOPERS: * * Never modify this interface directly. Add methods to {@link com.liferay.dynamic.data.mapping.model.impl.DDMStructureImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. */ public static final Accessor<DDMStructure, Long> STRUCTURE_ID_ACCESSOR = new Accessor<DDMStructure, Long>() { @Override public Long get(DDMStructure ddmStructure) { return ddmStructure.getStructureId(); } @Override public Class<Long> getAttributeClass() { return Long.class; } @Override public Class<DDMStructure> getTypeClass() { return DDMStructure.class; } }; public DDMForm createFullHierarchyDDMForm() throws com.liferay.portal.kernel.exception.PortalException; public java.util.List<java.lang.String> getChildrenFieldNames( java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException; public DDMForm getDDMForm(); public DDMFormField getDDMFormField(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException; public java.util.List<DDMFormField> getDDMFormFields( boolean includeTransientFields); public DDMFormLayout getDDMFormLayout() throws com.liferay.portal.kernel.exception.PortalException; public java.lang.String getFieldDataType(java.lang.String fieldName) throws 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; public java.lang.String getFieldLabel(java.lang.String fieldName, java.lang.String locale) throws 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; public boolean getFieldRepeatable(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException; public boolean getFieldRequired(java.lang.String fieldName) throws 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; public java.lang.String getFieldTip(java.lang.String fieldName, java.lang.String locale) throws com.liferay.portal.kernel.exception.PortalException; public java.lang.String getFieldType(java.lang.String fieldName) throws 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; public java.util.List<java.lang.String> getRootFieldNames(); public DDMStructureVersion getStructureVersion() throws 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; /** * Returns the WebDAV URL to access the structure. * * @param 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. * @param webDAVToken the WebDAV token for the URL * @return the WebDAV URL */ public java.lang.String getWebDavURL( com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, java.lang.String webDAVToken); public boolean hasField(java.lang.String fieldName); public boolean isFieldRepeatable(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException; public boolean isFieldTransient(java.lang.String fieldName) throws com.liferay.portal.kernel.exception.PortalException; public void setDDMForm(DDMForm ddmForm); }