@Deprecated
public class DDMStructureServiceSoap
extends java.lang.Object
DDMStructureServiceUtil
service
utility. The static methods of this class call the same methods of the
service utility. However, the signatures are different because it is
difficult for SOAP to support certain types.
ServiceBuilder follows certain rules in translating the methods. For example,
if the method in the service utility returns a java.util.List
,
that is translated to an array of
com.liferay.dynamic.data.mapping.model.DDMStructureSoap
. If the method in the
service utility returns a
com.liferay.dynamic.data.mapping.model.DDMStructure
, that is translated to a
com.liferay.dynamic.data.mapping.model.DDMStructureSoap
. Methods that SOAP
cannot safely wire are skipped.
The benefits of using the SOAP utility is that it is cross platform compatible. SOAP allows different languages like Java, .NET, C++, PHP, and even Perl, to call the generated services. One drawback of SOAP is that it is slow because it needs to serialize all calls into a text format (XML).
You can see a list of services at http://localhost:8080/api/axis. Set the property axis.servlet.hosts.allowed in portal.properties to configure security.
The SOAP utility is only generated for remote services.
DDMStructureServiceHttp
Constructor and Description |
---|
DDMStructureServiceSoap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DDMStructureSoap |
addStructure(long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap |
addStructure(long groupId,
long classNameId,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap |
addStructure(long groupId,
java.lang.String parentStructureKey,
long classNameId,
java.lang.String structureKey,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
java.lang.String storageType,
int type,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap |
copyStructure(long structureId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap |
copyStructure(long structureId,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
Copies a structure, creating a new structure with all the values
extracted from the original one.
|
static void |
deleteStructure(long structureId)
Deprecated.
Deletes the structure and its resources.
|
static DDMStructureSoap |
fetchStructure(long groupId,
long classNameId,
java.lang.String structureKey)
Deprecated.
Returns the structure matching the class name ID, structure key, and
group.
|
static DDMStructureSoap |
fetchStructure(long groupId,
long classNameId,
java.lang.String structureKey,
boolean includeAncestorStructures)
Deprecated.
|
static DDMStructureSoap |
getStructure(long structureId)
Deprecated.
Returns the structure with the ID.
|
static DDMStructureSoap |
getStructure(long groupId,
long classNameId,
java.lang.String structureKey)
Deprecated.
Returns the structure matching the class name ID, structure key, and
group.
|
static DDMStructureSoap |
getStructure(long groupId,
long classNameId,
java.lang.String structureKey,
boolean includeAncestorStructures)
Deprecated.
Returns the structure matching the class name ID, structure key, and
group, optionally searching ancestor sites (that have sharing enabled)
and global scoped sites.
|
static DDMStructureSoap[] |
getStructures(long companyId,
long[] groupIds,
long classNameId,
int status)
Deprecated.
|
static DDMStructureSoap[] |
getStructures(long companyId,
long[] groupIds,
long classNameId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Deprecated.
|
static DDMStructureSoap[] |
getStructures(long companyId,
long[] groupIds,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Deprecated.
|
static DDMStructureSoap[] |
getStructures(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Deprecated.
|
static int |
getStructuresCount(long companyId,
long[] groupIds,
long classNameId)
Deprecated.
|
static int |
getStructuresCount(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int status)
Deprecated.
|
static void |
revertStructure(long structureId,
java.lang.String version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap[] |
search(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int type,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator)
Deprecated.
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.
|
static DDMStructureSoap[] |
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)
Deprecated.
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.
|
static DDMStructureSoap[] |
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)
Deprecated.
Returns an ordered range of all the structures matching the groups, class
name IDs, name keyword, description keyword, storage type, and type.
|
static int |
searchCount(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int status)
Deprecated.
Returns the number of structures matching the groups and class name IDs,
and matching the keywords in the structure names and descriptions.
|
static int |
searchCount(long companyId,
long[] groupIds,
long classNameId,
java.lang.String keywords,
int type,
int status)
Deprecated.
Returns the number of structures matching the groups and class name IDs,
and matching the keywords in the structure names and descriptions.
|
static 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)
Deprecated.
Returns the number of structures matching the groups, class name IDs,
name keyword, description keyword, storage type, and type
|
static DDMStructureSoap |
updateStructure(long groupId,
long parentStructureId,
long classNameId,
java.lang.String structureKey,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
static DDMStructureSoap |
updateStructure(long structureId,
long parentStructureId,
java.lang.String[] nameMapLanguageIds,
java.lang.String[] nameMapValues,
java.lang.String[] descriptionMapLanguageIds,
java.lang.String[] descriptionMapValues,
DDMForm ddmForm,
DDMFormLayout ddmFormLayout,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
|
public static DDMStructureSoap addStructure(long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap addStructure(long groupId, long classNameId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap addStructure(long groupId, java.lang.String parentStructureKey, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, DDMForm ddmForm, DDMFormLayout ddmFormLayout, java.lang.String storageType, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap copyStructure(long structureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
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.java.rmi.RemoteException
public static DDMStructureSoap copyStructure(long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static void deleteStructure(long structureId) throws java.rmi.RemoteException
Before deleting the structure, the system verifies whether the structure is required by another entity. If it is needed, an exception is thrown.
structureId
- the primary key of the structure to be deletedjava.rmi.RemoteException
public static DDMStructureSoap fetchStructure(long groupId, long classNameId, java.lang.String structureKey) throws java.rmi.RemoteException
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 foundjava.rmi.RemoteException
public static DDMStructureSoap fetchStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap getStructure(long structureId) throws java.rmi.RemoteException
structureId
- the primary key of the structurejava.rmi.RemoteException
public static DDMStructureSoap getStructure(long groupId, long classNameId, java.lang.String structureKey) throws java.rmi.RemoteException
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 structurejava.rmi.RemoteException
public static DDMStructureSoap getStructure(long groupId, long classNameId, java.lang.String structureKey, boolean includeAncestorStructures) throws java.rmi.RemoteException
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.
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
searchjava.rmi.RemoteException
public static DDMStructureSoap[] getStructures(long companyId, long[] groupIds, long classNameId, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap[] getStructures(long companyId, long[] groupIds, long classNameId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap[] getStructures(long companyId, long[] groupIds, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap[] getStructures(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator) throws java.rmi.RemoteException
java.rmi.RemoteException
public static int getStructuresCount(long companyId, long[] groupIds, long classNameId) throws java.rmi.RemoteException
java.rmi.RemoteException
public static int getStructuresCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status) throws java.rmi.RemoteException
java.rmi.RemoteException
public static void revertStructure(long structureId, java.lang.String version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap[] search(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int type, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructure> orderByComparator) throws java.rmi.RemoteException
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.
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
)type
- the structure's type. For more information, see DDMStructureConstants
.status
- the workflow's status.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
)java.rmi.RemoteException
public static DDMStructureSoap[] 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) throws java.rmi.RemoteException
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.
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
)status
- the workflow's status.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
)java.rmi.RemoteException
public static DDMStructureSoap[] 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) throws java.rmi.RemoteException
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.
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
.status
- the workflow's status.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
)java.rmi.RemoteException
public static int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int status) throws java.rmi.RemoteException
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
)status
- the workflow's status.java.rmi.RemoteException
public static int searchCount(long companyId, long[] groupIds, long classNameId, java.lang.String keywords, int type, int status) throws java.rmi.RemoteException
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
)type
- the structure's type. For more information, see DDMStructureConstants
.status
- the workflow's status.java.rmi.RemoteException
public static 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) throws java.rmi.RemoteException
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 fieldjava.rmi.RemoteException
public static DDMStructureSoap updateStructure(long groupId, long parentStructureId, long classNameId, java.lang.String structureKey, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException
public static DDMStructureSoap updateStructure(long structureId, long parentStructureId, java.lang.String[] nameMapLanguageIds, java.lang.String[] nameMapValues, java.lang.String[] descriptionMapLanguageIds, java.lang.String[] descriptionMapValues, DDMForm ddmForm, DDMFormLayout ddmFormLayout, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws java.rmi.RemoteException
java.rmi.RemoteException