|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface AssetCategoryLocalService
The interface for the asset category local service.
Never modify or reference this interface directly. Always use AssetCategoryLocalServiceUtil
to access the asset category local service. Add custom service methods to AssetCategoryLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
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.
AssetCategoryLocalServiceUtil
,
AssetCategoryLocalServiceBaseImpl
,
AssetCategoryLocalServiceImpl
Method Summary | |
---|---|
AssetCategory |
addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database. |
AssetCategory |
addCategory(long userId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
void |
addCategoryResources(AssetCategory category,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(AssetCategory category,
String[] communityPermissions,
String[] guestPermissions)
|
AssetCategory |
createAssetCategory(long categoryId)
Creates a new asset category with the primary key. |
void |
deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database. |
void |
deleteAssetCategory(long categoryId)
Deletes the asset category with the primary key from the database. |
void |
deleteCategory(AssetCategory category)
|
void |
deleteCategory(long categoryId)
|
void |
deleteVocabularyCategories(long vocabularyId)
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
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. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
List<AssetCategory> |
getAssetCategories(int start,
int end)
Gets a range of all the asset categories. |
int |
getAssetCategoriesCount()
Gets the number of asset categories. |
AssetCategory |
getAssetCategory(long categoryId)
Gets the asset category with the primary key. |
AssetCategory |
getAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
Gets the asset category with the UUID and group id. |
List<AssetCategory> |
getCategories()
|
List<AssetCategory> |
getCategories(long classNameId,
long classPK)
|
List<AssetCategory> |
getCategories(String className,
long classPK)
|
AssetCategory |
getCategory(long categoryId)
|
long[] |
getCategoryIds(String className,
long classPK)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
int |
getChildCategoriesCount(long parentCategoryId)
|
List<AssetCategory> |
getEntryCategories(long entryId)
|
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
void |
mergeCategories(long fromCategoryId,
long toCategoryId)
|
JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
AssetCategory |
updateAssetCategory(AssetCategory assetCategory)
Updates the asset category in the database. |
AssetCategory |
updateAssetCategory(AssetCategory assetCategory,
boolean merge)
Updates the asset category in the database. |
AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
Method Detail |
---|
AssetCategory addAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to add
SystemException
- if a system exception occurredAssetCategory createAssetCategory(long categoryId)
categoryId
- the primary key for the new asset category
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 occurredvoid deleteAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to delete
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredList 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 occurredList 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 occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getAssetCategoriesCount() throws SystemException
SystemException
- if a system exception occurredAssetCategory updateAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category to update
SystemException
- if a system exception occurredAssetCategory 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 occurredAssetCategory addCategory(long userId, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void addCategoryResources(AssetCategory category, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addCategoryResources(AssetCategory category, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
void deleteCategory(AssetCategory category) throws PortalException, SystemException
PortalException
SystemException
void deleteCategory(long categoryId) throws PortalException, SystemException
PortalException
SystemException
void deleteVocabularyCategories(long vocabularyId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(long classNameId, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(String className, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getCategory(long categoryId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getCategoryIds(String className, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildCategoriesCount(long parentCategoryId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getEntryCategories(long entryId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
void mergeCategories(long fromCategoryId, long toCategoryId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws SystemException
SystemException
AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, Map<Locale,String> titleMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |