|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil
public class AssetCategoryLocalServiceUtil
The utility for the asset category local service. This utility wraps AssetCategoryLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to AssetCategoryLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
AssetCategoryLocalService
,
AssetCategoryLocalServiceBaseImpl
,
AssetCategoryLocalServiceImpl
Constructor Summary | |
---|---|
AssetCategoryLocalServiceUtil()
|
Method Summary | |
---|---|
static AssetCategory |
addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database. |
static AssetCategory |
addCategory(long userId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
static void |
addCategoryResources(AssetCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addCategoryResources(AssetCategory category,
String[] communityPermissions,
String[] guestPermissions)
|
static AssetCategory |
createAssetCategory(long categoryId)
Creates a new asset category with the primary key. |
static void |
deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database. |
static void |
deleteAssetCategory(long categoryId)
Deletes the asset category with the primary key from the database. |
static void |
deleteCategory(AssetCategory category)
|
static void |
deleteCategory(long categoryId)
|
static void |
deleteVocabularyCategories(long vocabularyId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static List<AssetCategory> |
getAssetCategories(int start,
int end)
Gets a range of all the asset categories. |
static int |
getAssetCategoriesCount()
Gets the number of asset categories. |
static AssetCategory |
getAssetCategory(long categoryId)
Gets the asset category with the primary key. |
static AssetCategory |
getAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
Gets the asset category with the UUID and group id. |
static List<AssetCategory> |
getCategories()
|
static List<AssetCategory> |
getCategories(long classNameId,
long classPK)
|
static List<AssetCategory> |
getCategories(String className,
long classPK)
|
static AssetCategory |
getCategory(long categoryId)
|
static long[] |
getCategoryIds(String className,
long classPK)
|
static List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
static int |
getChildCategoriesCount(long parentCategoryId)
|
static List<AssetCategory> |
getEntryCategories(long entryId)
|
static AssetCategoryLocalService |
getService()
|
static List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
static void |
mergeCategories(long fromCategoryId,
long toCategoryId)
|
static JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
void |
setService(AssetCategoryLocalService service)
|
static AssetCategory |
updateAssetCategory(AssetCategory assetCategory)
Updates the asset category in the database. |
static AssetCategory |
updateAssetCategory(AssetCategory assetCategory,
boolean merge)
Updates the asset category in the database. |
static AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
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 |
---|
public AssetCategoryLocalServiceUtil()
Method Detail |
---|
public static AssetCategory addAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to add
SystemException
- if a system exception occurredpublic static AssetCategory createAssetCategory(long categoryId)
categoryId
- the primary key for the new asset category
public static void deleteAssetCategory(long categoryId) throws PortalException, SystemException
categoryId
- the primary key of the asset category to delete
PortalException
- if a asset category with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static AssetCategory getAssetCategory(long categoryId) throws PortalException, SystemException
categoryId
- the primary key of the asset category to get
PortalException
- if a asset category with the primary key could not be found
SystemException
- if a system exception occurredpublic static AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of asset category to getgroupId
- the group id of the asset category to get
PortalException
- if a asset category with the UUID and group id could not be found
SystemException
- if a system exception occurredpublic static List<AssetCategory> getAssetCategories(int start, int end) throws SystemException
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.
start
- the lower bound of the range of asset categories to returnend
- the upper bound of the range of asset categories to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getAssetCategoriesCount() throws SystemException
SystemException
- if a system exception occurredpublic static AssetCategory updateAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to update
SystemException
- if a system exception occurredpublic static AssetCategory updateAssetCategory(AssetCategory assetCategory, boolean merge) throws SystemException
assetCategory
- the asset category to updatemerge
- whether to merge the asset category with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static AssetCategory addCategory(long userId, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void addCategoryResources(AssetCategory category, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addCategoryResources(AssetCategory category, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void deleteCategory(AssetCategory category) throws PortalException, SystemException
PortalException
SystemException
public static void deleteCategory(long categoryId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteVocabularyCategories(long vocabularyId) throws PortalException, SystemException
PortalException
SystemException
public static List<AssetCategory> getCategories() throws SystemException
SystemException
public static List<AssetCategory> getCategories(long classNameId, long classPK) throws SystemException
SystemException
public static List<AssetCategory> getCategories(String className, long classPK) throws SystemException
SystemException
public static AssetCategory getCategory(long categoryId) throws PortalException, SystemException
PortalException
SystemException
public static long[] getCategoryIds(String className, long classPK) throws SystemException
SystemException
public static List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getChildCategoriesCount(long parentCategoryId) throws SystemException
SystemException
public static List<AssetCategory> getEntryCategories(long entryId) throws SystemException
SystemException
public static List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static void mergeCategories(long fromCategoryId, long toCategoryId) throws PortalException, SystemException
PortalException
SystemException
public static JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws SystemException
SystemException
public static AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static AssetCategoryLocalService getService()
public void setService(AssetCategoryLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |