Liferay 6.0.5

com.liferay.portlet.asset.service
Class AssetTagLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetTagLocalServiceWrapper
All Implemented Interfaces:
AssetTagLocalService

public class AssetTagLocalServiceWrapper
extends Object
implements AssetTagLocalService

This class is a wrapper for AssetTagLocalService.

See Also:
AssetTagLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService)
           
 
Method Summary
 AssetTag addAssetTag(AssetTag assetTag)
          Adds the asset tag to the database.
 AssetTag addTag(long userId, String name, String[] tagProperties, ServiceContext serviceContext)
           
 void addTagResources(AssetTag tag, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addTagResources(AssetTag tag, String[] communityPermissions, String[] guestPermissions)
           
 void checkTags(long userId, long groupId, String[] names)
           
 AssetTag createAssetTag(long tagId)
          Creates a new asset tag with the primary key.
 AssetTag decrementAssetCount(long tagId, long classNameId)
           
 void deleteAssetTag(AssetTag assetTag)
          Deletes the asset tag from the database.
 void deleteAssetTag(long tagId)
          Deletes the asset tag with the primary key from the database.
 void deleteTag(AssetTag tag)
           
 void deleteTag(long tagId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 AssetTag getAssetTag(long tagId)
          Gets the asset tag with the primary key.
 List<AssetTag> getAssetTags(int start, int end)
          Gets a range of all the asset tags.
 int getAssetTagsCount()
          Gets the number of asset tags.
 List<AssetTag> getEntryTags(long entryId)
           
 List<AssetTag> getGroupTags(long groupId)
           
 AssetTag getTag(long tagId)
           
 AssetTag getTag(long groupId, String name)
           
 long[] getTagIds(long groupId, String[] names)
           
 String[] getTagNames()
           
 String[] getTagNames(long classNameId, long classPK)
           
 String[] getTagNames(String className, long classPK)
           
 List<AssetTag> getTags()
           
 List<AssetTag> getTags(long classNameId, long classPK)
           
 List<AssetTag> getTags(long groupId, long classNameId, String name)
           
 List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end)
           
 List<AssetTag> getTags(String className, long classPK)
           
 int getTagsSize(long groupId, long classNameId, String name)
           
 AssetTagLocalService getWrappedAssetTagLocalService()
           
 boolean hasTag(long groupId, String name)
           
 AssetTag incrementAssetCount(long tagId, long classNameId)
           
 void mergeTags(long fromTagId, long toTagId)
           
 JSONArray search(long groupId, String name, String[] tagProperties, int start, int end)
           
 AssetTag updateAssetTag(AssetTag assetTag)
          Updates the asset tag in the database.
 AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
          Updates the asset tag in the database.
 AssetTag updateTag(long userId, long tagId, String name, String[] tagProperties, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagLocalServiceWrapper

public AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService)
Method Detail

addAssetTag

public AssetTag addAssetTag(AssetTag assetTag)
                     throws SystemException
Adds the asset tag to the database. Also notifies the appropriate model listeners.

Specified by:
addAssetTag in interface AssetTagLocalService
Parameters:
assetTag - the asset tag to add
Returns:
the asset tag that was added
Throws:
SystemException - if a system exception occurred

createAssetTag

public AssetTag createAssetTag(long tagId)
Creates a new asset tag with the primary key. Does not add the asset tag to the database.

Specified by:
createAssetTag in interface AssetTagLocalService
Parameters:
tagId - the primary key for the new asset tag
Returns:
the new asset tag

deleteAssetTag

public void deleteAssetTag(long tagId)
                    throws PortalException,
                           SystemException
Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetTag in interface AssetTagLocalService
Parameters:
tagId - the primary key of the asset tag to delete
Throws:
PortalException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

deleteAssetTag

public void deleteAssetTag(AssetTag assetTag)
                    throws SystemException
Deletes the asset tag from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetTag in interface AssetTagLocalService
Parameters:
assetTag - the asset tag to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface AssetTagLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface AssetTagLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface AssetTagLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface AssetTagLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getAssetTag

public AssetTag getAssetTag(long tagId)
                     throws PortalException,
                            SystemException
Gets the asset tag with the primary key.

Specified by:
getAssetTag in interface AssetTagLocalService
Parameters:
tagId - the primary key of the asset tag to get
Returns:
the asset tag
Throws:
PortalException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

getAssetTags

public List<AssetTag> getAssetTags(int start,
                                   int end)
                            throws SystemException
Gets a range of all the asset tags.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getAssetTags in interface AssetTagLocalService
Parameters:
start - the lower bound of the range of asset tags to return
end - the upper bound of the range of asset tags to return (not inclusive)
Returns:
the range of asset tags
Throws:
SystemException - if a system exception occurred

getAssetTagsCount

public int getAssetTagsCount()
                      throws SystemException
Gets the number of asset tags.

Specified by:
getAssetTagsCount in interface AssetTagLocalService
Returns:
the number of asset tags
Throws:
SystemException - if a system exception occurred

updateAssetTag

public AssetTag updateAssetTag(AssetTag assetTag)
                        throws SystemException
Updates the asset tag in the database. Also notifies the appropriate model listeners.

Specified by:
updateAssetTag in interface AssetTagLocalService
Parameters:
assetTag - the asset tag to update
Returns:
the asset tag that was updated
Throws:
SystemException - if a system exception occurred

updateAssetTag

public AssetTag updateAssetTag(AssetTag assetTag,
                               boolean merge)
                        throws SystemException
Updates the asset tag in the database. Also notifies the appropriate model listeners.

Specified by:
updateAssetTag in interface AssetTagLocalService
Parameters:
assetTag - the asset tag to update
merge - whether to merge the asset tag with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the asset tag that was updated
Throws:
SystemException - if a system exception occurred

addTag

public AssetTag addTag(long userId,
                       String name,
                       String[] tagProperties,
                       ServiceContext serviceContext)
                throws PortalException,
                       SystemException
Specified by:
addTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

addTagResources

public void addTagResources(AssetTag tag,
                            boolean addCommunityPermissions,
                            boolean addGuestPermissions)
                     throws PortalException,
                            SystemException
Specified by:
addTagResources in interface AssetTagLocalService
Throws:
PortalException
SystemException

addTagResources

public void addTagResources(AssetTag tag,
                            String[] communityPermissions,
                            String[] guestPermissions)
                     throws PortalException,
                            SystemException
Specified by:
addTagResources in interface AssetTagLocalService
Throws:
PortalException
SystemException

checkTags

public void checkTags(long userId,
                      long groupId,
                      String[] names)
               throws PortalException,
                      SystemException
Specified by:
checkTags in interface AssetTagLocalService
Throws:
PortalException
SystemException

decrementAssetCount

public AssetTag decrementAssetCount(long tagId,
                                    long classNameId)
                             throws PortalException,
                                    SystemException
Specified by:
decrementAssetCount in interface AssetTagLocalService
Throws:
PortalException
SystemException

deleteTag

public void deleteTag(AssetTag tag)
               throws PortalException,
                      SystemException
Specified by:
deleteTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

deleteTag

public void deleteTag(long tagId)
               throws PortalException,
                      SystemException
Specified by:
deleteTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

getEntryTags

public List<AssetTag> getEntryTags(long entryId)
                            throws SystemException
Specified by:
getEntryTags in interface AssetTagLocalService
Throws:
SystemException

getGroupTags

public List<AssetTag> getGroupTags(long groupId)
                            throws SystemException
Specified by:
getGroupTags in interface AssetTagLocalService
Throws:
SystemException

getTag

public AssetTag getTag(long tagId)
                throws PortalException,
                       SystemException
Specified by:
getTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

getTag

public AssetTag getTag(long groupId,
                       String name)
                throws PortalException,
                       SystemException
Specified by:
getTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

getTagIds

public long[] getTagIds(long groupId,
                        String[] names)
                 throws PortalException,
                        SystemException
Specified by:
getTagIds in interface AssetTagLocalService
Throws:
PortalException
SystemException

getTagNames

public String[] getTagNames()
                     throws SystemException
Specified by:
getTagNames in interface AssetTagLocalService
Throws:
SystemException

getTagNames

public String[] getTagNames(long classNameId,
                            long classPK)
                     throws SystemException
Specified by:
getTagNames in interface AssetTagLocalService
Throws:
SystemException

getTagNames

public String[] getTagNames(String className,
                            long classPK)
                     throws SystemException
Specified by:
getTagNames in interface AssetTagLocalService
Throws:
SystemException

getTags

public List<AssetTag> getTags()
                       throws SystemException
Specified by:
getTags in interface AssetTagLocalService
Throws:
SystemException

getTags

public List<AssetTag> getTags(long classNameId,
                              long classPK)
                       throws SystemException
Specified by:
getTags in interface AssetTagLocalService
Throws:
SystemException

getTags

public List<AssetTag> getTags(long groupId,
                              long classNameId,
                              String name)
                       throws SystemException
Specified by:
getTags in interface AssetTagLocalService
Throws:
SystemException

getTags

public List<AssetTag> getTags(long groupId,
                              long classNameId,
                              String name,
                              int start,
                              int end)
                       throws SystemException
Specified by:
getTags in interface AssetTagLocalService
Throws:
SystemException

getTags

public List<AssetTag> getTags(String className,
                              long classPK)
                       throws SystemException
Specified by:
getTags in interface AssetTagLocalService
Throws:
SystemException

getTagsSize

public int getTagsSize(long groupId,
                       long classNameId,
                       String name)
                throws SystemException
Specified by:
getTagsSize in interface AssetTagLocalService
Throws:
SystemException

hasTag

public boolean hasTag(long groupId,
                      String name)
               throws PortalException,
                      SystemException
Specified by:
hasTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

incrementAssetCount

public AssetTag incrementAssetCount(long tagId,
                                    long classNameId)
                             throws PortalException,
                                    SystemException
Specified by:
incrementAssetCount in interface AssetTagLocalService
Throws:
PortalException
SystemException

mergeTags

public void mergeTags(long fromTagId,
                      long toTagId)
               throws PortalException,
                      SystemException
Specified by:
mergeTags in interface AssetTagLocalService
Throws:
PortalException
SystemException

search

public JSONArray search(long groupId,
                        String name,
                        String[] tagProperties,
                        int start,
                        int end)
                 throws SystemException
Specified by:
search in interface AssetTagLocalService
Throws:
SystemException

updateTag

public AssetTag updateTag(long userId,
                          long tagId,
                          String name,
                          String[] tagProperties,
                          ServiceContext serviceContext)
                   throws PortalException,
                          SystemException
Specified by:
updateTag in interface AssetTagLocalService
Throws:
PortalException
SystemException

getWrappedAssetTagLocalService

public AssetTagLocalService getWrappedAssetTagLocalService()

Liferay 6.0.5