Liferay 6.2.0

com.liferay.portlet.asset.service
Interface AssetTagService

All Superinterfaces:
BaseService
All Known Implementing Classes:
AssetTagServiceWrapper

@ProviderType
@AccessControlled
@JSONWebService
@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.

See Also:
AssetTagServiceUtil, com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl, com.liferay.portlet.asset.service.impl.AssetTagServiceImpl

Method Summary
abstract  AssetTag addTag(String name, String[] tagProperties, ServiceContext serviceContext)
           
abstract  void deleteTag(long tagId)
           
abstract  void deleteTags(long[] tagIds)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<AssetTag> getGroupsTags(long[] groupIds)
           
abstract  List<AssetTag> getGroupTags(long groupId)
           
abstract  List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator obc)
           
abstract  int getGroupTagsCount(long groupId)
           
abstract  AssetTagDisplay getGroupTagsDisplay(long groupId, String name, int start, int end)
           
abstract  JSONObject getJSONGroupTags(long groupId, String name, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)
abstract  AssetTag getTag(long tagId)
           
abstract  List<AssetTag> getTags(long[] groupIds, String name, String[] tagProperties, int start, int end)
           
abstract  List<AssetTag> getTags(long groupId, long classNameId, String name)
           
abstract  List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end, OrderByComparator obc)
           
abstract  List<AssetTag> getTags(long groupId, String name, String[] tagProperties, int start, int end)
           
abstract  List<AssetTag> getTags(String className, long classPK)
           
abstract  int getTagsCount(long groupId, long classNameId, String name)
           
abstract  int getTagsCount(long groupId, String name)
           
abstract  int getTagsCount(long groupId, String name, String[] tagProperties)
           
abstract  void mergeTags(long[] fromTagIds, long toTagId, boolean overrideProperties)
           
abstract  void mergeTags(long fromTagId, long toTagId, boolean overrideProperties)
           
abstract  JSONArray search(long[] groupIds, String name, String[] tagProperties, int start, int end)
           
abstract  JSONArray search(long groupId, String name, String[] tagProperties, int start, int end)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  AssetTag updateTag(long tagId, String name, String[] tagProperties, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTag

AssetTag addTag(String name,
                String[] tagProperties,
                ServiceContext serviceContext)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

deleteTag

void deleteTag(long tagId)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

deleteTags

void deleteTags(long[] tagIds)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

getGroupsTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getGroupsTags(long[] groupIds)
                             throws SystemException
Throws:
SystemException

getGroupTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getGroupTags(long groupId)
                            throws SystemException
Throws:
SystemException

getGroupTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getGroupTags(long groupId,
                                                                     int start,
                                                                     int end,
                                                                     OrderByComparator obc)
                            throws SystemException
Throws:
SystemException

getGroupTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getGroupTagsCount(long groupId)
                      throws SystemException
Throws:
SystemException

getGroupTagsDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTagDisplay getGroupTagsDisplay(long groupId,
                                                                             String name,
                                                                             int start,
                                                                             int end)
                                    throws SystemException
Throws:
SystemException

getJSONGroupTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONObject getJSONGroupTags(long groupId,
                                                                     String name,
                                                                     int start,
                                                                     int end)
                            throws PortalException,
                                   SystemException
Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)

Throws:
PortalException
SystemException

getTag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTag getTag(long tagId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getTags(long groupId,
                                                                long classNameId,
                                                                String name)
                       throws SystemException
Throws:
SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getTags(long groupId,
                                                                long classNameId,
                                                                String name,
                                                                int start,
                                                                int end,
                                                                OrderByComparator obc)
                       throws SystemException
Throws:
SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getTags(long groupId,
                                                                String name,
                                                                String[] tagProperties,
                                                                int start,
                                                                int end)
                       throws SystemException
Throws:
SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getTags(long[] groupIds,
                                                                String name,
                                                                String[] tagProperties,
                                                                int start,
                                                                int end)
                       throws SystemException
Throws:
SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTag> getTags(String className,
                                                                long classPK)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTagsCount(long groupId,
                                                          long classNameId,
                                                          String name)
                 throws SystemException
Throws:
SystemException

getTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTagsCount(long groupId,
                                                          String name)
                 throws SystemException
Throws:
SystemException

getTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTagsCount(long groupId,
                                                          String name,
                                                          String[] tagProperties)
                 throws SystemException
Throws:
SystemException

mergeTags

void mergeTags(long fromTagId,
               long toTagId,
               boolean overrideProperties)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

mergeTags

void mergeTags(long[] fromTagIds,
               long toTagId,
               boolean overrideProperties)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONArray search(long groupId,
                                                          String name,
                                                          String[] tagProperties,
                                                          int start,
                                                          int end)
                 throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONArray search(long[] groupIds,
                                                          String name,
                                                          String[] tagProperties,
                                                          int start,
                                                          int end)
                 throws SystemException
Throws:
SystemException

updateTag

AssetTag updateTag(long tagId,
                   String name,
                   String[] tagProperties,
                   ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

Liferay 6.2.0