All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalServiceWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 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.portlet.dynamicdatamapping.service;

import com.liferay.portal.service.ServiceWrapper;

/**
 * Provides a wrapper for {@link DDMStructureLocalService}.
 *
 * @author Brian Wing Shun Chan
 * @see DDMStructureLocalService
 * @generated
 */
public class DDMStructureLocalServiceWrapper implements DDMStructureLocalService,
	ServiceWrapper {
	public DDMStructureLocalServiceWrapper(
		DDMStructureLocalService ddmStructureLocalService) {
		_ddmStructureLocalService = ddmStructureLocalService;
	}

	/**
	* Adds the d d m structure to the database. Also notifies the appropriate model listeners.
	*
	* @param ddmStructure the d d m structure
	* @return the d d m structure that was added
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addDDMStructure(
		com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _ddmStructureLocalService.addDDMStructure(ddmStructure);
	}

	/**
	* Creates a new d d m structure with the primary key. Does not add the d d m structure to the database.
	*
	* @param structureId the primary key for the new d d m structure
	* @return the new d d m structure
	*/
	@Override
	public com.liferay.portlet.dynamicdatamapping.model.DDMStructure createDDMStructure(
		long structureId) {
		return _ddmStructureLocalService.createDDMStructure(structureId);
	}

	/**
	* Deletes the d d m structure with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param structureId the primary key of the d d m structure
	* @return the d d m structure that was removed
	* @throws PortalException if a d d m structure with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
		long structureId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _ddmStructureLocalService.deleteDDMStructure(structureId);
	}

	/**
	* Deletes the d d m structure from the database. Also notifies the appropriate model listeners.
	*
	* @param ddmStructure the d d m structure
	* @return the d d m structure that was removed
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.dynamicdatamapping.model.DDMStructure deleteDDMStructure(
		com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _ddmStructureLocalService.deleteDDMStructure(ddmStructure);
	}

	@Override
	public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
		return _ddmStructureLocalService.dynamicQuery();
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@Override
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _ddmStructureLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* 

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows * @throws SystemException if a system exception occurred */ @Override @SuppressWarnings("rawtypes") public java.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.dynamicQuery(dynamicQuery, start, end); } /** * Performs a dynamic query on the database and returns an ordered range of the matching rows. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching rows * @throws SystemException if a system exception occurred */ @Override @SuppressWarnings("rawtypes") public java.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.dynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * Returns the number of rows that match the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows that match the dynamic query * @throws SystemException if a system exception occurred */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows that match the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows that match the dynamic query * @throws SystemException if a system exception occurred */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.dynamicQueryCount(dynamicQuery, projection); } @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructure( long structureId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchDDMStructure(structureId); } /** * Returns the d d m structure with the matching UUID and company. * * @param uuid the d d m structure's UUID * @param companyId the primary key of the company * @return the matching d d m structure, or null if a matching d d m structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructureByUuidAndCompanyId( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchDDMStructureByUuidAndCompanyId(uuid, companyId); } /** * Returns the d d m structure matching the UUID and group. * * @param uuid the d d m structure's UUID * @param groupId the primary key of the group * @return the matching d d m structure, or null if a matching d d m structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchDDMStructureByUuidAndGroupId( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchDDMStructureByUuidAndGroupId(uuid, groupId); } /** * Returns the d d m structure with the primary key. * * @param structureId the primary key of the d d m structure * @return the d d m structure * @throws PortalException if a d d m structure with the primary key could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure( long structureId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDDMStructure(structureId); } @Override public com.liferay.portal.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getPersistedModel(primaryKeyObj); } /** * Returns the d d m structure with the matching UUID and company. * * @param uuid the d d m structure's UUID * @param companyId the primary key of the company * @return the matching d d m structure * @throws PortalException if a matching d d m structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructureByUuidAndCompanyId( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDDMStructureByUuidAndCompanyId(uuid, companyId); } /** * Returns the d d m structure matching the UUID and group. * * @param uuid the d d m structure's UUID * @param groupId the primary key of the group * @return the matching d d m structure * @throws PortalException if a matching d d m structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructureByUuidAndGroupId( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDDMStructureByUuidAndGroupId(uuid, groupId); } /** * Returns a range of all the d d m structures. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param start the lower bound of the range of d d m structures * @param end the upper bound of the range of d d m structures (not inclusive) * @return the range of d d m structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getDDMStructures( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDDMStructures(start, end); } /** * Returns the number of d d m structures. * * @return the number of d d m structures * @throws SystemException if a system exception occurred */ @Override public int getDDMStructuresCount() throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDDMStructuresCount(); } /** * Updates the d d m structure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param ddmStructure the d d m structure * @return the d d m structure that was updated * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateDDMStructure( com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.updateDDMStructure(ddmStructure); } /** * @throws SystemException if a system exception occurred */ @Override public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addDLFileEntryTypeDDMStructure(fileEntryTypeId, structureId); } /** * @throws SystemException if a system exception occurred */ @Override public void addDLFileEntryTypeDDMStructure(long fileEntryTypeId, com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addDLFileEntryTypeDDMStructure(fileEntryTypeId, ddmStructure); } /** * @throws SystemException if a system exception occurred */ @Override public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addDLFileEntryTypeDDMStructures(fileEntryTypeId, structureIds); } /** * @throws SystemException if a system exception occurred */ @Override public void addDLFileEntryTypeDDMStructures(long fileEntryTypeId, java.util.List DDMStructures) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addDLFileEntryTypeDDMStructures(fileEntryTypeId, DDMStructures); } /** * @throws SystemException if a system exception occurred */ @Override public void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.clearDLFileEntryTypeDDMStructures(fileEntryTypeId); } /** * @throws SystemException if a system exception occurred */ @Override public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteDLFileEntryTypeDDMStructure(fileEntryTypeId, structureId); } /** * @throws SystemException if a system exception occurred */ @Override public void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId, com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteDLFileEntryTypeDDMStructure(fileEntryTypeId, ddmStructure); } /** * @throws SystemException if a system exception occurred */ @Override public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteDLFileEntryTypeDDMStructures(fileEntryTypeId, structureIds); } /** * @throws SystemException if a system exception occurred */ @Override public void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId, java.util.List DDMStructures) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteDLFileEntryTypeDDMStructures(fileEntryTypeId, DDMStructures); } /** * @throws SystemException if a system exception occurred */ @Override public java.util.List getDLFileEntryTypeDDMStructures( long fileEntryTypeId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDLFileEntryTypeDDMStructures(fileEntryTypeId); } /** * @throws SystemException if a system exception occurred */ @Override public java.util.List getDLFileEntryTypeDDMStructures( long fileEntryTypeId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDLFileEntryTypeDDMStructures(fileEntryTypeId, start, end); } /** * @throws SystemException if a system exception occurred */ @Override public java.util.List getDLFileEntryTypeDDMStructures( long fileEntryTypeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDLFileEntryTypeDDMStructures(fileEntryTypeId, start, end, orderByComparator); } /** * @throws SystemException if a system exception occurred */ @Override public int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDLFileEntryTypeDDMStructuresCount(fileEntryTypeId); } /** * @throws SystemException if a system exception occurred */ @Override public boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId, long structureId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.hasDLFileEntryTypeDDMStructure(fileEntryTypeId, structureId); } /** * @throws SystemException if a system exception occurred */ @Override public boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.hasDLFileEntryTypeDDMStructures(fileEntryTypeId); } /** * @throws SystemException if a system exception occurred */ @Override public void setDLFileEntryTypeDDMStructures(long fileEntryTypeId, long[] structureIds) throws com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.setDLFileEntryTypeDDMStructures(fileEntryTypeId, structureIds); } /** * Returns the Spring bean ID for this bean. * * @return the Spring bean ID for this bean */ @Override public java.lang.String getBeanIdentifier() { return _ddmStructureLocalService.getBeanIdentifier(); } /** * Sets the Spring bean ID for this bean. * * @param beanIdentifier the Spring bean ID for this bean */ @Override public void setBeanIdentifier(java.lang.String beanIdentifier) { _ddmStructureLocalService.setBeanIdentifier(beanIdentifier); } /** * Adds a structure referencing its parent structure. * * @param userId the primary key of the structure's creator/owner * @param groupId the primary key of the group * @param parentStructureId the primary key of the parent structure (optionally {@link com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID}) * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure (optionally null) * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the structure's XML schema definition * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.portlet.dynamicdatamapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the structure * @throws PortalException if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( long userId, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map nameMap, java.util.Map descriptionMap, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.addStructure(userId, groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, serviceContext); } /** * Adds a structure referencing a default parent structure, using the portal * property dynamic.data.lists.storage.type storage type and * default structure type. * * @param userId the primary key of the structure's creator/owner * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the structure's XML schema definition * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the structure * @throws PortalException if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( long userId, long groupId, long classNameId, java.util.Map nameMap, java.util.Map descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.addStructure(userId, groupId, classNameId, nameMap, descriptionMap, xsd, serviceContext); } /** * Adds a structure referencing a default parent structure if the parent * structure is not found. * * @param userId the primary key of the structure's creator/owner * @param groupId the primary key of the group * @param parentStructureKey the unique string identifying the parent structure (optionally null) * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure (optionally null) * @param nameMap the structure's locales and localized names * @param descriptionMap the structure's locales and localized descriptions * @param xsd the structure's XML schema definition * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.portlet.dynamicdatamapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions and group permissions for the structure. * @return the structure * @throws PortalException if a user with the primary key could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure addStructure( long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.util.Map nameMap, java.util.Map descriptionMap, java.lang.String xsd, java.lang.String storageType, int type, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.addStructure(userId, groupId, parentStructureKey, classNameId, structureKey, nameMap, descriptionMap, xsd, storageType, type, serviceContext); } /** * Adds the resources to the structure. * * @param structure the structure to add resources to * @param addGroupPermissions whether to add group permissions * @param addGuestPermissions whether to add guest permissions * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void addStructureResources( com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addStructureResources(structure, addGroupPermissions, addGuestPermissions); } /** * Adds the model resources with the permissions to the structure. * * @param structure the structure to add resources to * @param groupPermissions the group permissions to be added * @param guestPermissions the guest permissions to be added * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void addStructureResources( com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.addStructureResources(structure, groupPermissions, guestPermissions); } /** * Copies a structure, creating a new structure with all the values * extracted from the original one. The new structure supports a new name * and description. * * @param userId the primary key of the structure's creator/owner * @param structureId the primary key of the structure to be copied * @param nameMap the new structure's locales and localized names * @param descriptionMap the new structure's locales and localized descriptions * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the new structure * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure( long userId, long structureId, java.util.Map nameMap, java.util.Map descriptionMap, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.copyStructure(userId, structureId, nameMap, descriptionMap, serviceContext); } @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure copyStructure( long userId, long structureId, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.copyStructure(userId, structureId, serviceContext); } /** * Deletes the structure and its resources. * *

* Before deleting the structure, this method verifies whether the structure * is required by another entity. If it is needed, an exception is thrown. *

* * @param structure the structure to be deleted * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void deleteStructure( com.liferay.portlet.dynamicdatamapping.model.DDMStructure structure) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteStructure(structure); } /** * Deletes the structure and its resources. * *

* Before deleting the structure, the system verifies whether the structure * is required by another entity. If it is needed, an exception is thrown. *

* * @param structureId the primary key of the structure to be deleted * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void deleteStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteStructure(structureId); } /** * Deletes the matching structure and its resources. * *

* Before deleting the structure, the system verifies whether the structure * is required by another entity. If it is needed, an exception is thrown. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void deleteStructure(long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteStructure(groupId, classNameId, structureKey); } /** * Deletes all the structures of the group. * *

* Before deleting the structures, the system verifies whether each * structure is required by another entity. If any of the structures are * needed, an exception is thrown. *

* * @param groupId the primary key of the group * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void deleteStructures(long groupId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.deleteStructures(groupId); } /** * Returns the structure with the ID. * * @param structureId the primary key of the structure * @return the structure with the structure ID, or null if a matching structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure( long structureId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchStructure(structureId); } /** * Returns the structure matching the class name ID, structure key, and * group. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @return the matching structure, or null if a matching structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure( long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchStructure(groupId, classNameId, structureKey); } /** * Returns the structure matching the class name ID, structure key, and * group, optionally in the global scope. * *

* This method first searches in the group. If the structure is still not * found and includeGlobalStructures is set to * true, this method searches the global group. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @param includeGlobalStructures whether to include the global scope in the search * @return the matching structure, or null if a matching structure could not be found * @throws PortalException if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure fetchStructure( long groupId, long classNameId, java.lang.String structureKey, boolean includeGlobalStructures) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.fetchStructure(groupId, classNameId, structureKey, includeGlobalStructures); } /** * @deprecated As of 6.2.0, replaced by {@link #getClassStructures(long, long)} */ @Override public java.util.List getClassStructures( long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(classNameId); } /** * @deprecated As of 6.2.0, replaced by {@link #getClassStructures(long, long, int, int)} */ @Override public java.util.List getClassStructures( long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(classNameId, start, end); } /** * Returns all the structures matching the class name ID. * * @param companyId the primary key of the structure's company * @param classNameId the primary key of the class name for the structure's related model * @return the structures matching the class name ID * @throws SystemException if a system exception occurred */ @Override public java.util.List getClassStructures( long companyId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(companyId, classNameId); } /** * Returns a range of all the structures matching the class name ID. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param companyId the primary key of the structure's company * @param classNameId the primary key of the class name for the structure's related model * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @return the range of matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getClassStructures( long companyId, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(companyId, classNameId, start, end); } /** * Returns all the structures matching the class name ID ordered by the * comparator. * * @param companyId the primary key of the structure's company * @param classNameId the primary key of the class name for the structure's related model * @param orderByComparator the comparator to order the structures (optionally null) * @return the matching structures ordered by the comparator * @throws SystemException if a system exception occurred */ @Override public java.util.List getClassStructures( long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(companyId, classNameId, orderByComparator); } /** * @deprecated As of 6.2.0, replaced by {@link #getClassStructures(long, long, OrderByComparator)} */ @Override public java.util.List getClassStructures( long classNameId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getClassStructures(classNameId, orderByComparator); } /** * Returns all the structures for the document library file entry type. * * @param dlFileEntryTypeId the primary key of the document library file entry type * @return the structures for the document library file entry type * @throws SystemException if a system exception occurred */ @Override public java.util.List getDLFileEntryTypeStructures( long dlFileEntryTypeId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getDLFileEntryTypeStructures(dlFileEntryTypeId); } /** * Returns the structure with the ID. * * @param structureId the primary key of the structure * @return the structure with the ID * @throws PortalException if a structure with the ID could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( long structureId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructure(structureId); } /** * Returns the structure matching the class name ID, structure key, and * group. * * @param groupId the primary key of the structure's group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @return the matching structure * @throws PortalException if a matching structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructure(groupId, classNameId, structureKey); } /** * Returns the structure matching the class name ID, structure key, and * group, optionally in the global scope. * *

* This method first searches in the group. If the structure is still not * found and includeGlobalStructures is set to * true, this method searches the global group. *

* * @param groupId the primary key of the structure's group * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @param includeGlobalStructures whether to include the global scope in the search * @return the matching structure * @throws PortalException if a matching structure could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getStructure( long groupId, long classNameId, java.lang.String structureKey, boolean includeGlobalStructures) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructure(groupId, classNameId, structureKey, includeGlobalStructures); } /** * Returns all the structures matching the group, name, and description. * * @param groupId the primary key of the structure's group * @param name the structure's name * @param description the structure's description * @return the matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructure( long groupId, java.lang.String name, java.lang.String description) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructure(groupId, name, description); } /** * @deprecated As of 6.2.0, replaced by {@link #getStructures} */ @Override public java.util.List getStructureEntries() throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructureEntries(); } /** * @deprecated As of 6.2.0, replaced by {@link #getStructures(long)} */ @Override public java.util.List getStructureEntries( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructureEntries(groupId); } /** * @deprecated As of 6.2.0, replaced by {@link #getStructures(long, int, int)} */ @Override public java.util.List getStructureEntries( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructureEntries(groupId, start, end); } /** * Returns all the structures present in the system. * * @return the structures present in the system * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures() throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(); } /** * Returns all the structures present in the group. * * @param groupId the primary key of the group * @return the structures present in the group * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long groupId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId); } /** * Returns a range of all the structures belonging to the group. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param groupId the primary key of the group * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @return the range of matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId, start, end); } /** * Returns all the structures matching class name ID and group. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @return the matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId, classNameId); } /** * Returns a range of all the structures that match the class name ID and * group. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @return the range of matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long groupId, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId, classNameId, start, end); } /** * Returns an ordered range of all the structures matching the class name ID * and group. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @param orderByComparator the comparator to order the structures (optionally null) * @return the range of matching structures ordered by the comparator * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId, classNameId, start, end, orderByComparator); } @Override public java.util.List getStructures( long groupId, java.lang.String name, java.lang.String description) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupId, name, description); } /** * Returns all the structures belonging to the groups. * * @param groupIds the primary keys of the groups * @return the structures belonging to the groups * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long[] groupIds) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupIds); } /** * Returns all the structures matching the class name ID and belonging to * the groups. * * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name for the structure's related model * @return the matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long[] groupIds, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupIds, classNameId); } /** * Returns a range of all the structures matching the class name ID and * belonging to the groups. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name for the structure's related model * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @return the range of matching structures * @throws SystemException if a system exception occurred */ @Override public java.util.List getStructures( long[] groupIds, long classNameId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructures(groupIds, classNameId, start, end); } /** * Returns the number of structures belonging to the group. * * @param groupId the primary key of the group * @return the number of structures belonging to the group * @throws SystemException if a system exception occurred */ @Override public int getStructuresCount(long groupId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructuresCount(groupId); } /** * Returns the number of structures matching the class name ID and group. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for the structure's related model * @return the number of matching structures * @throws SystemException if a system exception occurred */ @Override public int getStructuresCount(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructuresCount(groupId, classNameId); } /** * Returns the number of structures matching the class name ID and belonging * to the groups. * * @param groupIds the primary keys of the groups * @param classNameId the primary key of the class name for the structure's related model * @return the number of matching structures * @throws SystemException if a system exception occurred */ @Override public int getStructuresCount(long[] groupIds, long classNameId) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.getStructuresCount(groupIds, classNameId); } /** * Returns an ordered range of all the structures matching the groups and * class name IDs, and matching the keywords in the structure names and * descriptions. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameIds the primary keys of the class names of the models the structures are related to * @param keywords the keywords (space separated), which may occur in the structure's name or description (optionally null) * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @param orderByComparator the comparator to order the structures (optionally null) * @return the range of matching structures ordered by the comparator * @throws SystemException if a system exception occurred */ @Override public java.util.List search( long companyId, long[] groupIds, long[] classNameIds, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.search(companyId, groupIds, classNameIds, keywords, start, end, orderByComparator); } /** * Returns an ordered range of all the structures matching the groups, class * name IDs, name keyword, description keyword, storage type, and type. * *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameIds the primary keys of the class names of the models the structures are related to * @param name the name keywords * @param description the description keywords * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.portlet.dynamicdatamapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. * @param andOperator whether every field must match its keywords, or just one field * @param start the lower bound of the range of structures to return * @param end the upper bound of the range of structures to return (not inclusive) * @param orderByComparator the comparator to order the structures (optionally null) * @return the range of matching structures ordered by the comparator * @throws SystemException if a system exception occurred */ @Override public java.util.List search( long companyId, long[] groupIds, long[] classNameIds, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.search(companyId, groupIds, classNameIds, name, description, storageType, type, andOperator, start, end, orderByComparator); } /** * Returns the number of structures matching the groups and class name IDs, * and matching the keywords in the structure names and descriptions. * * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameIds the primary keys of the class names of the models the structures are related to * @param keywords the keywords (space separated), which may occur in the structure's name or description (optionally null) * @return the number of matching structures * @throws SystemException if a system exception occurred */ @Override public int searchCount(long companyId, long[] groupIds, long[] classNameIds, java.lang.String keywords) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.searchCount(companyId, groupIds, classNameIds, keywords); } /** * Returns the number of structures matching the groups, class name IDs, * name keyword, description keyword, storage type, and type * * @param companyId the primary key of the structure's company * @param groupIds the primary keys of the groups * @param classNameIds the primary keys of the class names of the models the structure's are related to * @param name the name keywords * @param description the description keywords * @param storageType the structure's storage type. It can be "xml" or "expando". For more information, see {@link com.liferay.portlet.dynamicdatamapping.storage.StorageType}. * @param type the structure's type. For more information, see {@link com.liferay.portlet.dynamicdatamapping.model.DDMStructureConstants}. * @param andOperator whether every field must match its keywords, or just one field * @return the number of matching structures * @throws SystemException if a system exception occurred */ @Override public int searchCount(long companyId, long[] groupIds, long[] classNameIds, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, boolean andOperator) throws com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.searchCount(companyId, groupIds, classNameIds, name, description, storageType, type, andOperator); } /** * Updates the structure matching the class name ID, structure key, and * group, replacing its old parent structure, name map, description map, and * XSD with new ones. * * @param groupId the primary key of the group * @param parentStructureId the primary key of the new parent structure * @param classNameId the primary key of the class name for the structure's related model * @param structureKey the unique string identifying the structure * @param nameMap the structure's new locales and localized names * @param descriptionMap the structure's new locales and localized description * @param xsd the structure's new XML schema definition * @param serviceContext the service context to be applied. Can set the structure's modification date. * @return the updated structure * @throws PortalException if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map nameMap, java.util.Map descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.updateStructure(groupId, parentStructureId, classNameId, structureKey, nameMap, descriptionMap, xsd, serviceContext); } /** * Updates the structure matching the structure ID, replacing its old parent * structure, name map, description map, and XSD with new ones. * * @param structureId the primary key of the structure * @param parentStructureId the primary key of the new parent structure * @param nameMap the structure's new locales and localized names * @param descriptionMap the structure's new locales and localized descriptions * @param xsd the structure's new XML schema definition * @param serviceContext the service context to be applied. Can set the structure's modification date. * @return the updated structure * @throws PortalException if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateStructure( long structureId, long parentStructureId, java.util.Map nameMap, java.util.Map descriptionMap, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.updateStructure(structureId, parentStructureId, nameMap, descriptionMap, xsd, serviceContext); } /** * Updates the structure matching the structure ID, replacing its XSD with a * new one. * * @param structureId the primary key of the structure * @param xsd the structure's new XML schema definition * @param serviceContext the service context to be applied. Can set the structure's modification date. * @return the updated structure * @throws PortalException if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.dynamicdatamapping.model.DDMStructure updateXSD( long structureId, java.lang.String xsd, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _ddmStructureLocalService.updateXSD(structureId, xsd, serviceContext); } /** * Updates the structure matching the structure ID, replacing the metadata * entry of the named field. * * @param structureId the primary key of the structure * @param fieldName the name of the field whose metadata to update * @param metadataEntryName the metadata entry's name * @param metadataEntryValue the metadata entry's value * @param serviceContext the service context to be applied. Can set the structure's modification date. * @throws PortalException if a matching structure could not be found, if the XSD was not well-formed, or if a portal exception occurred * @throws SystemException if a system exception occurred */ @Override public void updateXSDFieldMetadata(long structureId, java.lang.String fieldName, java.lang.String metadataEntryName, java.lang.String metadataEntryValue, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _ddmStructureLocalService.updateXSDFieldMetadata(structureId, fieldName, metadataEntryName, metadataEntryValue, serviceContext); } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ public DDMStructureLocalService getWrappedDDMStructureLocalService() { return _ddmStructureLocalService; } /** * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} */ public void setWrappedDDMStructureLocalService( DDMStructureLocalService ddmStructureLocalService) { _ddmStructureLocalService = ddmStructureLocalService; } @Override public DDMStructureLocalService getWrappedService() { return _ddmStructureLocalService; } @Override public void setWrappedService( DDMStructureLocalService ddmStructureLocalService) { _ddmStructureLocalService = ddmStructureLocalService; } private DDMStructureLocalService _ddmStructureLocalService; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy