@ProviderType public class DDMStructureLocalServiceWrapper extends java.lang.Object implements DDMStructureLocalService, ServiceWrapper<DDMStructureLocalService>
DDMStructureLocalService.DDMStructureLocalService| Constructor and Description |
|---|
DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService) |
| Modifier and Type | Method and Description |
|---|---|
DDMStructure |
addDDMStructure(DDMStructure ddmStructure)
Adds the d d m structure to the database.
|
void |
addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure) |
void |
addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId) |
void |
addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
java.util.List<DDMStructure> DDMStructures) |
void |
addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds) |
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 xsd,
java.lang.String storageType,
int type,
ServiceContext serviceContext)
Adds a structure referencing its parent structure.
|
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 xsd,
ServiceContext serviceContext)
Adds a structure referencing a default parent structure, using the portal
property
dynamic.data.lists.storage.type storage type and
default structure type. |
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 xsd,
java.lang.String storageType,
int type,
ServiceContext serviceContext)
Adds a structure referencing a default parent structure if the parent
structure is not found.
|
void |
addStructureResources(DDMStructure structure,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds the resources to the structure.
|
void |
addStructureResources(DDMStructure structure,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
Adds the model resources with the permissions to the structure.
|
void |
clearDLFileEntryTypeDDMStructures(long fileEntryTypeId) |
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,
ServiceContext serviceContext)
Copies a structure, creating a new structure with all the values
extracted from the original one.
|
DDMStructure |
copyStructure(long userId,
long structureId,
ServiceContext serviceContext) |
DDMStructure |
createDDMStructure(long structureId)
Creates a new d d m structure with the primary key.
|
DDMStructure |
deleteDDMStructure(DDMStructure ddmStructure)
Deletes the d d m structure from the database.
|
DDMStructure |
deleteDDMStructure(long structureId)
Deletes the d d m structure with the primary key from the database.
|
void |
deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure) |
void |
deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId) |
void |
deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
java.util.List<DDMStructure> DDMStructures) |
void |
deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds) |
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) |
DynamicQuery |
dynamicQuery() |
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
DDMStructure |
fetchDDMStructure(long structureId) |
DDMStructure |
fetchDDMStructureByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the d d m structure with the matching UUID and company.
|
DDMStructure |
fetchDDMStructureByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the d d m 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 includeGlobalStructures)
Returns the structure matching the class name ID, structure key, and
group, optionally in the global scope.
|
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
java.util.List<DDMStructure> |
getClassStructures(long classNameId)
Deprecated.
As of 6.2.0, replaced by
getClassStructures(long,
long) |
java.util.List<DDMStructure> |
getClassStructures(long classNameId,
int start,
int end)
Deprecated.
As of 6.2.0, replaced by
getClassStructures(long,
long, int, int) |
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,
OrderByComparator orderByComparator)
Returns all the structures matching the class name ID ordered by the
comparator.
|
java.util.List<DDMStructure> |
getClassStructures(long classNameId,
OrderByComparator orderByComparator)
Deprecated.
As of 6.2.0, replaced by
getClassStructures(long,
long, OrderByComparator) |
DDMStructure |
getDDMStructure(long structureId)
Returns the d d m structure with the primary key.
|
DDMStructure |
getDDMStructureByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the d d m structure with the matching UUID and company.
|
DDMStructure |
getDDMStructureByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the d d m structure matching the UUID and group.
|
java.util.List<DDMStructure> |
getDDMStructures(int start,
int end)
Returns a range of all the d d m structures.
|
int |
getDDMStructuresCount()
Returns the number of d d m structures.
|
java.util.List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId) |
java.util.List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
int start,
int end) |
java.util.List<DDMStructure> |
getDLFileEntryTypeDDMStructures(long fileEntryTypeId,
int start,
int end,
OrderByComparator orderByComparator) |
int |
getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId) |
java.util.List<DDMStructure> |
getDLFileEntryTypeStructures(long dlFileEntryTypeId)
Returns all the structures for the document library file entry type.
|
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 includeGlobalStructures)
Returns the structure matching the class name ID, structure key, and
group, optionally in the global scope.
|
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.
|
java.util.List<DDMStructure> |
getStructureEntries()
Deprecated.
As of 6.2.0, replaced by
getStructures() |
java.util.List<DDMStructure> |
getStructureEntries(long groupId)
Deprecated.
As of 6.2.0, replaced by
getStructures(long) |
java.util.List<DDMStructure> |
getStructureEntries(long groupId,
int start,
int end)
Deprecated.
As of 6.2.0, replaced by
getStructures(long, int,
int) |
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,
OrderByComparator 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 |
getWrappedDDMStructureLocalService()
Deprecated.
As of 6.1.0, replaced by
getWrappedService() |
DDMStructureLocalService |
getWrappedService() |
boolean |
hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId) |
boolean |
hasDLFileEntryTypeDDMStructures(long fileEntryTypeId) |
java.util.List<DDMStructure> |
search(long companyId,
long[] groupIds,
long[] classNameIds,
java.lang.String keywords,
int start,
int end,
OrderByComparator 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[] classNameIds,
java.lang.String name,
java.lang.String description,
java.lang.String storageType,
int type,
boolean andOperator,
int start,
int end,
OrderByComparator 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[] classNameIds,
java.lang.String keywords)
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[] classNameIds,
java.lang.String name,
java.lang.String description,
java.lang.String storageType,
int type,
boolean andOperator)
Returns the number of structures matching the groups, class name IDs,
name keyword, description keyword, storage type, and type
|
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds) |
void |
setWrappedDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
Deprecated.
As of 6.1.0, replaced by
setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService) |
void |
setWrappedService(DDMStructureLocalService ddmStructureLocalService) |
DDMStructure |
updateDDMStructure(DDMStructure ddmStructure)
Updates the d d m structure in the database or adds it if it does not yet exist.
|
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 xsd,
ServiceContext serviceContext)
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.
|
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 xsd,
ServiceContext serviceContext)
Updates the structure matching the structure ID, replacing its old parent
structure, name map, description map, and XSD with new ones.
|
DDMStructure |
updateXSD(long structureId,
java.lang.String xsd,
ServiceContext serviceContext)
Updates the structure matching the structure ID, replacing its XSD with a
new one.
|
void |
updateXSDFieldMetadata(long structureId,
java.lang.String fieldName,
java.lang.String metadataEntryName,
java.lang.String metadataEntryValue,
ServiceContext serviceContext)
Deprecated.
As of 6.2.0, with no direct replacement
|
public DDMStructureLocalServiceWrapper(DDMStructureLocalService ddmStructureLocalService)
public DDMStructure addDDMStructure(DDMStructure ddmStructure) throws SystemException
addDDMStructure in interface DDMStructureLocalServiceddmStructure - the d d m structureSystemException - if a system exception occurredpublic DDMStructure createDDMStructure(long structureId)
createDDMStructure in interface DDMStructureLocalServicestructureId - the primary key for the new d d m structurepublic DDMStructure deleteDDMStructure(long structureId) throws PortalException, SystemException
deleteDDMStructure in interface DDMStructureLocalServicestructureId - the primary key of the d d m structurePortalException - if a d d m structure with the primary key could not be foundSystemException - if a system exception occurredpublic DDMStructure deleteDDMStructure(DDMStructure ddmStructure) throws SystemException
deleteDDMStructure in interface DDMStructureLocalServiceddmStructure - the d d m structureSystemException - if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery in interface DDMStructureLocalServicepublic java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery in interface DDMStructureLocalServicedynamicQuery - the dynamic querySystemException - if a system exception occurredpublic java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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 DDMStructureLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredpublic java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 DDMStructureLocalServicedynamicQuery - 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)SystemException - if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount in interface DDMStructureLocalServicedynamicQuery - the dynamic querySystemException - if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQueryCount in interface DDMStructureLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurredpublic DDMStructure fetchDDMStructure(long structureId) throws SystemException
fetchDDMStructure in interface DDMStructureLocalServiceSystemExceptionpublic DDMStructure fetchDDMStructureByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
fetchDDMStructureByUuidAndCompanyId in interface DDMStructureLocalServiceuuid - the d d m structure's UUIDcompanyId - the primary key of the companynull if a matching d d m structure could not be foundSystemException - if a system exception occurredpublic DDMStructure fetchDDMStructureByUuidAndGroupId(java.lang.String uuid, long groupId) throws SystemException
fetchDDMStructureByUuidAndGroupId in interface DDMStructureLocalServiceuuid - the d d m structure's UUIDgroupId - the primary key of the groupnull if a matching d d m structure could not be foundSystemException - if a system exception occurredpublic DDMStructure getDDMStructure(long structureId) throws PortalException, SystemException
getDDMStructure in interface DDMStructureLocalServicestructureId - the primary key of the d d m structurePortalException - if a d d m structure with the primary key could not be foundSystemException - if a system exception occurredpublic PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel in interface PersistedModelLocalServicegetPersistedModel in interface DDMStructureLocalServicePortalExceptionSystemExceptionpublic DDMStructure getDDMStructureByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
getDDMStructureByUuidAndCompanyId in interface DDMStructureLocalServiceuuid - the d d m structure's UUIDcompanyId - the primary key of the companyPortalException - if a matching d d m structure could not be foundSystemException - if a system exception occurredpublic DDMStructure getDDMStructureByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException, SystemException
getDDMStructureByUuidAndGroupId in interface DDMStructureLocalServiceuuid - the d d m structure's UUIDgroupId - the primary key of the groupPortalException - if a matching d d m structure could not be foundSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getDDMStructures(int start, int end) throws SystemException
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 DDMStructureLocalServicestart - the lower bound of the range of d d m structuresend - the upper bound of the range of d d m structures (not inclusive)SystemException - if a system exception occurredpublic int getDDMStructuresCount()
throws SystemException
getDDMStructuresCount in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic DDMStructure updateDDMStructure(DDMStructure ddmStructure) throws SystemException
updateDDMStructure in interface DDMStructureLocalServiceddmStructure - the d d m structureSystemException - if a system exception occurredpublic void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
throws SystemException
addDLFileEntryTypeDDMStructure in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void addDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure)
throws SystemException
addDLFileEntryTypeDDMStructure in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
throws SystemException
addDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void addDLFileEntryTypeDDMStructures(long fileEntryTypeId,
java.util.List<DDMStructure> DDMStructures)
throws SystemException
addDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void clearDLFileEntryTypeDDMStructures(long fileEntryTypeId)
throws SystemException
clearDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
throws SystemException
deleteDLFileEntryTypeDDMStructure in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void deleteDLFileEntryTypeDDMStructure(long fileEntryTypeId,
DDMStructure ddmStructure)
throws SystemException
deleteDLFileEntryTypeDDMStructure in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
throws SystemException
deleteDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void deleteDLFileEntryTypeDDMStructures(long fileEntryTypeId,
java.util.List<DDMStructure> DDMStructures)
throws SystemException
deleteDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId) throws SystemException
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end) throws SystemException
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getDLFileEntryTypeDDMStructures(long fileEntryTypeId, int start, int end, OrderByComparator orderByComparator) throws SystemException
getDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic int getDLFileEntryTypeDDMStructuresCount(long fileEntryTypeId)
throws SystemException
getDLFileEntryTypeDDMStructuresCount in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic boolean hasDLFileEntryTypeDDMStructure(long fileEntryTypeId,
long structureId)
throws SystemException
hasDLFileEntryTypeDDMStructure in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic boolean hasDLFileEntryTypeDDMStructures(long fileEntryTypeId)
throws SystemException
hasDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic void setDLFileEntryTypeDDMStructures(long fileEntryTypeId,
long[] structureIds)
throws SystemException
setDLFileEntryTypeDDMStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic java.lang.String getBeanIdentifier()
getBeanIdentifier in interface DDMStructureLocalServicepublic void setBeanIdentifier(java.lang.String beanIdentifier)
setBeanIdentifier in interface DDMStructureLocalServicebeanIdentifier - the Spring bean ID for this beanpublic 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 xsd, java.lang.String storageType, int type, ServiceContext serviceContext) throws PortalException, SystemException
addStructure in interface DDMStructureLocalServiceuserId - 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 descriptionsxsd - 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.PortalException - if a user with the primary key could not be
found, if the XSD was not well-formed, or if a portal exception
occurredSystemException - if a system exception occurredpublic 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 xsd, ServiceContext serviceContext) throws PortalException, SystemException
dynamic.data.lists.storage.type storage type and
default structure type.addStructure in interface DDMStructureLocalServiceuserId - 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 descriptionsxsd - 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.PortalException - if a user with the primary key could not be
found, if the XSD was not well-formed, or if a portal exception
occurredSystemException - if a system exception occurredpublic 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 xsd, java.lang.String storageType, int type, ServiceContext serviceContext) throws PortalException, SystemException
addStructure in interface DDMStructureLocalServiceuserId - 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 descriptionsxsd - 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.PortalException - if a user with the primary key could not be
found, if the XSD was not well-formed, or if a portal exception
occurredSystemException - if a system exception occurredpublic void addStructureResources(DDMStructure structure, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
addStructureResources in interface DDMStructureLocalServicestructure - the structure to add resources toaddGroupPermissions - whether to add group permissionsaddGuestPermissions - whether to add guest permissionsPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic void addStructureResources(DDMStructure structure, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws PortalException, SystemException
addStructureResources in interface DDMStructureLocalServicestructure - the structure to add resources togroupPermissions - the group permissions to be addedguestPermissions - the guest permissions to be addedPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic 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, ServiceContext serviceContext) throws PortalException, SystemException
copyStructure in interface DDMStructureLocalServiceuserId - 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.PortalException - if a portal exception occurredSystemException - if a system exception occurredpublic DDMStructure copyStructure(long userId, long structureId, ServiceContext serviceContext) throws PortalException, SystemException
copyStructure in interface DDMStructureLocalServicePortalExceptionSystemExceptionpublic void deleteStructure(DDMStructure structure) throws PortalException, SystemException
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 DDMStructureLocalServicestructure - the structure to be deletedPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic void deleteStructure(long structureId)
throws PortalException,
SystemException
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 DDMStructureLocalServicestructureId - the primary key of the structure to be deletedPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic void deleteStructure(long groupId,
long classNameId,
java.lang.String structureKey)
throws PortalException,
SystemException
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 DDMStructureLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the structure's
related modelstructureKey - the unique string identifying the structurePortalException - if a portal exception occurredSystemException - if a system exception occurredpublic void deleteStructures(long groupId)
throws PortalException,
SystemException
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 DDMStructureLocalServicegroupId - the primary key of the groupPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic void deleteStructures(long groupId,
long classNameId)
throws PortalException,
SystemException
deleteStructures in interface DDMStructureLocalServicePortalExceptionSystemExceptionpublic DDMStructure fetchStructure(long structureId) throws SystemException
fetchStructure in interface DDMStructureLocalServicestructureId - the primary key of the structurenull if a
matching structure could not be foundSystemException - if a system exception occurredpublic DDMStructure fetchStructure(long groupId, long classNameId, java.lang.String structureKey) throws SystemException
fetchStructure in interface DDMStructureLocalServicegroupId - 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 foundSystemException - if a system exception occurredpublic DDMStructure fetchStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeGlobalStructures) throws PortalException, SystemException
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.
fetchStructure in interface DDMStructureLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the structure's
related modelstructureKey - the unique string identifying the structureincludeGlobalStructures - whether to include the global scope in
the searchnull if a matching
structure could not be foundPortalException - if a portal exception occurredSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getClassStructures(long classNameId) throws SystemException
getClassStructures(long,
long)getClassStructures in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getClassStructures(long classNameId, int start, int end) throws SystemException
getClassStructures(long,
long, int, int)getClassStructures in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId) throws SystemException
getClassStructures in interface DDMStructureLocalServicecompanyId - the primary key of the structure's companyclassNameId - the primary key of the class name for the structure's
related modelSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId, int start, int end) throws SystemException
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 DDMStructureLocalServicecompanyId - 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> getClassStructures(long companyId, long classNameId, OrderByComparator orderByComparator) throws SystemException
getClassStructures in interface DDMStructureLocalServicecompanyId - 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> getClassStructures(long classNameId, OrderByComparator orderByComparator) throws SystemException
getClassStructures(long,
long, OrderByComparator)getClassStructures in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getDLFileEntryTypeStructures(long dlFileEntryTypeId) throws SystemException
getDLFileEntryTypeStructures in interface DDMStructureLocalServicedlFileEntryTypeId - the primary key of the document library file
entry typeSystemException - if a system exception occurredpublic DDMStructure getStructure(long structureId) throws PortalException, SystemException
getStructure in interface DDMStructureLocalServicestructureId - the primary key of the structurePortalException - if a structure with the ID could not be foundSystemException - if a system exception occurredpublic DDMStructure getStructure(long groupId, long classNameId, java.lang.String structureKey) throws PortalException, SystemException
getStructure in interface DDMStructureLocalServicegroupId - 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 structurePortalException - if a matching structure could not be foundSystemException - if a system exception occurredpublic DDMStructure getStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeGlobalStructures) throws PortalException, SystemException
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.
getStructure in interface DDMStructureLocalServicegroupId - 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 structureincludeGlobalStructures - whether to include the global scope in
the searchPortalException - if a matching structure could not be foundSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructure(long groupId, java.lang.String name, java.lang.String description) throws SystemException
getStructure in interface DDMStructureLocalServicegroupId - the primary key of the structure's groupname - the structure's namedescription - the structure's descriptionSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructureEntries() throws SystemException
getStructures()getStructureEntries in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getStructureEntries(long groupId) throws SystemException
getStructures(long)getStructureEntries in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getStructureEntries(long groupId, int start, int end) throws SystemException
getStructures(long, int,
int)getStructureEntries in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getStructures() throws SystemException
getStructures in interface DDMStructureLocalServiceSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId) throws SystemException
getStructures in interface DDMStructureLocalServicegroupId - the primary key of the groupSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId, int start, int end) throws SystemException
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 DDMStructureLocalServicegroupId - 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId, long classNameId) throws SystemException
getStructures in interface DDMStructureLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the structure's
related modelSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end) throws SystemException
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 DDMStructureLocalServicegroupId - 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 DDMStructureLocalServicegroupId - 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long groupId, java.lang.String name, java.lang.String description) throws SystemException
getStructures in interface DDMStructureLocalServiceSystemExceptionpublic java.util.List<DDMStructure> getStructures(long[] groupIds) throws SystemException
getStructures in interface DDMStructureLocalServicegroupIds - the primary keys of the groupsSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long[] groupIds, long classNameId) throws SystemException
getStructures in interface DDMStructureLocalServicegroupIds - the primary keys of the groupsclassNameId - the primary key of the class name for the structure's
related modelSystemException - if a system exception occurredpublic java.util.List<DDMStructure> getStructures(long[] groupIds, long classNameId, int start, int end) throws SystemException
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 DDMStructureLocalServicegroupIds - 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)SystemException - if a system exception occurredpublic int getStructuresCount(long groupId)
throws SystemException
getStructuresCount in interface DDMStructureLocalServicegroupId - the primary key of the groupSystemException - if a system exception occurredpublic int getStructuresCount(long groupId,
long classNameId)
throws SystemException
getStructuresCount in interface DDMStructureLocalServicegroupId - the primary key of the groupclassNameId - the primary key of the class name for the structure's
related modelSystemException - if a system exception occurredpublic int getStructuresCount(long[] groupIds,
long classNameId)
throws SystemException
getStructuresCount in interface DDMStructureLocalServicegroupIds - the primary keys of the groupsclassNameId - the primary key of the class name for the structure's
related modelSystemException - if a system exception occurredpublic java.util.List<DDMStructure> search(long companyId, long[] groupIds, long[] classNameIds, java.lang.String keywords, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 DDMStructureLocalServicecompanyId - the primary key of the structure's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the class names of the models
the structures are 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)SystemException - if a system exception occurredpublic java.util.List<DDMStructure> 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, OrderByComparator orderByComparator) throws SystemException
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 DDMStructureLocalServicecompanyId - the primary key of the structure's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the class names of the models
the structures are 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)SystemException - if a system exception occurredpublic int searchCount(long companyId,
long[] groupIds,
long[] classNameIds,
java.lang.String keywords)
throws SystemException
searchCount in interface DDMStructureLocalServicecompanyId - the primary key of the structure's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the class names of the models
the structures are related tokeywords - the keywords (space separated), which may occur in the
structure's name or description (optionally null)SystemException - if a system exception occurredpublic 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 SystemException
searchCount in interface DDMStructureLocalServicecompanyId - the primary key of the structure's companygroupIds - the primary keys of the groupsclassNameIds - the primary keys of the class names of the models
the structure's are 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 fieldSystemException - if a system exception occurredpublic 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 xsd, ServiceContext serviceContext) throws PortalException, SystemException
updateStructure in interface DDMStructureLocalServicegroupId - 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
descriptionxsd - the structure's new XML schema definitionserviceContext - the service context to be applied. Can set the
structure's modification date.PortalException - if a matching structure could not be found, if
the XSD was not well-formed, or if a portal exception occurredSystemException - if a system exception occurredpublic 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 xsd, ServiceContext serviceContext) throws PortalException, SystemException
updateStructure in interface DDMStructureLocalServicestructureId - 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
descriptionsxsd - the structure's new XML schema definitionserviceContext - the service context to be applied. Can set the
structure's modification date.PortalException - if a matching structure could not be found, if
the XSD was not well-formed, or if a portal exception occurredSystemException - if a system exception occurredpublic DDMStructure updateXSD(long structureId, java.lang.String xsd, ServiceContext serviceContext) throws PortalException, SystemException
updateXSD in interface DDMStructureLocalServicestructureId - the primary key of the structurexsd - the structure's new XML schema definitionserviceContext - the service context to be applied. Can set the
structure's modification date.PortalException - if a matching structure could not be found, if
the XSD was not well-formed, or if a portal exception occurredSystemException - if a system exception occurredpublic void updateXSDFieldMetadata(long structureId,
java.lang.String fieldName,
java.lang.String metadataEntryName,
java.lang.String metadataEntryValue,
ServiceContext serviceContext)
throws PortalException,
SystemException
updateXSDFieldMetadata in interface DDMStructureLocalServicestructureId - the primary key of the structurefieldName - the name of the field whose metadata to updatemetadataEntryName - the metadata entry's namemetadataEntryValue - the metadata entry's valueserviceContext - the service context to be applied. Can set the
structure's modification date.PortalException - if a matching structure could not be found,
if the XSD was not well-formed, or if a portal exception
occurredSystemException - if a system exception occurredpublic DDMStructureLocalService getWrappedDDMStructureLocalService()
getWrappedService()public void setWrappedDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService)public DDMStructureLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<DDMStructureLocalService>public void setWrappedService(DDMStructureLocalService ddmStructureLocalService)
setWrappedService in interface ServiceWrapper<DDMStructureLocalService>