Package com.liferay.asset.kernel.service
Interface AssetTagService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
AssetTagServiceWrapper
@AccessControlled
@CTAware
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface AssetTagService
extends BaseService
Provides the remote service interface for AssetTag. Methods of this
service are expected to have security checks based on the propagated JAAS
credentials because this service can be accessed remotely.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddTag
(String externalReferenceCode, long groupId, String name, ServiceContext serviceContext) void
deleteTag
(long tagId) void
deleteTags
(long[] tagIds) fetchAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) getAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) getGroupsTags
(long[] groupIds) getGroupTags
(long groupId) getGroupTags
(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) int
getGroupTagsCount
(long groupId) getGroupTagsDisplay
(long groupId, String name, int start, int end) Returns the OSGi service identifier.getTag
(long tagId) getTags
(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) getTags
(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) getTags
(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) int
getTagsCount
(long[] groupIds, String name) int
getTagsCount
(long groupId, String name) int
getVisibleAssetsTagsCount
(long groupId, long classNameId, String name) void
mergeTags
(long[] fromTagIds, long toTagId) void
mergeTags
(long fromTagId, long toTagId) void
subscribeTag
(long userId, long groupId, long tagId) void
unsubscribeTag
(long userId, long tagId) updateTag
(String externalReferenceCode, long tagId, String name, ServiceContext serviceContext)
-
Method Details
-
addTag
AssetTag addTag(String externalReferenceCode, long groupId, String name, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteTag
- Throws:
PortalException
-
deleteTags
- Throws:
PortalException
-
fetchAssetTagByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTag fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) -
getAssetTagByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Throws:
PortalException
-
getGroupsTags
-
getGroupTags
-
getGroupTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getGroupTagsCount
-
getGroupTagsDisplay
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTagDisplay getGroupTagsDisplay(long groupId, String name, int start, int end) -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getTag
@Transactional(propagation=SUPPORTS, readOnly=true) AssetTag getTag(long tagId) throws PortalException - Throws:
PortalException
-
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long groupId, long classNameId, String name) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long groupId, String name, int start, int end) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long groupId, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long[] groupIds, String name, int start, int end) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> orderByComparator) -
getTags
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTag> getTags(String className, long classPK) -
getTagsCount
-
getTagsCount
-
getVisibleAssetsTagsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getVisibleAssetsTagsCount(long groupId, long classNameId, String name) -
mergeTags
- Throws:
PortalException
-
mergeTags
- Throws:
PortalException
-
search
@Transactional(propagation=SUPPORTS, readOnly=true) JSONArray search(long groupId, String name, int start, int end) -
search
@AccessControlled(guestAccessEnabled=true) @Transactional(propagation=SUPPORTS, readOnly=true) JSONArray search(long[] groupIds, String name, int start, int end) -
subscribeTag
- Throws:
PortalException
-
unsubscribeTag
- Throws:
PortalException
-
updateTag
AssetTag updateTag(String externalReferenceCode, long tagId, String name, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-