@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface AssetTagLocalService extends BaseLocalService, PersistedModelLocalService
AssetTagLocalServiceUtil
,
AssetTagLocalServiceBaseImpl
,
AssetTagLocalServiceImpl
Modifier and Type | Method and Description |
---|---|
void |
addAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
void |
addAssetEntryAssetTag(long entryId,
long tagId) |
void |
addAssetEntryAssetTags(long entryId,
List<AssetTag> assetTags) |
void |
addAssetEntryAssetTags(long entryId,
long[] tagIds) |
AssetTag |
addAssetTag(AssetTag assetTag)
Adds the asset tag to the database.
|
AssetTag |
addTag(long userId,
long groupId,
String name,
ServiceContext serviceContext)
Adds an asset tag.
|
List<AssetTag> |
checkTags(long userId,
Group group,
String[] names)
Returns the asset tags matching the group and names, creating new asset
tags matching the names if the group doesn't already have them.
|
List<AssetTag> |
checkTags(long userId,
long groupId,
String[] names)
Returns the asset tags matching the group and names, creating new asset
tags matching the names if the group doesn't already have them.
|
void |
clearAssetEntryAssetTags(long entryId) |
AssetTag |
createAssetTag(long tagId)
Creates a new asset tag with the primary key.
|
AssetTag |
decrementAssetCount(long tagId,
long classNameId)
Decrements the number of assets to which the asset tag has been applied.
|
void |
deleteAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
void |
deleteAssetEntryAssetTag(long entryId,
long tagId) |
void |
deleteAssetEntryAssetTags(long entryId,
List<AssetTag> assetTags) |
void |
deleteAssetEntryAssetTags(long entryId,
long[] tagIds) |
AssetTag |
deleteAssetTag(AssetTag assetTag)
Deletes the asset tag from the database.
|
AssetTag |
deleteAssetTag(long tagId)
Deletes the asset tag with the primary key from the database.
|
void |
deleteGroupTags(long groupId)
Deletes all asset tags in the group.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
deleteTag(AssetTag tag)
Deletes the asset tag.
|
void |
deleteTag(long tagId)
Deletes the asset tag.
|
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.
|
AssetTag |
fetchAssetTag(long tagId) |
AssetTag |
fetchAssetTagByUuidAndGroupId(String uuid,
long groupId)
Returns the asset tag matching the UUID and group.
|
AssetTag |
fetchTag(long groupId,
String name)
Returns the asset tag with the name in the group.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
List<AssetTag> |
getAssetEntryAssetTags(long entryId) |
List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end) |
List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator) |
int |
getAssetEntryAssetTagsCount(long entryId) |
long[] |
getAssetEntryPrimaryKeys(long tagId)
Returns the entryIds of the asset entries associated with the asset tag.
|
AssetTag |
getAssetTag(long tagId)
Returns the asset tag with the primary key.
|
AssetTag |
getAssetTagByUuidAndGroupId(String uuid,
long groupId)
Returns the asset tag matching the UUID and group.
|
List<AssetTag> |
getAssetTags(int start,
int end)
Returns a range of all the asset tags.
|
List<AssetTag> |
getAssetTagsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the asset tags matching the UUID and company.
|
List<AssetTag> |
getAssetTagsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
Returns a range of asset tags matching the UUID and company.
|
int |
getAssetTagsCount()
Returns the number of asset tags.
|
List<AssetTag> |
getEntryTags(long entryId)
Returns the asset tags of the asset entry.
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
List<AssetTag> |
getGroupsTags(long[] groupIds)
Returns the asset tags in the groups.
|
List<AssetTag> |
getGroupTags(long groupId)
Returns the asset tags in the group.
|
List<AssetTag> |
getGroupTags(long groupId,
int start,
int end)
Returns a range of all the asset tags in the group.
|
int |
getGroupTagsCount(long groupId)
Returns the number of asset tags in the group.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<AssetTag> |
getSocialActivityCounterOffsetTags(long groupId,
String socialActivityCounterName,
int startOffset,
int endOffset) |
List<AssetTag> |
getSocialActivityCounterPeriodTags(long groupId,
String socialActivityCounterName,
int startPeriod,
int endPeriod) |
AssetTag |
getTag(long tagId)
Returns the asset tag with the primary key.
|
AssetTag |
getTag(long groupId,
String name)
Returns the asset tag with the name in the group.
|
long[] |
getTagIds(long[] groupIds,
String name)
Returns the primary keys of the asset tags with the name in the groups.
|
long[] |
getTagIds(long[] groupIds,
String[] names)
Returns the primary keys of the asset tags with the names in the groups.
|
long[] |
getTagIds(long groupId,
String[] names)
Returns the primary keys of the asset tags with the names in the group.
|
long[] |
getTagIds(String name)
Returns the primary keys of the asset tags with the names.
|
String[] |
getTagNames()
Returns the names of all the asset tags.
|
String[] |
getTagNames(long classNameId,
long classPK)
Returns the names of the asset tags of the entity.
|
String[] |
getTagNames(String className,
long classPK)
Returns the names of the asset tags of the entity
|
List<AssetTag> |
getTags()
Returns all the asset tags.
|
List<AssetTag> |
getTags(long classNameId,
long classPK)
Returns the asset tags of the entity.
|
List<AssetTag> |
getTags(long groupId,
long classNameId,
String name) |
List<AssetTag> |
getTags(long groupId,
long classNameId,
String name,
int start,
int end) |
List<AssetTag> |
getTags(String className,
long classPK)
Returns the asset tags of the entity.
|
int |
getTagsSize(long groupId,
long classNameId,
String name) |
int |
getTagsSize(long groupId,
String name) |
boolean |
hasAssetEntryAssetTag(long entryId,
long tagId) |
boolean |
hasAssetEntryAssetTags(long entryId) |
boolean |
hasTag(long groupId,
String name)
Returns
true if the group contains an asset tag with the
name. |
AssetTag |
incrementAssetCount(long tagId,
long classNameId)
Increments the number of assets to which the asset tag has been applied.
|
void |
mergeTags(long fromTagId,
long toTagId)
Replaces all occurrences of the first asset tag with the second asset tag
and deletes the first asset tag.
|
List<AssetTag> |
search(long[] groupIds,
String name,
int start,
int end)
Returns the asset tags in the groups whose names match the pattern.
|
List<AssetTag> |
search(long groupId,
String name,
int start,
int end)
Returns the asset tags in the group whose names match the pattern.
|
BaseModelSearchResult<AssetTag> |
searchTags(long[] groupIds,
String name,
int start,
int end,
Sort sort) |
void |
setAssetEntryAssetTags(long entryId,
long[] tagIds) |
AssetTag |
updateAssetTag(AssetTag assetTag)
Updates the asset tag in the database or adds it if it does not yet exist.
|
AssetTag |
updateTag(long userId,
long tagId,
String name,
ServiceContext serviceContext) |
void addAssetEntryAssetTag(long entryId, AssetTag assetTag)
void addAssetEntryAssetTag(long entryId, long tagId)
void addAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
void addAssetEntryAssetTags(long entryId, long[] tagIds)
@Indexable(type=REINDEX) AssetTag addAssetTag(AssetTag assetTag)
assetTag
- the asset tag@Indexable(type=REINDEX) AssetTag addTag(long userId, long groupId, String name, ServiceContext serviceContext) throws PortalException
userId
- the primary key of the user adding the asset taggroupId
- the primary key of the group in which the asset tag is to
be addedname
- the asset tag's nameserviceContext
- the service context to be appliedPortalException
List<AssetTag> checkTags(long userId, Group group, String[] names) throws PortalException
For each name, if an asset tag with the name doesn't already exist in the group, this method creates a new asset tag with the name in the group.
userId
- the primary key of the user checking the asset tagsgroup
- the group in which to check the asset tagsnames
- the asset tag namesPortalException
List<AssetTag> checkTags(long userId, long groupId, String[] names) throws PortalException
userId
- the primary key of the user checking the asset tagsgroupId
- the primary key of the group in which check the asset
tagsnames
- the asset tag namesPortalException
void clearAssetEntryAssetTags(long entryId)
@Transactional(enabled=false) AssetTag createAssetTag(long tagId)
tagId
- the primary key for the new asset tag@Indexable(type=REINDEX) AssetTag decrementAssetCount(long tagId, long classNameId) throws PortalException
tagId
- the primary key of the asset tagclassNameId
- the class name ID of the entity to which the asset
tag had been appliedPortalException
void deleteAssetEntryAssetTag(long entryId, AssetTag assetTag)
void deleteAssetEntryAssetTag(long entryId, long tagId)
void deleteAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
@Indexable(type=DELETE) AssetTag deleteAssetTag(AssetTag assetTag)
assetTag
- the asset tag@Indexable(type=DELETE) AssetTag deleteAssetTag(long tagId) throws PortalException
tagId
- the primary key of the asset tagPortalException
- if a asset tag with the primary key could not be foundvoid deleteGroupTags(long groupId) throws PortalException