com.liferay.portlet.asset.service
Interface AssetTagLocalService

All Known Implementing Classes:
AssetTagLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,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 dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 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)
           
 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 SystemException
Throws:
SystemException

createAssetTag

AssetTag createAssetTag(long tagId)

deleteAssetTag

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

deleteAssetTag

void deleteAssetTag(AssetTag assetTag)
                    throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getAssetTag

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

getAssetTags

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

getAssetTagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetTagsCount()
                      throws SystemException
Throws:
SystemException

updateAssetTag

AssetTag updateAssetTag(AssetTag assetTag)
                        throws SystemException
Throws:
SystemException

updateAssetTag

AssetTag updateAssetTag(AssetTag assetTag,
                        boolean merge)
                        throws SystemException
Throws:
SystemException

addTag

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

addTagResources

void addTagResources(AssetTag tag,
                     boolean addCommunityPermissions,
                     boolean addGuestPermissions)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addTagResources

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

checkTags

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

decrementAssetCount

AssetTag decrementAssetCount(long tagId,
                             long classNameId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteTag

void deleteTag(AssetTag tag)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

deleteTag

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

getEntryTags

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

getGroupTags

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

getTag

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

getTag

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

getTagIds

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

getTagNames

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

getTagNames

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

getTagNames

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

getTags

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

getTags

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

getTags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetTag> getTags(long groupId,
                                                                          long classNameId,
                                                                          java.lang.String name)
                                 throws SystemException
Throws:
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 SystemException
Throws:
SystemException

getTags

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

getTagsSize

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

hasTag

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

incrementAssetCount

AssetTag incrementAssetCount(long tagId,
                             long classNameId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

mergeTags

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

search

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

updateTag

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