Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.http
Class AssetVocabularyServiceHttp

java.lang.Object
  extended by com.liferay.portlet.asset.service.http.AssetVocabularyServiceHttp

@ProviderType
public class AssetVocabularyServiceHttp
extends Object

Provides the HTTP utility for the AssetVocabularyServiceUtil 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:
AssetVocabularyServiceSoap, HttpPrincipal, AssetVocabularyServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetVocabularyServiceHttp()
           
 
Method Summary
static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal, long groupId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, ServiceContext serviceContext)
           
static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal, long groupId, String title, ServiceContext serviceContext)
           
static void deleteVocabularies(HttpPrincipal httpPrincipal, long[] vocabularyIds)
           
static List<AssetVocabulary> deleteVocabularies(HttpPrincipal httpPrincipal, long[] vocabularyIds, ServiceContext serviceContext)
           
static void deleteVocabulary(HttpPrincipal httpPrincipal, long vocabularyId)
           
static AssetVocabulary fetchVocabulary(HttpPrincipal httpPrincipal, long vocabularyId)
           
static List<AssetVocabulary> getCompanyVocabularies(HttpPrincipal httpPrincipal, long companyId)
           
static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal, long[] groupIds)
           
static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal, long[] groupIds, String className)
           
static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal, long[] groupIds, String className, long classTypePK)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long[] groupIds)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, boolean createDefaultVocabulary, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal, long groupId)
           
static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal, long[] groupIds)
           
static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal, long groupId, String name)
           
static AssetVocabularyDisplay getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, boolean addDefaultVocabulary, OrderByComparator<AssetVocabulary> obc)
           
static AssetVocabularyDisplay getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
static JSONObject getJSONGroupVocabularies(HttpPrincipal httpPrincipal, long groupId, String name, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
static List<AssetVocabulary> getVocabularies(HttpPrincipal httpPrincipal, long[] vocabularyIds)
           
static AssetVocabulary getVocabulary(HttpPrincipal httpPrincipal, long vocabularyId)
           
static AssetVocabularyDisplay searchVocabulariesDisplay(HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end)
           
static AssetVocabularyDisplay searchVocabulariesDisplay(HttpPrincipal httpPrincipal, long groupId, String title, boolean addDefaultVocabulary, int start, int end, Sort sort)
           
static AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal, long vocabularyId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetVocabularyServiceHttp

public AssetVocabularyServiceHttp()
Method Detail

addVocabulary

public static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            String title,
                                            Map<Locale,String> titleMap,
                                            Map<Locale,String> descriptionMap,
                                            String settings,
                                            ServiceContext serviceContext)
                                     throws PortalException
Throws:
PortalException

addVocabulary

public static AssetVocabulary addVocabulary(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            String title,
                                            ServiceContext serviceContext)
                                     throws PortalException
Throws:
PortalException

deleteVocabularies

public static void deleteVocabularies(HttpPrincipal httpPrincipal,
                                      long[] vocabularyIds)
                               throws PortalException
Throws:
PortalException

deleteVocabularies

public static List<AssetVocabulary> deleteVocabularies(HttpPrincipal httpPrincipal,
                                                       long[] vocabularyIds,
                                                       ServiceContext serviceContext)
                                                throws PortalException
Throws:
PortalException

deleteVocabulary

public static void deleteVocabulary(HttpPrincipal httpPrincipal,
                                    long vocabularyId)
                             throws PortalException
Throws:
PortalException

fetchVocabulary

public static AssetVocabulary fetchVocabulary(HttpPrincipal httpPrincipal,
                                              long vocabularyId)
                                       throws PortalException
Throws:
PortalException

getCompanyVocabularies

public static List<AssetVocabulary> getCompanyVocabularies(HttpPrincipal httpPrincipal,
                                                           long companyId)
                                                    throws PortalException
Throws:
PortalException

getGroupsVocabularies

public static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
                                                          long[] groupIds)

getGroupsVocabularies

public static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
                                                          long[] groupIds,
                                                          String className)

getGroupsVocabularies

public static List<AssetVocabulary> getGroupsVocabularies(HttpPrincipal httpPrincipal,
                                                          long[] groupIds,
                                                          String className,
                                                          long classTypePK)

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long groupId)
                                                  throws PortalException
Throws:
PortalException

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long groupId,
                                                         boolean createDefaultVocabulary)
                                                  throws PortalException
Throws:
PortalException

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long groupId,
                                                         boolean createDefaultVocabulary,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<AssetVocabulary> obc)
                                                  throws PortalException
Throws:
PortalException

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long groupId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<AssetVocabulary> obc)

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long groupId,
                                                         String name,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<AssetVocabulary> obc)

getGroupVocabularies

public static List<AssetVocabulary> getGroupVocabularies(HttpPrincipal httpPrincipal,
                                                         long[] groupIds)

getGroupVocabulariesCount

public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
                                            long groupId)

getGroupVocabulariesCount

public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
                                            long groupId,
                                            String name)

getGroupVocabulariesCount

public static int getGroupVocabulariesCount(HttpPrincipal httpPrincipal,
                                            long[] groupIds)

getGroupVocabulariesDisplay

public static AssetVocabularyDisplay getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
                                                                 long groupId,
                                                                 String name,
                                                                 int start,
                                                                 int end,
                                                                 boolean addDefaultVocabulary,
                                                                 OrderByComparator<AssetVocabulary> obc)
                                                          throws PortalException
Throws:
PortalException

getGroupVocabulariesDisplay

public static AssetVocabularyDisplay getGroupVocabulariesDisplay(HttpPrincipal httpPrincipal,
                                                                 long groupId,
                                                                 String name,
                                                                 int start,
                                                                 int end,
                                                                 OrderByComparator<AssetVocabulary> obc)
                                                          throws PortalException
Throws:
PortalException

getJSONGroupVocabularies

public static JSONObject getJSONGroupVocabularies(HttpPrincipal httpPrincipal,
                                                  long groupId,
                                                  String name,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<AssetVocabulary> obc)
                                           throws PortalException
Throws:
PortalException

getVocabularies

public static List<AssetVocabulary> getVocabularies(HttpPrincipal httpPrincipal,
                                                    long[] vocabularyIds)
                                             throws PortalException
Throws:
PortalException

getVocabulary

public static AssetVocabulary getVocabulary(HttpPrincipal httpPrincipal,
                                            long vocabularyId)
                                     throws PortalException
Throws:
PortalException

searchVocabulariesDisplay

public static AssetVocabularyDisplay searchVocabulariesDisplay(HttpPrincipal httpPrincipal,
                                                               long groupId,
                                                               String title,
                                                               boolean addDefaultVocabulary,
                                                               int start,
                                                               int end)
                                                        throws PortalException
Throws:
PortalException

searchVocabulariesDisplay

public static AssetVocabularyDisplay searchVocabulariesDisplay(HttpPrincipal httpPrincipal,
                                                               long groupId,
                                                               String title,
                                                               boolean addDefaultVocabulary,
                                                               int start,
                                                               int end,
                                                               Sort sort)
                                                        throws PortalException
Throws:
PortalException

updateVocabulary

public static AssetVocabulary updateVocabulary(HttpPrincipal httpPrincipal,
                                               long vocabularyId,
                                               String title,
                                               Map<Locale,String> titleMap,
                                               Map<Locale,String> descriptionMap,
                                               String settings,
                                               ServiceContext serviceContext)
                                        throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4