@ProviderType public class DDMStructureServiceWrapper extends java.lang.Object implements DDMStructureService, com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureService>
DDMStructureService
.DDMStructureService
Constructor and Description |
---|
DDMStructureServiceWrapper(DDMStructureService ddmStructureService) |
Modifier and Type | Method and Description |
---|---|
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 xsd,
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 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 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,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
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 xsd,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
DDMStructure |
copyStructure(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 structureId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteStructure(long structureId)
Deletes the structure and its resources.
|
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) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
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> |
getStructures(long companyId,
long[] groupIds,
long classNameId,
int status) |
java.util.List<DDMStructure> |
getStructures(long companyId,
long[] groupIds,
long classNameId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator) |
DDMStructureService |
getWrappedService() |
void |
revertStructure(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(DDMStructureService ddmStructureService) |
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,
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, 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,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext 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,
Map, Map, DDMForm, DDMFormLayout, ServiceContext) |
public DDMStructureServiceWrapper(DDMStructureService ddmStructureService)
public DDMStructure addStructure(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 DDMStructureService
com.liferay.portal.kernel.exception.PortalException
@Deprecated public DDMStructure addStructure(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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addStructure(long, long,
long, String, Map, Map, DDMForm, DDMFormLayout, String, int,
ServiceContext)
addStructure
in interface DDMStructureService
groupId
- 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.com.liferay.portal.kernel.exception.PortalException
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, 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 DDMStructureService
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 xsd, 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 DDMStructureService
userId
- the primary key of the structure's creator/ownergroupId
- the primary key of the groupparentStructureKey
- the unique string identifying the
structureclassNameId
- the primary key of the class name for the
structure's related modelstructureKey
- unique string identifying the structure
(optionally null
)nameMap
- the structure's locales and localized namesdescriptionMap
- the structure's locales and localized
descriptionsxsd
- the XML schema definition of the structurestorageType
- the storage type of the structure. 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. Must have
the ddmResource
attribute to check permissions.
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 DDMStructureService
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 xsd, 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 DDMStructureService
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
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.com.liferay.portal.kernel.exception.PortalException
public DDMStructure copyStructure(long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
copyStructure
in interface DDMStructureService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure copyStructure(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 DDMStructureService
structureId
- 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 fetchStructure(long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException
fetchStructure
in interface DDMStructureService
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 foundcom.liferay.portal.kernel.exception.PortalException
public DDMStructure fetchStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws com.liferay.portal.kernel.exception.PortalException
fetchStructure
in interface DDMStructureService
com.liferay.portal.kernel.exception.PortalException
public DDMStructure getStructure(long groupId, long classNameId, java.lang.String structureKey) throws com.liferay.portal.kernel.exception.PortalException
getStructure
in interface DDMStructureService
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 DDMStructureService
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
searchcom.liferay.portal.kernel.exception.PortalException
public DDMStructure getStructure(long structureId) throws com.liferay.portal.kernel.exception.PortalException
getStructure
in interface DDMStructureService
structureId
- the primary key of the structurecom.liferay.portal.kernel.exception.PortalException
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, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure
in interface DDMStructureService
com.liferay.portal.kernel.exception.PortalException
@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, String, Map, Map, DDMForm, DDMFormLayout,
ServiceContext)
updateStructure
in interface DDMStructureService
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
modification date.com.liferay.portal.kernel.exception.PortalException
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, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStructure
in interface DDMStructureService
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,
Map, Map, DDMForm, DDMFormLayout, ServiceContext)
updateStructure
in interface DDMStructureService
structureId
- the primary key of the structureparentStructureId
- the new parent structure primary keynameMap
- the structure's new locales and localized namesdescriptionMap
- the structure's new locales and localized
descriptiondefinition
- the new XML schema definition of the structureserviceContext
- the service context to be applied. Can set the
modification date.com.liferay.portal.kernel.exception.PortalException
public int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status)
searchCount
in interface DDMStructureService
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 DDMStructureService
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 fieldpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface DDMStructureService
public java.util.List<DDMStructure> getStructures(long companyId, long[] groupIds, long classNameId, int status)
getStructures
in interface DDMStructureService
public java.util.List<DDMStructure> getStructures(long companyId, long[] groupIds, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
getStructures
in interface DDMStructureService
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 DDMStructureService
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 DDMStructureService
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 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 DDMStructureService
structureId
- the primary key of the structure to be deletedcom.liferay.portal.kernel.exception.PortalException
public void revertStructure(long structureId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertStructure
in interface DDMStructureService
com.liferay.portal.kernel.exception.PortalException
public DDMStructureService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureService>
public void setWrappedService(DDMStructureService ddmStructureService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<DDMStructureService>