com.liferay.portlet.dynamicdatamapping.service.http
Class DDMStructureServiceHttp
java.lang.Object
com.liferay.portlet.dynamicdatamapping.service.http.DDMStructureServiceHttp
public class DDMStructureServiceHttp
- extends Object
This class provides a HTTP utility for the
DDMStructureServiceUtil
service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for
tunneling without the cost of serializing to text. The drawback is that it
only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to
configure security.
The HTTP utility is only generated for remote services.
- See Also:
DDMStructureServiceSoap
,
HttpPrincipal
,
DDMStructureServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static DDMStructure |
addStructure(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
String storageType,
int type,
ServiceContext serviceContext)
|
static DDMStructure |
copyStructure(HttpPrincipal httpPrincipal,
long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
ServiceContext serviceContext)
|
static void |
deleteStructure(HttpPrincipal httpPrincipal,
long structureId)
|
static DDMStructure |
fetchStructure(HttpPrincipal httpPrincipal,
long groupId,
String structureKey)
|
static DDMStructure |
getStructure(HttpPrincipal httpPrincipal,
long structureId)
|
static List<DDMStructure> |
search(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String keywords,
int start,
int end,
OrderByComparator orderByComparator)
|
static List<DDMStructure> |
search(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator,
int start,
int end,
OrderByComparator orderByComparator)
|
static int |
searchCount(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String keywords)
|
static int |
searchCount(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator)
|
static DDMStructure |
updateStructure(HttpPrincipal httpPrincipal,
long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
|
static DDMStructure |
updateStructure(HttpPrincipal httpPrincipal,
long groupId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DDMStructureServiceHttp
public DDMStructureServiceHttp()
addStructure
public static DDMStructure addStructure(HttpPrincipal httpPrincipal,
long groupId,
long classNameId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
String storageType,
int type,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
copyStructure
public static DDMStructure copyStructure(HttpPrincipal httpPrincipal,
long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteStructure
public static void deleteStructure(HttpPrincipal httpPrincipal,
long structureId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
fetchStructure
public static DDMStructure fetchStructure(HttpPrincipal httpPrincipal,
long groupId,
String structureKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getStructure
public static DDMStructure getStructure(HttpPrincipal httpPrincipal,
long structureId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static List<DDMStructure> search(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String keywords,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
search
public static List<DDMStructure> search(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
- Throws:
SystemException
searchCount
public static int searchCount(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String keywords)
throws SystemException
- Throws:
SystemException
searchCount
public static int searchCount(HttpPrincipal httpPrincipal,
long companyId,
long[] groupIds,
long[] classNameIds,
String name,
String description,
String storageType,
int type,
boolean andOperator)
throws SystemException
- Throws:
SystemException
updateStructure
public static DDMStructure updateStructure(HttpPrincipal httpPrincipal,
long structureId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateStructure
public static DDMStructure updateStructure(HttpPrincipal httpPrincipal,
long groupId,
String structureKey,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
String xsd,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException