@ProviderType public class DDMStructureLocalServiceWrapper extends java.lang.Object implements DDMStructureLocalService, com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureLocalService>
DDMStructureLocalService
.DDMStructureLocalService
Constructor and Description |
---|
DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService) |
Modifier and Type | Method and Description |
---|---|
DDMStructure |
addDDMStructure(DDMStructure ddmStructure)
Adds the ddm structure to the database.
|
DDMStructure |
addStructure(long userId,
long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
addStructure(long userId,
long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String definition,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
DDMStructure |
addStructure(long userId,
long groupId,
long classNameId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
addStructure(long userId,
long groupId,
long classNameId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String definition,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 2.1.0, replaced by
#addStructure(long, long,
long, Map, Map, DDMForm, DDMFormLayout, ServiceContext) |
DDMStructure |
addStructure(long userId,
long groupId,
java.lang.String parentStructureKey,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
addStructure(long userId,
long groupId,
java.lang.String parentStructureKey,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String definition,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
void |
addStructureResources(DDMStructure structure,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the structure.
|
void |
addStructureResources(DDMStructure structure,
com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions)
Adds the model resources with the permissions to the structure.
|
DDMStructure |
copyStructure(long userId,
long structureId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Copies a structure, creating a new structure with all the values
extracted from the original one.
|
DDMStructure |
copyStructure(long userId,
long structureId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
createDDMStructure(long structureId)
Creates a new ddm structure with the primary key.
|
DDMStructure |
deleteDDMStructure(DDMStructure ddmStructure)
Deletes the ddm structure from the database.
|
DDMStructure |
deleteDDMStructure(long structureId)
Deletes the ddm structure with the primary key from the database.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteStructure(DDMStructure structure)
Deletes the structure and its resources.
|
void |
deleteStructure(long structureId)
Deletes the structure and its resources.
|
void |
deleteStructure(long groupId,
long classNameId,
java.lang.String structureKey)
Deletes the matching structure and its resources.
|
void |
deleteStructures(long groupId)
Deletes all the structures of the group.
|
void |
deleteStructures(long groupId,
long classNameId) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
DDMStructure |
fetchDDMStructure(long structureId) |
DDMStructure |
fetchDDMStructureByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm structure matching the UUID and group.
|
DDMStructure |
fetchStructure(long structureId)
Returns the structure with the ID.
|
DDMStructure |
fetchStructure(long groupId,
long classNameId,
java.lang.String structureKey)
Returns the structure matching the class name ID, structure key, and
group.
|
DDMStructure |
fetchStructure(long groupId,
long classNameId,
java.lang.String structureKey,
boolean includeAncestorStructures)
Returns the structure matching the class name ID, structure key, and
group, optionally searching ancestor sites (that have sharing enabled)
and global scoped sites.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<DDMStructure> |
getChildrenStructures(long parentStructureId) |
java.util.List<DDMStructure> |
getClassStructures(long companyId,
long classNameId)
Returns all the structures matching the class name ID.
|
java.util.List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
int start,
int end)
Returns a range of all the structures matching the class name ID.
|
java.util.List<DDMStructure> |
getClassStructures(long companyId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Returns all the structures matching the class name ID ordered by the
comparator.
|
DDMStructure |
getDDMStructure(long structureId)
Returns the ddm structure with the primary key.
|
DDMStructure |
getDDMStructureByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the ddm structure matching the UUID and group.
|
java.util.List<DDMStructure> |
getDDMStructures(int start,
int end)
Returns a range of all the ddm structures.
|
java.util.List<DDMStructure> |
getDDMStructuresByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the ddm structures matching the UUID and company.
|
java.util.List<DDMStructure> |
getDDMStructuresByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Returns a range of ddm structures matching the UUID and company.
|
int |
getDDMStructuresCount()
Returns the number of ddm structures.
|
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
DDMStructure |
getStructure(long structureId)
Returns the structure with the ID.
|
DDMStructure |
getStructure(long groupId,
long classNameId,
java.lang.String structureKey)
Returns the structure matching the class name ID, structure key, and
group.
|
DDMStructure |
getStructure(long groupId,
long classNameId,
java.lang.String structureKey,
boolean includeAncestorStructures)
Returns the structure matching the class name ID, structure key, and
group, optionally searching ancestor sites (that have sharing enabled)
and global scoped sites.
|
java.util.List<DDMStructure> |
getStructure(long groupId,
java.lang.String name,
java.lang.String description)
Returns all the structures matching the group, name, and description.
|
DDMForm |
getStructureDDMForm(DDMStructure structure) |
java.util.List<DDMStructure> |
getStructures()
Returns all the structures present in the system.
|
java.util.List<DDMStructure> |
getStructures(long groupId)
Returns all the structures present in the group.
|
java.util.List<DDMStructure> |
getStructures(long[] groupIds)
Returns all the structures belonging to the groups.
|
java.util.List<DDMStructure> |
getStructures(long[] groupIds,
long classNameId)
Returns all the structures matching the class name ID and belonging to
the groups.
|
java.util.List<DDMStructure> |
getStructures(long[] groupIds,
long classNameId,
int start,
int end)
Returns a range of all the structures matching the class name ID and
belonging to the groups.
|
java.util.List<DDMStructure> |
getStructures(long groupId,
int start,
int end)
Returns a range of all the structures belonging to the group.
|
java.util.List<DDMStructure> |
getStructures(long groupId,
long classNameId)
Returns all the structures matching class name ID and group.
|
java.util.List<DDMStructure> |
getStructures(long groupId,
long classNameId,
int start,
int end)
Returns a range of all the structures that match the class name ID and
group.
|
java.util.List<DDMStructure> |
getStructures(long groupId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Returns an ordered range of all the structures matching the class name ID
and group.
|
java.util.List<DDMStructure> |
getStructures(long groupId,
java.lang.String name,
java.lang.String description) |
int |
getStructuresCount(long groupId)
Returns the number of structures belonging to the group.
|
int |
getStructuresCount(long[] groupIds,
long classNameId)
Returns the number of structures matching the class name ID and belonging
to the groups.
|
int |
getStructuresCount(long groupId,
long classNameId)
Returns the number of structures matching the class name ID and group.
|
DDMStructureLocalService |
getWrappedService() |
java.lang.String |
prepareLocalizedDefinitionForImport(DDMStructure structure,
java.util.Locale defaultImportLocale) |
void |
revertStructure(long userId,
long structureId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<DDMStructure> |
search(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
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.
|
java.util.List<DDMStructure> |
search(long companyId,
long[] groupIds,
long classNameId,
java.lang.String name,
java.lang.String description,
java.lang.String storageType,
int type,
int status,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Returns an ordered range of all the structures matching the groups, class
name IDs, name keyword, description keyword, storage type, and type.
|
int |
searchCount(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int status)
Returns the number of structures matching the groups and class name IDs,
and matching the keywords in the structure names and descriptions.
|
int |
searchCount(long companyId,
long[] groupIds,
long classNameId,
java.lang.String name,
java.lang.String description,
java.lang.String storageType,
int type,
int status,
boolean andOperator)
Returns the number of structures matching the groups, class name IDs,
name keyword, description keyword, storage type, and type
|
void |
setWrappedService(DDMStructureLocalService ddmStructureLocalService) |
DDMStructure |
updateDDMStructure(DDMStructure ddmStructure)
Updates the ddm structure in the database or adds it if it does not yet exist.
|
DDMStructure |
updateStructure(long userId,
long structureId,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
updateStructure(long userId,
long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
updateStructure(long userId,
long structureId,
long parentStructureId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
DDMStructure |
updateStructure(long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String definition,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 2.1.0, replaced by
updateStructure(long, long,
long, long, String, Map, Map, DDMForm, DDMFormLayout,
ServiceContext) |
DDMStructure |
updateStructure(long structureId,
long parentStructureId,
java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.lang.String definition,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 2.1.0, replaced by
updateStructure(long, long,
long, Map, Map, DDMForm, DDMFormLayout, ServiceContext) |
DDMStructure |
updateXSD(long structureId,
java.lang.String definition,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of 2.1.0, replaced by
#updateStructure(long,
DDMForm, DDMFormLayout, ServiceContext) |
public DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService)
public DDMForm getStructureDDMForm(DDMStructure structure) throws com.liferay.portal.kernel.exception.PortalException
getStructureDDMForm
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure addDDMStructure(DDMStructure ddmStructure)
addDDMStructure
in interface DDMStructureLocalService
ddmStructure
- the ddm structurepublic DDMStructure addStructure(long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure addStructure(long userId, long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String definition, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure(long, long,
String, long, String, Map, Map, DDMForm, DDMFormLayout,
String, int, ServiceContext)
addStructure
in interface DDMStructureLocalService
userId
- the primary key of the structure's creator/ownergroupId
- the primary key of the groupparentStructureKey
- the unique string identifying the parent
structure (optionally null
)classNameId
- the primary key of the class name for the
structure's related modelstructureKey
- the unique string identifying the structure
(optionally null
)nameMap
- the structure's locales and localized namesdescriptionMap
- the structure's locales and localized
descriptionsdefinition
- the structure's XML schema definitionstorageType
- the structure's storage type. It can be "xml" or
"expando". For more information, see StorageType
.type
- the structure's type. For more information, see DDMStructureConstants
.serviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions and
group permissions for the structure.com.liferay.portal.kernel.exception.PortalException
public DDMStructure addStructure(long userId, long groupId, long classNameId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure addStructure(long userId, long groupId, long classNameId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#addStructure(long, long,
long, Map, Map, DDMForm, DDMFormLayout, ServiceContext)
dynamic.data.lists.storage.type
storage type and
default structure type.addStructure
in interface DDMStructureLocalService
userId
- the primary key of the structure's creator/ownergroupId
- the primary key of the groupclassNameId
- the primary key of the class name for the
structure's related modelnameMap
- the structure's locales and localized namesdescriptionMap
- the structure's locales and localized
descriptionsdefinition
- the structure's XML schema definitionserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions,
and group permissions for the structure.com.liferay.portal.kernel.exception.PortalException
public DDMStructure addStructure(long userId, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure addStructure(long userId, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String definition, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure(long, long,
long, long, String, Map, Map, DDMForm, DDMFormLayout, String,
int, ServiceContext)
addStructure
in interface DDMStructureLocalService
userId
- the primary key of the structure's creator/ownergroupId
- the primary key of the groupparentStructureId
- the primary key of the parent structure
(optionally DDMStructureConstants#DEFAULT_PARENT_STRUCTURE_ID
)classNameId
- the primary key of the class name for the
structure's related modelstructureKey
- the unique string identifying the structure
(optionally null
)nameMap
- the structure's locales and localized namesdescriptionMap
- the structure's locales and localized
descriptionsdefinition
- the structure's XML schema definitionstorageType
- the structure's storage type. It can be "xml" or
"expando". For more information, see StorageType
.type
- the structure's type. For more information, see DDMStructureConstants
.serviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions,
and group permissions for the structure.com.liferay.portal.kernel.exception.PortalException
public DDMStructure copyStructure(long userId, long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure copyStructure(long userId, long structureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyStructure
in interface DDMStructureLocalService
userId
- the primary key of the structure's creator/ownerstructureId
- the primary key of the structure to be copiednameMap
- the new structure's locales and localized namesdescriptionMap
- the new structure's locales and localized
descriptionsserviceContext
- the service context to be applied. Can set the
UUID, creation date, modification date, guest permissions, and
group permissions for the structure.com.liferay.portal.kernel.exception.PortalException
public DDMStructure createDDMStructure(long structureId)
createDDMStructure
in interface DDMStructureLocalService
structureId
- the primary key for the new ddm structurepublic DDMStructure deleteDDMStructure(DDMStructure ddmStructure)
deleteDDMStructure
in interface DDMStructureLocalService
ddmStructure
- the ddm structurepublic DDMStructure deleteDDMStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException
deleteDDMStructure
in interface DDMStructureLocalService
structureId
- the primary key of the ddm structurePortalException
- if a ddm structure with the primary key could not be foundpublic DDMStructure fetchDDMStructure(long structureId)
fetchDDMStructure
in interface DDMStructureLocalService
public DDMStructure fetchDDMStructureByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchDDMStructureByUuidAndGroupId
in interface DDMStructureLocalService
uuid
- the ddm structure's UUIDgroupId
- the primary key of the groupnull
if a matching ddm structure could not be foundpublic DDMStructure fetchStructure(long groupId, long classNameId, java.lang.String structureKey)
fetchStructure
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelstructureKey
- the unique string identifying the structurenull
if a matching
structure could not be foundpublic DDMStructure fetchStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws com.liferay.portal.kernel.exception.PortalException
This method first searches in the group. If the structure is still not
found and includeAncestorStructures
is set to
true
, this method searches the group's ancestor sites (that
have sharing enabled) and lastly searches global scoped sites.
fetchStructure
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelstructureKey
- the unique string identifying the structureincludeAncestorStructures
- whether to include ancestor sites (that
have sharing enabled) and include global scoped sites in the
searchnull
if a matching
structure could not be foundcom.liferay.portal.kernel.exception.PortalException
public DDMStructure fetchStructure(long structureId)
fetchStructure
in interface DDMStructureLocalService
structureId
- the primary key of the structurenull
if a
matching structure could not be foundpublic DDMStructure getDDMStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException
getDDMStructure
in interface DDMStructureLocalService
structureId
- the primary key of the ddm structurePortalException
- if a ddm structure with the primary key could not be foundpublic DDMStructure getDDMStructureByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getDDMStructureByUuidAndGroupId
in interface DDMStructureLocalService
uuid
- the ddm structure's UUIDgroupId
- the primary key of the groupPortalException
- if a matching ddm structure could not be foundpublic DDMStructure getStructure(long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException
getStructure
in interface DDMStructureLocalService
groupId
- the primary key of the structure's groupclassNameId
- the primary key of the class name for the structure's
related modelstructureKey
- the unique string identifying the structurecom.liferay.portal.kernel.exception.PortalException
public DDMStructure getStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws com.liferay.portal.kernel.exception.PortalException
This method first searches in the group. If the structure is still not
found and includeAncestorStructures
is set to
true
, this method searches the group's ancestor sites (that
have sharing enabled) and lastly searches global scoped sites.
getStructure
in interface DDMStructureLocalService
groupId
- the primary key of the structure's groupclassNameId
- the primary key of the class name for the structure's
related modelstructureKey
- the unique string identifying the structureincludeAncestorStructures
- whether to include ancestor sites (that
have sharing enabled) and include global scoped sites in the
search in the searchcom.liferay.portal.kernel.exception.PortalException
public DDMStructure getStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException
getStructure
in interface DDMStructureLocalService
structureId
- the primary key of the structurecom.liferay.portal.kernel.exception.PortalException
public DDMStructure updateDDMStructure(DDMStructure ddmStructure)
updateDDMStructure
in interface DDMStructureLocalService
ddmStructure
- the ddm structure@Deprecated public DDMStructure updateStructure(long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure(long, long,
long, long, String, Map, Map, DDMForm, DDMFormLayout,
ServiceContext)
updateStructure
in interface DDMStructureLocalService
groupId
- the primary key of the groupparentStructureId
- the primary key of the new parent structureclassNameId
- the primary key of the class name for the
structure's related modelstructureKey
- the unique string identifying the structurenameMap
- the structure's new locales and localized namesdescriptionMap
- the structure's new locales and localized
descriptiondefinition
- the structure's new XML schema definitionserviceContext
- the service context to be applied. Can set the
structure's modification date.com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure updateStructure(long structureId, long parentStructureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure(long, long,
long, Map, Map, DDMForm, DDMFormLayout, ServiceContext)
updateStructure
in interface DDMStructureLocalService
structureId
- the primary key of the structureparentStructureId
- the primary key of the new parent structurenameMap
- the structure's new locales and localized namesdescriptionMap
- the structure's new locales and localized
descriptionsdefinition
- the structure's new XML schema definitionserviceContext
- the service context to be applied. Can set the
structure's modification date.com.liferay.portal.kernel.exception.PortalException
public DDMStructure updateStructure(long userId, long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure updateStructure(long userId, long structureId, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure updateStructure(long userId, long structureId, long parentStructureId, java.util.Map<java.util.Locale,java.lang.String> nameMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure updateXSD(long structureId, java.lang.String definition, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
#updateStructure(long,
DDMForm, DDMFormLayout, ServiceContext)
updateXSD
in interface DDMStructureLocalService
structureId
- the primary key of the structuredefinition
- the structure's new XML schema definitionserviceContext
- the service context to be applied. Can set the
structure's modification date.com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface DDMStructureLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface DDMStructureLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface DDMStructureLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface DDMStructureLocalService
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface DDMStructureLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface DDMStructureLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
public int getDDMStructuresCount()
getDDMStructuresCount
in interface DDMStructureLocalService
public int getStructuresCount(long groupId)
getStructuresCount
in interface DDMStructureLocalService
groupId
- the primary key of the grouppublic int getStructuresCount(long groupId, long classNameId)
getStructuresCount
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelpublic int getStructuresCount(long[] groupIds, long classNameId)
getStructuresCount
in interface DDMStructureLocalService
groupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name for the structure's
related modelpublic int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status)
searchCount
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companygroupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name of the model the
structure is related tokeywords
- the keywords (space separated), which may occur in the
structure's name or description (optionally null
)public int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, int status, boolean andOperator)
searchCount
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companygroupIds
- the primary keys of the groupsclassNameId
- name
- the name keywordsdescription
- the description keywordsstorageType
- the structure's storage type. It can be "xml" or
"expando". For more information, see StorageType
.type
- the structure's type. For more information, see DDMStructureConstants
.andOperator
- whether every field must match its keywords, or just
one fieldpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDMStructureLocalService
public java.lang.String prepareLocalizedDefinitionForImport(DDMStructure structure, java.util.Locale defaultImportLocale)
prepareLocalizedDefinitionForImport
in interface DDMStructureLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface DDMStructureLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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 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 QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from 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.
dynamicQuery
in interface DDMStructureLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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 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 QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from 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.
dynamicQuery
in interface DDMStructureLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public java.util.List<DDMStructure> getChildrenStructures(long parentStructureId)
getChildrenStructures
in interface DDMStructureLocalService
public java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId)
getClassStructures
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companyclassNameId
- the primary key of the class name for the structure's
related modelpublic java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
getClassStructures
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companyclassNameId
- the primary key of the class name for the structure's
related modelorderByComparator
- the comparator to order the structures
(optionally null
)public java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId, int start, int end)
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 QueryUtil#ALL_POS
will return the full
result set.
getClassStructures
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companyclassNameId
- the primary key of the class name for the structure's
related modelstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)public java.util.List<DDMStructure> getDDMStructures(int start, int end)
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 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 QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from 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.
getDDMStructures
in interface DDMStructureLocalService
start
- the lower bound of the range of ddm structuresend
- the upper bound of the range of ddm structures (not inclusive)public java.util.List<DDMStructure> getDDMStructuresByUuidAndCompanyId(java.lang.String uuid, long companyId)
getDDMStructuresByUuidAndCompanyId
in interface DDMStructureLocalService
uuid
- the UUID of the ddm structurescompanyId
- the primary key of the companypublic java.util.List<DDMStructure> getDDMStructuresByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
getDDMStructuresByUuidAndCompanyId
in interface DDMStructureLocalService
uuid
- the UUID of the ddm structurescompanyId
- the primary key of the companystart
- the lower bound of the range of ddm structuresend
- the upper bound of the range of ddm structures (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public java.util.List<DDMStructure> getStructure(long groupId, java.lang.String name, java.lang.String description)
getStructure
in interface DDMStructureLocalService
groupId
- the primary key of the structure's groupname
- the structure's namedescription
- the structure's descriptionpublic java.util.List<DDMStructure> getStructures()
getStructures
in interface DDMStructureLocalService
public java.util.List<DDMStructure> getStructures(long groupId)
getStructures
in interface DDMStructureLocalService
groupId
- the primary key of the grouppublic java.util.List<DDMStructure> getStructures(long groupId, int start, int end)
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 QueryUtil#ALL_POS
will return the full
result set.
getStructures
in interface DDMStructureLocalService
groupId
- the primary key of the groupstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)public java.util.List<DDMStructure> getStructures(long groupId, java.lang.String name, java.lang.String description)
getStructures
in interface DDMStructureLocalService
public java.util.List<DDMStructure> getStructures(long groupId, long classNameId)
getStructures
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelpublic java.util.List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end)
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 QueryUtil#ALL_POS
will return the full
result set.
getStructures
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)public java.util.List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
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 QueryUtil#ALL_POS
will return the full
result set.
getStructures
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)orderByComparator
- the comparator to order the structures
(optionally null
)public java.util.List<DDMStructure> getStructures(long[] groupIds)
getStructures
in interface DDMStructureLocalService
groupIds
- the primary keys of the groupspublic java.util.List<DDMStructure> getStructures(long[] groupIds, long classNameId)
getStructures
in interface DDMStructureLocalService
groupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name for the structure's
related modelpublic java.util.List<DDMStructure> getStructures(long[] groupIds, long classNameId, int start, int end)
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 QueryUtil#ALL_POS
will return the full
result set.
getStructures
in interface DDMStructureLocalService
groupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name for the structure's
related modelstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)public java.util.List<DDMStructure> search(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
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 QueryUtil#ALL_POS
will return the full
result set.
search
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companygroupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name of the model the
structure is related tokeywords
- the keywords (space separated), which may occur in the
structure's name or description (optionally null
)start
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)orderByComparator
- the comparator to order the structures
(optionally null
)public java.util.List<DDMStructure> search(long companyId, long[] groupIds, long classNameId, java.lang.String name, java.lang.String description, java.lang.String storageType, int type, int status, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
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 QueryUtil#ALL_POS
will return the full
result set.
search
in interface DDMStructureLocalService
companyId
- the primary key of the structure's companygroupIds
- the primary keys of the groupsclassNameId
- the primary key of the class name of the model the
structure is related toname
- the name keywordsdescription
- the description keywordsstorageType
- the structure's storage type. It can be "xml" or
"expando". For more information, see StorageType
.type
- the structure's type. For more information, see DDMStructureConstants
.andOperator
- whether every field must match its keywords, or just
one fieldstart
- the lower bound of the range of structures to returnend
- the upper bound of the range of structures to return (not
inclusive)orderByComparator
- the comparator to order the structures
(optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface DDMStructureLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface DDMStructureLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic void addStructureResources(DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addStructureResources
in interface DDMStructureLocalService
structure
- the structure to add resources toaddGroupPermissions
- whether to add group permissionsaddGuestPermissions
- whether to add guest permissionscom.liferay.portal.kernel.exception.PortalException
public void addStructureResources(DDMStructure structure, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
addStructureResources
in interface DDMStructureLocalService
structure
- the structure to add resources tomodelPermissions
- the model permissions to be addedcom.liferay.portal.kernel.exception.PortalException
public void deleteStructure(DDMStructure structure) throws com.liferay.portal.kernel.exception.PortalException
Before deleting the structure, this method verifies whether the structure is required by another entity. If it is needed, an exception is thrown.
deleteStructure
in interface DDMStructureLocalService
structure
- the structure to be deletedcom.liferay.portal.kernel.exception.PortalException
public void deleteStructure(long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException
Before deleting the structure, the system verifies whether the structure is required by another entity. If it is needed, an exception is thrown.
deleteStructure
in interface DDMStructureLocalService
groupId
- the primary key of the groupclassNameId
- the primary key of the class name for the structure's
related modelstructureKey
- the unique string identifying the structurecom.liferay.portal.kernel.exception.PortalException
public void deleteStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException
Before deleting the structure, the system verifies whether the structure is required by another entity. If it is needed, an exception is thrown.
deleteStructure
in interface DDMStructureLocalService
structureId
- the primary key of the structure to be deletedcom.liferay.portal.kernel.exception.PortalException
public void deleteStructures(long groupId) throws com.liferay.portal.kernel.exception.PortalException
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.
deleteStructures
in interface DDMStructureLocalService
groupId
- the primary key of the groupcom.liferay.portal.kernel.exception.PortalException
public void deleteStructures(long groupId, long classNameId) throws com.liferay.portal.kernel.exception.PortalException
deleteStructures
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public void revertStructure(long userId, long structureId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertStructure
in interface DDMStructureLocalService
com.liferay.portal.kernel.exception.PortalException
public DDMStructureLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureLocalService>
public void setWrappedService(DDMStructureLocalService ddmStructureLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureLocalService>