com.liferay.portlet.asset.service
Interface AssetTagLocalService

All Known Implementing Classes:
AssetTagLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface AssetTagLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. 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.

Author:
Brian Wing Shun Chan
See Also:
AssetTagLocalServiceUtil
Generated:

Method Summary
 AssetTag addAssetTag(AssetTag assetTag)
           
 AssetTag addTag(long userId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext)
           
 void addTagResources(AssetTag tag, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addTagResources(AssetTag tag, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void checkTags(long userId, long groupId, java.lang.String[] names)
           
 AssetTag createAssetTag(long tagId)
           
 AssetTag decrementAssetCount(long tagId, long classNameId)
           
 void deleteAssetTag(AssetTag assetTag)
           
 void deleteAssetTag(long tagId)
           
 void deleteTag(AssetTag tag)
           
 void deleteTag(long tagId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 AssetTag getAssetTag(long tagId)
           
 java.util.List<AssetTag> getAssetTags(int start, int end)
           
 int getAssetTagsCount()
           
 java.util.List<AssetTag> getEntryTags(long entryId)
           
 java.util.List<AssetTag> getGroupTags(long groupId)
           
 AssetTag getTag(long tagId)
           
 AssetTag getTag(long groupId, java.lang.String name)
           
 long[] getTagIds(long groupId, java.lang.String[] names)
           
 java.lang.String[] getTagNames()
           
 java.lang.String[] getTagNames(long classNameId, long classPK)
           
 java.lang.String[] getTagNames(java.lang.String className, long classPK)
           
 java.util.List<AssetTag> getTags()
           
 java.util.List<AssetTag> getTags(long classNameId, long classPK)
           
 java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name)
           
 java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name, int start, int end)
           
 java.util.List<AssetTag> getTags(java.lang.String className, long classPK)
           
 int getTagsSize(long groupId, long classNameId, java.lang.String name)
           
 boolean hasTag(long groupId, java.lang.String name)
           
 AssetTag incrementAssetCount(long tagId, long classNameId)
           
 void mergeTags(long fromTagId, long toTagId)
           
 com.liferay.portal.kernel.json.JSONArray search(long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end)
           
 AssetTag updateAssetTag(AssetTag assetTag)
           
 AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
           
 AssetTag updateTag(long userId, long tagId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext)
           
 

Method Detail

addAssetTag

AssetTag addAssetTag(AssetTag assetTag)
                     throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

createAssetTag

AssetTag createAssetTag(long tagId)

deleteAssetTag

void deleteAssetTag(long tagId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteAssetTag

void deleteAssetTag(AssetTag assetTag)
                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAssetTag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTag getAssetTag(long tagId)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getAssetTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getAssetTags(int start,
                                                    int end)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAssetTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetTagsCount()
                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAssetTag

AssetTag updateAssetTag(AssetTag assetTag)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAssetTag

AssetTag updateAssetTag(AssetTag assetTag,
                        boolean merge)
                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

addTag

AssetTag addTag(long userId,
                java.lang.String name,
                java.lang.String[] tagProperties,
                ServiceContext serviceContext)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addTagResources

void addTagResources(AssetTag tag,
                     boolean addCommunityPermissions,
                     boolean addGuestPermissions)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addTagResources

void addTagResources(AssetTag tag,
                     java.lang.String[] communityPermissions,
                     java.lang.String[] guestPermissions)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkTags

void checkTags(long userId,
               long groupId,
               java.lang.String[] names)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

decrementAssetCount

AssetTag decrementAssetCount(long tagId,
                             long classNameId)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteTag

void deleteTag(AssetTag tag)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteTag

void deleteTag(long tagId)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntryTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getEntryTags(long entryId)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getGroupTags(long groupId)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTag getTag(long tagId)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTag getTag(long groupId,
                              java.lang.String name)
                throws com.liferay.portal.kernel.exception.PortalException,
                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTagIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getTagIds(long groupId,
                               java.lang.String[] names)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTagNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String[] getTagNames()
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String[] getTagNames(long classNameId,
                                             long classPK)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.lang.String[] getTagNames(java.lang.String className,
                                             long classPK)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags()
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags(long classNameId,
                                               long classPK)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags(long groupId,
                                               long classNameId,
                                               java.lang.String name)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags(long groupId,
                                               long classNameId,
                                               java.lang.String name,
                                               int start,
                                               int end)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags(java.lang.String className,
                                               long classPK)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagsSize

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getTagsSize(long groupId,
                              long classNameId,
                              java.lang.String name)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

hasTag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasTag(long groupId,
                             java.lang.String name)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

incrementAssetCount

AssetTag incrementAssetCount(long tagId,
                             long classNameId)
                             throws com.liferay.portal.kernel.exception.PortalException,
                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

mergeTags

void mergeTags(long fromTagId,
               long toTagId)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
com.liferay.portal.kernel.json.JSONArray search(long groupId,
                                                              java.lang.String name,
                                                              java.lang.String[] tagProperties,
                                                              int start,
                                                              int end)
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateTag

AssetTag updateTag(long userId,
                   long tagId,
                   java.lang.String name,
                   java.lang.String[] tagProperties,
                   ServiceContext serviceContext)
                   throws com.liferay.portal.kernel.exception.PortalException,
                          com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException