com.liferay.portlet.asset.service
Class AssetTagLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetTagLocalServiceUtil

public class AssetTagLocalServiceUtil
extends java.lang.Object

View Source

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

This class provides static methods for the AssetTagLocalService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

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

Constructor Summary
AssetTagLocalServiceUtil()
           
 
Method Summary
static AssetTag addAssetTag(AssetTag assetTag)
           
static AssetTag addTag(long userId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext)
           
static void addTagResources(AssetTag tag, boolean addCommunityPermissions, boolean addGuestPermissions)
           
static void addTagResources(AssetTag tag, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
static void checkTags(long userId, long groupId, java.lang.String[] names)
           
static AssetTag createAssetTag(long tagId)
           
static AssetTag decrementAssetCount(long tagId, long classNameId)
           
static void deleteAssetTag(AssetTag assetTag)
           
static void deleteAssetTag(long tagId)
           
static void deleteTag(AssetTag tag)
           
static void deleteTag(long tagId)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static AssetTag getAssetTag(long tagId)
           
static java.util.List<AssetTag> getAssetTags(int start, int end)
           
static int getAssetTagsCount()
           
static java.util.List<AssetTag> getEntryTags(long entryId)
           
static java.util.List<AssetTag> getGroupTags(long groupId)
           
static AssetTagLocalService getService()
           
static AssetTag getTag(long tagId)
           
static AssetTag getTag(long groupId, java.lang.String name)
           
static long[] getTagIds(long groupId, java.lang.String[] names)
           
static java.lang.String[] getTagNames()
           
static java.lang.String[] getTagNames(long classNameId, long classPK)
           
static java.lang.String[] getTagNames(java.lang.String className, long classPK)
           
static java.util.List<AssetTag> getTags()
           
static java.util.List<AssetTag> getTags(long classNameId, long classPK)
           
static java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name)
           
static java.util.List<AssetTag> getTags(long groupId, long classNameId, java.lang.String name, int start, int end)
           
static java.util.List<AssetTag> getTags(java.lang.String className, long classPK)
           
static int getTagsSize(long groupId, long classNameId, java.lang.String name)
           
static boolean hasTag(long groupId, java.lang.String name)
           
static AssetTag incrementAssetCount(long tagId, long classNameId)
           
static void mergeTags(long fromTagId, long toTagId)
           
static com.liferay.portal.kernel.json.JSONArray search(long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end)
           
 void setService(AssetTagLocalService service)
           
static AssetTag updateAssetTag(AssetTag assetTag)
           
static AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
           
static AssetTag updateTag(long userId, long tagId, java.lang.String name, java.lang.String[] tagProperties, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagLocalServiceUtil

public AssetTagLocalServiceUtil()
Method Detail

addAssetTag

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

createAssetTag

public static AssetTag createAssetTag(long tagId)

deleteAssetTag

public static 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

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

dynamicQuery

public static 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

public static 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

public static 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

public static java.util.List<AssetTag> getAssetTags(int start,
                                                    int end)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getAssetTagsCount

public static int getAssetTagsCount()
                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateAssetTag

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

updateAssetTag

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

addTag

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static java.util.List<AssetTag> getEntryTags(long entryId)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupTags

public static java.util.List<AssetTag> getGroupTags(long groupId)
                                             throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTag

public static 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

public static 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

public static 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

public static java.lang.String[] getTagNames()
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

public static java.lang.String[] getTagNames(long classNameId,
                                             long classPK)
                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

public static 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

public static java.util.List<AssetTag> getTags()
                                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public static java.util.List<AssetTag> getTags(long classNameId,
                                               long classPK)
                                        throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

getService

public static AssetTagLocalService getService()

setService

public void setService(AssetTagLocalService service)