Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetCategoryServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetCategoryServiceUtil

@ProviderType
public class AssetCategoryServiceUtil
extends Object

Provides the remote service utility for AssetCategory. This utility wraps com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl and is the primary access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
AssetCategoryService, com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl, com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl

Constructor Summary
AssetCategoryServiceUtil()
           
 
Method Summary
static AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
static AssetCategory addCategory(long groupId, String title, long vocabularyId, ServiceContext serviceContext)
           
static void deleteCategories(long[] categoryIds)
           
static List<AssetCategory> deleteCategories(long[] categoryIds, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])
static void deleteCategory(long categoryId)
           
static AssetCategory fetchCategory(long categoryId)
           
static List<AssetCategory> getCategories(String className, long classPK)
           
static AssetCategory getCategory(long categoryId)
           
static String getCategoryPath(long categoryId)
           
static List<AssetCategory> getChildCategories(long parentCategoryId)
           
static List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static JSONArray getJSONSearch(long groupId, String name, long[] vocabularyIds, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long[], String, long[], int, int)
static JSONObject getJSONVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)
static JSONObject getJSONVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static AssetCategoryService getService()
           
static List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static List<AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static int getVocabularyCategoriesCount(long groupId, long vocabularyId)
           
static int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
           
static int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
           
static AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)
static List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
           
static AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
static JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end)
           
static List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
static JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end)
           
static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end)
           
static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
           
static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort)
           
static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end)
           
static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end)
           
static AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort)
           
static AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryServiceUtil

public AssetCategoryServiceUtil()
Method Detail

addCategory

public static AssetCategory addCategory(long groupId,
                                        long parentCategoryId,
                                        Map<Locale,String> titleMap,
                                        Map<Locale,String> descriptionMap,
                                        long vocabularyId,
                                        String[] categoryProperties,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

addCategory

public static AssetCategory addCategory(long groupId,
                                        String title,
                                        long vocabularyId,
                                        ServiceContext serviceContext)
                                 throws PortalException
Throws:
PortalException

deleteCategories

public static void deleteCategories(long[] categoryIds)
                             throws PortalException
Throws:
PortalException

deleteCategories

@Deprecated
public static List<AssetCategory> deleteCategories(long[] categoryIds,
                                                              ServiceContext serviceContext)
                                            throws PortalException
Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])

Throws:
PortalException

deleteCategory

public static void deleteCategory(long categoryId)
                           throws PortalException
Throws:
PortalException

fetchCategory

public static AssetCategory fetchCategory(long categoryId)
                                   throws PortalException
Throws:
PortalException

getCategories

public static List<AssetCategory> getCategories(String className,
                                                long classPK)
                                         throws PortalException
Throws:
PortalException

getCategory

public static AssetCategory getCategory(long categoryId)
                                 throws PortalException
Throws:
PortalException

getCategoryPath

public static String getCategoryPath(long categoryId)
                              throws PortalException
Throws:
PortalException

getChildCategories

public static List<AssetCategory> getChildCategories(long parentCategoryId)
                                              throws PortalException
Throws:
PortalException

getChildCategories

public static List<AssetCategory> getChildCategories(long parentCategoryId,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<AssetCategory> obc)
                                              throws PortalException
Throws:
PortalException

getJSONSearch

@Deprecated
public static JSONArray getJSONSearch(long groupId,
                                                 String name,
                                                 long[] vocabularyIds,
                                                 int start,
                                                 int end)
                               throws PortalException
Deprecated. As of 6.2.0, replaced by search(long[], String, long[], int, int)

Throws:
PortalException

getJSONVocabularyCategories

@Deprecated
public static JSONObject getJSONVocabularyCategories(long groupId,
                                                                String name,
                                                                long vocabularyId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator<AssetCategory> obc)
                                              throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)

Throws:
PortalException

getJSONVocabularyCategories

@Deprecated
public static JSONObject getJSONVocabularyCategories(long vocabularyId,
                                                                int start,
                                                                int end,
                                                                OrderByComparator<AssetCategory> obc)
                                              throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)

Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long groupId,
                                                          String name,
                                                          long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long groupId,
                                                          long parentCategoryId,
                                                          long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                          long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)
                                                   throws PortalException
Throws:
PortalException

getVocabularyCategories

public static List<AssetCategory> getVocabularyCategories(long vocabularyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator<AssetCategory> obc)
                                                   throws PortalException
Throws:
PortalException

getVocabularyCategoriesCount

public static int getVocabularyCategoriesCount(long groupId,
                                               String name,
                                               long vocabularyId)

getVocabularyCategoriesCount

public static int getVocabularyCategoriesCount(long groupId,
                                               long parentCategory,
                                               long vocabularyId)

getVocabularyCategoriesCount

public static int getVocabularyCategoriesCount(long groupId,
                                               long vocabularyId)

getVocabularyCategoriesDisplay

public static AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
                                                                  String name,
                                                                  long vocabularyId,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator<AssetCategory> obc)
                                                           throws PortalException
Throws:
PortalException

getVocabularyCategoriesDisplay

public static AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator<AssetCategory> obc)
                                                           throws PortalException
Throws:
PortalException

getVocabularyRootCategories

public static List<AssetCategory> getVocabularyRootCategories(long groupId,
                                                              long vocabularyId,
                                                              int start,
                                                              int end,
                                                              OrderByComparator<AssetCategory> obc)

getVocabularyRootCategories

@Deprecated
public static List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                                         int start,
                                                                         int end,
                                                                         OrderByComparator<AssetCategory> obc)
                                                       throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)

Throws:
PortalException

getVocabularyRootCategoriesCount

public static int getVocabularyRootCategoriesCount(long groupId,
                                                   long vocabularyId)

moveCategory

public static AssetCategory moveCategory(long categoryId,
                                         long parentCategoryId,
                                         long vocabularyId,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

search

public static List<AssetCategory> search(long groupId,
                                         String keywords,
                                         long vocabularyId,
                                         int start,
                                         int end,
                                         OrderByComparator<AssetCategory> obc)

search

public static JSONArray search(long groupId,
                               String name,
                               String[] categoryProperties,
                               int start,
                               int end)
                        throws PortalException
Throws:
PortalException

search

public static JSONArray search(long[] groupIds,
                               String name,
                               long[] vocabularyIds,
                               int start,
                               int end)
                        throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                           String title,
                                                           long parentCategoryId,
                                                           long vocabularyId,
                                                           int start,
                                                           int end)
                                                    throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                           String title,
                                                           long vocabularyId,
                                                           long parentCategoryId,
                                                           int start,
                                                           int end,
                                                           Sort sort)
                                                    throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                           String title,
                                                           long vocabularyId,
                                                           int start,
                                                           int end)
                                                    throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                           String title,
                                                           long[] parentCategoryIds,
                                                           long[] vocabularyIds,
                                                           int start,
                                                           int end)
                                                    throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                           String title,
                                                           long[] vocabularyIds,
                                                           long[] parentCategoryIds,
                                                           int start,
                                                           int end,
                                                           Sort sort)
                                                    throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public static AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                           String title,
                                                           long[] vocabularyIds,
                                                           int start,
                                                           int end)
                                                    throws PortalException
Throws:
PortalException

updateCategory

public static AssetCategory updateCategory(long categoryId,
                                           long parentCategoryId,
                                           Map<Locale,String> titleMap,
                                           Map<Locale,String> descriptionMap,
                                           long vocabularyId,
                                           String[] categoryProperties,
                                           ServiceContext serviceContext)
                                    throws PortalException
Throws:
PortalException

getService

public static AssetCategoryService getService()

Liferay 7.0-ce-b4