|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface AssetCategoryLocalService
Provides the local service interface for AssetCategory. 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
,
com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
,
com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
Method Summary | |
---|---|
AssetCategory |
addAssetCategory(AssetCategory assetCategory)
Adds the asset category to the database. |
void |
addAssetEntryAssetCategories(long entryId,
List<AssetCategory> AssetCategories)
|
void |
addAssetEntryAssetCategories(long entryId,
long[] categoryIds)
|
void |
addAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory)
|
void |
addAssetEntryAssetCategory(long entryId,
long categoryId)
|
AssetCategory |
addCategory(long userId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
AssetCategory |
addCategory(long userId,
String title,
long vocabularyId,
ServiceContext serviceContext)
|
void |
addCategoryResources(AssetCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(AssetCategory category,
String[] groupPermissions,
String[] guestPermissions)
|
void |
clearAssetEntryAssetCategories(long entryId)
|
AssetCategory |
createAssetCategory(long categoryId)
Creates a new asset category with the primary key. |
AssetCategory |
deleteAssetCategory(AssetCategory assetCategory)
Deletes the asset category from the database. |
AssetCategory |
deleteAssetCategory(long categoryId)
Deletes the asset category with the primary key from the database. |
void |
deleteAssetEntryAssetCategories(long entryId,
List<AssetCategory> AssetCategories)
|
void |
deleteAssetEntryAssetCategories(long entryId,
long[] categoryIds)
|
void |
deleteAssetEntryAssetCategory(long entryId,
AssetCategory assetCategory)
|
void |
deleteAssetEntryAssetCategory(long entryId,
long categoryId)
|
void |
deleteCategory(AssetCategory category)
|
void |
deleteCategory(long categoryId)
|
void |
deleteVocabularyCategories(long vocabularyId)
|
DynamicQuery |
dynamicQuery()
|
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)
Returns the number of rows that match the dynamic query. |
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query. |
AssetCategory |
fetchAssetCategory(long categoryId)
|
AssetCategory |
fetchAssetCategoryByUuidAndCompanyId(String uuid,
long companyId)
Returns the asset category with the matching UUID and company. |
AssetCategory |
fetchAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
Returns the asset category matching the UUID and group. |
AssetCategory |
fetchCategory(long categoryId)
|
List<AssetCategory> |
getAssetCategories(int start,
int end)
Returns a range of all the asset categories. |
int |
getAssetCategoriesCount()
Returns the number of asset categories. |
AssetCategory |
getAssetCategory(long categoryId)
Returns the asset category with the primary key. |
AssetCategory |
getAssetCategoryByUuidAndCompanyId(String uuid,
long companyId)
Returns the asset category with the matching UUID and company. |
AssetCategory |
getAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
Returns the asset category matching the UUID and group. |
List<AssetCategory> |
getAssetEntryAssetCategories(long entryId)
|
List<AssetCategory> |
getAssetEntryAssetCategories(long entryId,
int start,
int end)
|
List<AssetCategory> |
getAssetEntryAssetCategories(long entryId,
int start,
int end,
OrderByComparator orderByComparator)
|
int |
getAssetEntryAssetCategoriesCount(long entryId)
|
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
List<AssetCategory> |
getCategories()
|
List<AssetCategory> |
getCategories(long classNameId,
long classPK)
|
List<AssetCategory> |
getCategories(String className,
long classPK)
|
AssetCategory |
getCategory(long categoryId)
|
AssetCategory |
getCategory(String uuid,
long groupId)
|
long[] |
getCategoryIds(String className,
long classPK)
|
String[] |
getCategoryNames()
|
String[] |
getCategoryNames(long classNameId,
long classPK)
|
String[] |
getCategoryNames(String className,
long classPK)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
int |
getChildCategoriesCount(long parentCategoryId)
|
List<AssetCategory> |
getEntryCategories(long entryId)
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj)
|
List<Long> |
getSubcategoryIds(long parentCategoryId)
|
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
int |
getVocabularyCategoriesCount(long vocabularyId)
|
List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
int |
getVocabularyRootCategoriesCount(long vocabularyId)
|
boolean |
hasAssetEntryAssetCategories(long entryId)
|
boolean |
hasAssetEntryAssetCategory(long entryId,
long categoryId)
|
void |
mergeCategories(long fromCategoryId,
long toCategoryId)
|
AssetCategory |
moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
|
void |
rebuildTree(long groupId,
boolean force)
|
List<AssetCategory> |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
void |
setAssetEntryAssetCategories(long entryId,
long[] categoryIds)
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
AssetCategory |
updateAssetCategory(AssetCategory assetCategory)
Updates the asset category in the database or adds it if it does not yet exist. |
AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
Method Detail |
---|
@Indexable(type=REINDEX) AssetCategory addAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category
SystemException
- if a system exception occurredAssetCategory createAssetCategory(long categoryId)
categoryId
- the primary key for the new asset category
@Indexable(type=DELETE) AssetCategory deleteAssetCategory(long categoryId) throws PortalException, SystemException
categoryId
- the primary key of the asset category
PortalException
- if a asset category with the primary key could not be found
SystemException
- if a system exception occurred@Indexable(type=DELETE) AssetCategory deleteAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category
SystemException
- if a system exception occurredDynamicQuery dynamicQuery()
List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from AssetCategoryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from AssetCategoryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategory(long categoryId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategoryByUuidAndCompanyId(String uuid, long companyId) throws SystemException
uuid
- the asset category's UUIDcompanyId
- the primary key of the company
null
if a matching asset category could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId) throws SystemException
uuid
- the asset category's UUIDgroupId
- the primary key of the group
null
if a matching asset category could not be found
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
PortalException
- if a asset category with the primary key could not be found
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getAssetCategoryByUuidAndCompanyId(String uuid, long companyId) throws PortalException, SystemException
uuid
- the asset category's UUIDcompanyId
- the primary key of the company
PortalException
- if a matching asset category 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 asset category's UUIDgroupId
- the primary key of the group
PortalException
- if a matching asset category 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from AssetCategoryModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of asset categoriesend
- the upper bound of the range of asset categories (not inclusive)
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getAssetCategoriesCount() throws SystemException
SystemException
- if a system exception occurred@Indexable(type=REINDEX) AssetCategory updateAssetCategory(AssetCategory assetCategory) throws SystemException
assetCategory
- the asset category
SystemException
- if a system exception occurredvoid addAssetEntryAssetCategory(long entryId, long categoryId) throws SystemException
SystemException
- if a system exception occurredvoid addAssetEntryAssetCategory(long entryId, AssetCategory assetCategory) throws SystemException
SystemException
- if a system exception occurredvoid addAssetEntryAssetCategories(long entryId, long[] categoryIds) throws SystemException
SystemException
- if a system exception occurredvoid addAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories) throws SystemException
SystemException
- if a system exception occurredvoid clearAssetEntryAssetCategories(long entryId) throws SystemException
SystemException
- if a system exception occurredvoid deleteAssetEntryAssetCategory(long entryId, long categoryId) throws SystemException
SystemException
- if a system exception occurredvoid deleteAssetEntryAssetCategory(long entryId, AssetCategory assetCategory) throws SystemException
SystemException
- if a system exception occurredvoid deleteAssetEntryAssetCategories(long entryId, long[] categoryIds) throws SystemException
SystemException
- if a system exception occurredvoid deleteAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getAssetEntryAssetCategoriesCount(long entryId) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAssetEntryAssetCategory(long entryId, long categoryId) throws SystemException
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAssetEntryAssetCategories(long entryId) throws SystemException
SystemException
- if a system exception occurredvoid setAssetEntryAssetCategories(long entryId, long[] categoryIds) throws SystemException
SystemException
- if a system exception occurredString getBeanIdentifier()
void setBeanIdentifier(String beanIdentifier)
beanIdentifier
- the Spring bean ID for this beanAssetCategory addCategory(long userId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
AssetCategory addCategory(long userId, String title, long vocabularyId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
void addCategoryResources(AssetCategory category, String[] groupPermissions, 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) AssetCategory fetchCategory(long categoryId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories() throws SystemException
SystemException
@ThreadLocalCachable @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) AssetCategory getCategory(String uuid, long groupId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getCategoryIds(String className, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames(long classNameId, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames(String className, long classPK) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId) 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<Long> getSubcategoryIds(long parentCategoryId) 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) int getVocabularyCategoriesCount(long vocabularyId) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyRootCategoriesCount(long vocabularyId) throws SystemException
SystemException
void mergeCategories(long fromCategoryId, long toCategoryId) throws PortalException, SystemException
PortalException
SystemException
AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
void rebuildTree(long groupId, boolean force) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> 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, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |