@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface AssetCategoryLocalService extends BaseLocalService, PersistedModelLocalService
AssetCategoryLocalServiceUtil
,
AssetCategoryLocalServiceBaseImpl
,
AssetCategoryLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
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 groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext) |
AssetCategory |
addCategory(long userId,
long groupId,
String title,
long vocabularyId,
ServiceContext serviceContext) |
void |
addCategoryResources(AssetCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addCategoryResources(AssetCategory category,
ModelPermissions modelPermissions) |
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 |
deleteCategories(List<AssetCategory> categories) |
void |
deleteCategories(long[] categoryIds) |
AssetCategory |
deleteCategory(AssetCategory category) |
AssetCategory |
deleteCategory(AssetCategory category,
boolean skipRebuildTree) |
AssetCategory |
deleteCategory(long categoryId) |
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
deleteVocabularyCategories(long vocabularyId) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<T> 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 matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
AssetCategory |
fetchAssetCategory(long categoryId) |
AssetCategory |
fetchAssetCategoryByReferenceCode(long companyId,
String externalReferenceCode)
Returns the asset category with the matching external reference code and company.
|
AssetCategory |
fetchAssetCategoryByUuidAndGroupId(String uuid,
long groupId)
Returns the asset category matching the UUID and group.
|
AssetCategory |
fetchCategory(long categoryId) |
AssetCategory |
fetchCategory(long groupId,
long parentCategoryId,
String name,
long vocabularyId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
List<AssetCategory> |
getAssetCategories(int start,
int end)
Returns a range of all the asset categories.
|
List<AssetCategory> |
getAssetCategoriesByUuidAndCompanyId(String uuid,
long companyId)
Returns all the asset categories matching the UUID and company.
|
List<AssetCategory> |
getAssetCategoriesByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator)
Returns a range of asset categories matching the UUID and company.
|
int |
getAssetCategoriesCount()
Returns the number of asset categories.
|
AssetCategory |
getAssetCategory(long categoryId)
Returns the asset category with the primary key.
|
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<AssetCategory> orderByComparator) |
int |
getAssetEntryAssetCategoriesCount(long entryId) |
long[] |
getAssetEntryPrimaryKeys(long categoryId)
Returns the entryIds of the asset entries associated with the asset category.
|
List<AssetCategory> |
getCategories() |
List<AssetCategory> |
getCategories(Hits hits) |
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<AssetCategory> obc) |
int |
getChildCategoriesCount(long parentCategoryId) |
List<AssetCategory> |
getDescendantCategories(AssetCategory category) |
List<AssetCategory> |
getEntryCategories(long entryId) |
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<Long> |
getSubcategoryIds(long parentCategoryId) |
long[] |
getViewableCategoryIds(String className,
long classPK,
long[] categoryIds) |
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
int |
getVocabularyCategoriesCount(long vocabularyId) |
List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc) |
int |
getVocabularyRootCategoriesCount(long vocabularyId) |
boolean |
hasAssetEntryAssetCategories(long entryId) |
boolean |
hasAssetEntryAssetCategory(long entryId,
long categoryId) |
AssetCategory |
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) |
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end) |
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end) |
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
Sort sort) |
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long groupIds,
String title,
long vocabularyId,
int start,
int end) |
void |
setAssetEntryAssetCategories(long entryId,
long[] categoryIds) |
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) |
@Indexable(type=REINDEX) AssetCategory addAssetCategory(AssetCategory assetCategory)
assetCategory
- the asset categoryvoid addAssetEntryAssetCategories(long entryId, List<AssetCategory> assetCategories)
void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
void addAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
void addAssetEntryAssetCategory(long entryId, long categoryId)
@Indexable(type=REINDEX) AssetCategory addCategory(long userId, long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
PortalException
AssetCategory addCategory(long userId, long groupId, String title, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException
PortalException
void addCategoryResources(AssetCategory category, ModelPermissions modelPermissions) throws PortalException
PortalException
void clearAssetEntryAssetCategories(long entryId)
@Transactional(enabled=false) AssetCategory createAssetCategory(long categoryId)
categoryId
- the primary key for the new asset category@Indexable(type=DELETE) AssetCategory deleteAssetCategory(AssetCategory assetCategory)
assetCategory
- the asset category@Indexable(type=DELETE) AssetCategory deleteAssetCategory(long categoryId) throws PortalException
categoryId
- the primary key of the asset categoryPortalException
- if a asset category with the primary key could not be foundvoid 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 deleteCategories(List<AssetCategory> categories) throws PortalException
PortalException
void deleteCategories(long[] categoryIds) throws PortalException
PortalException
AssetCategory deleteCategory(AssetCategory category) throws PortalException
PortalException
@Indexable(type=DELETE) @SystemEvent(type=1) AssetCategory deleteCategory(AssetCategory category, boolean skipRebuildTree) throws PortalException
PortalException
AssetCategory deleteCategory(long categoryId) throws PortalException
PortalException
PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface PersistedModelLocalService
PortalException
void deleteVocabularyCategories(long vocabularyId) throws PortalException
PortalException
DynamicQuery dynamicQuery()
<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query<T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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)<T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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
)long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querylong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategory(long categoryId)
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategoryByReferenceCode(long companyId, String externalReferenceCode)
companyId
- the primary key of the companyexternalReferenceCode
- the asset category's external reference codenull
if a matching asset category could not be found@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId)
uuid
- the asset category's UUIDgroupId
- the primary key of the groupnull
if a matching asset category could not be found@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchCategory(long categoryId)
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchCategory(long groupId, long parentCategoryId, String name, long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetCategories(int start, int end)
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)@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId)
uuid
- the UUID of the asset categoriescompanyId
- the primary key of the company@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
uuid
- the UUID of the asset categoriescompanyId
- the primary key of the companystart
- the lower bound of the range of asset categoriesend
- the upper bound of the range of asset categories (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)@Transactional(propagation=SUPPORTS, readOnly=true) int getAssetCategoriesCount()
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getAssetCategory(long categoryId) throws PortalException
categoryId
- the primary key of the asset categoryPortalException
- if a asset category with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId) throws PortalException
uuid
- the asset category's UUIDgroupId
- the primary key of the groupPortalException
- if a matching asset category could not be found@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getAssetEntryAssetCategoriesCount(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getAssetEntryPrimaryKeys(long categoryId)
categoryId
- the categoryId of the asset category@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories()
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(Hits hits) throws PortalException
PortalException
@ThreadLocalCachable @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(long classNameId, long classPK)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(String className, long classPK)
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getCategory(long categoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getCategory(String uuid, long groupId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getCategoryIds(String className, long classPK)
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames()
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames(long classNameId, long classPK)
@Transactional(propagation=SUPPORTS, readOnly=true) String[] getCategoryNames(String className, long classPK)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildCategoriesCount(long parentCategoryId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getDescendantCategories(AssetCategory category)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getEntryCategories(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface PersistedModelLocalService
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Long> getSubcategoryIds(long parentCategoryId)
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getViewableCategoryIds(String className, long classPK, long[] categoryIds) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyCategoriesCount(long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyRootCategoriesCount(long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAssetEntryAssetCategories(long entryId)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
@Indexable(type=REINDEX) AssetCategory mergeCategories(long fromCategoryId, long toCategoryId) throws PortalException
PortalException
@Indexable(type=REINDEX) AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
void rebuildTree(long groupId, boolean force)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> search(long groupId, String name, String[] categoryProperties, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long groupIds, String title, long vocabularyId, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort) throws PortalException
PortalException
void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
@Indexable(type=REINDEX) AssetCategory updateAssetCategory(AssetCategory assetCategory)
assetCategory
- the asset category@Indexable(type=REINDEX) AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
PortalException