Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service
Class AssetTagLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetTagLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<AssetTagLocalService>, AssetTagLocalService

@ProviderType
public class AssetTagLocalServiceWrapper
extends Object
implements AssetTagLocalService, ServiceWrapper<AssetTagLocalService>

Provides a wrapper for AssetTagLocalService.

See Also:
AssetTagLocalService

Constructor Summary
AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService)
           
 
Method Summary
 void addAssetEntryAssetTag(long entryId, AssetTag assetTag)
           
 void addAssetEntryAssetTag(long entryId, long tagId)
           
 void addAssetEntryAssetTags(long entryId, List<AssetTag> AssetTags)
           
 void addAssetEntryAssetTags(long entryId, long[] tagIds)
           
 AssetTag addAssetTag(AssetTag assetTag)
          Adds the asset tag to the database.
 AssetTag addTag(long userId, String name, String[] tagProperties, ServiceContext serviceContext)
          Adds an asset tag.
 void addTagResources(AssetTag tag, boolean addGroupPermissions, boolean addGuestPermissions)
          Adds resources for the asset tag.
 void addTagResources(AssetTag tag, String[] groupPermissions, String[] guestPermissions)
          Adds resources for the asset tag using the group and guest permissions.
 List<AssetTag> checkTags(long userId, Group group, String[] names)
          Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.
 void checkTags(long userId, long groupId, String[] names)
          Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.
 void clearAssetEntryAssetTags(long entryId)
           
 AssetTag createAssetTag(long tagId)
          Creates a new asset tag with the primary key.
 AssetTag decrementAssetCount(long tagId, long classNameId)
          Decrements the number of assets to which the asset tag has been applied.
 void deleteAssetEntryAssetTag(long entryId, AssetTag assetTag)
           
 void deleteAssetEntryAssetTag(long entryId, long tagId)
           
 void deleteAssetEntryAssetTags(long entryId, List<AssetTag> AssetTags)
           
 void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
           
 AssetTag deleteAssetTag(AssetTag assetTag)
          Deletes the asset tag from the database.
 AssetTag deleteAssetTag(long tagId)
          Deletes the asset tag with the primary key from the database.
 void deleteGroupTags(long groupId)
          Deletes all asset tags in the group.
 void deleteTag(AssetTag tag)
          Deletes the asset tag.
 void deleteTag(long tagId)
          Deletes the asset tag.
 DynamicQuery dynamicQuery()
           
 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)
          Returns the number of rows that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 AssetTag fetchAssetTag(long tagId)
           
 List<AssetTag> getAssetEntryAssetTags(long entryId)
           
 List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end)
           
 List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator orderByComparator)
           
 int getAssetEntryAssetTagsCount(long entryId)
           
 AssetTag getAssetTag(long tagId)
          Returns the asset tag with the primary key.
 List<AssetTag> getAssetTags(int start, int end)
          Returns a range of all the asset tags.
 int getAssetTagsCount()
          Returns the number of asset tags.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 List<AssetTag> getEntryTags(long entryId)
          Returns the asset tags of the asset entry.
 List<AssetTag> getGroupsTags(long[] groupIds)
          Returns the asset tags in the groups.
 List<AssetTag> getGroupTags(long groupId)
          Returns the asset tags in the group.
 List<AssetTag> getGroupTags(long groupId, int start, int end)
          Returns a range of all the asset tags in the group.
 int getGroupTagsCount(long groupId)
          Returns the number of asset tags in the group.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<AssetTag> getSocialActivityCounterOffsetTags(long groupId, String socialActivityCounterName, int startOffset, int endOffset)
           
 List<AssetTag> getSocialActivityCounterPeriodTags(long groupId, String socialActivityCounterName, int startPeriod, int endPeriod)
           
 AssetTag getTag(long tagId)
          Returns the asset tag with the primary key.
 AssetTag getTag(long groupId, String name)
          Returns the asset tag with the name in the group.
 long[] getTagIds(long[] groupIds, String name)
          Returns the primary keys of the asset tags with the name in the groups.
 long[] getTagIds(long[] groupIds, String[] names)
          Returns the primary keys of the asset tags with the names in the groups.
 long[] getTagIds(long groupId, String[] names)
          Returns the primary keys of the asset tags with the names in the group.
 String[] getTagNames()
          Returns the names of all the asset tags.
 String[] getTagNames(long classNameId, long classPK)
          Returns the names of the asset tags of the entity.
 String[] getTagNames(String className, long classPK)
          Returns the names of the asset tags of the entity
 List<AssetTag> getTags()
          Returns all the asset tags.
 List<AssetTag> getTags(long classNameId, long classPK)
          Returns the asset tags of the entity.
 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)
          Returns the asset tags of the entity.
 int getTagsSize(long groupId, long classNameId, String name)
           
 AssetTagLocalService getWrappedAssetTagLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 AssetTagLocalService getWrappedService()
           
 boolean hasAssetEntryAssetTag(long entryId, long tagId)
           
 boolean hasAssetEntryAssetTags(long entryId)
           
 boolean hasTag(long groupId, String name)
          Returns true if the group contains an asset tag with the name.
 AssetTag incrementAssetCount(long tagId, long classNameId)
          Increments the number of assets to which the asset tag has been applied.
 void mergeTags(long fromTagId, long toTagId, boolean overrideProperties)
          Replaces all occurrences of the first asset tag with the second asset tag and deletes the first asset tag.
 List<AssetTag> search(long[] groupIds, String name, String[] tagProperties, int start, int end)
          Returns the asset tags in the groups whose names match the pattern and the properties.
 List<AssetTag> search(long groupId, String name, String[] tagProperties, int start, int end)
          Returns the asset tags in the group whose names match the pattern and the properties.
 void setAssetEntryAssetTags(long entryId, long[] tagIds)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedAssetTagLocalService(AssetTagLocalService assetTagLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.asset.service.AssetTagLocalService)
 void setWrappedService(AssetTagLocalService assetTagLocalService)
           
 AssetTag updateAssetTag(AssetTag assetTag)
          Updates the asset tag in the database or adds it if it does not yet exist.
 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
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 AssetTag 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
Returns:
the asset tag that was removed
Throws:
PortalException - if a asset tag with the primary key could not be found
SystemException - if a system exception occurred

deleteAssetTag

public AssetTag 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
Returns:
the asset tag that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface AssetTagLocalService

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
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
dynamicQuery in interface AssetTagLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

dynamicQueryCount

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

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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

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

fetchAssetTag

public AssetTag fetchAssetTag(long tagId)
                       throws SystemException
Specified by:
fetchAssetTag in interface AssetTagLocalService
Throws:
SystemException

getAssetTag

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

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

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface AssetTagLocalService
Throws:
PortalException
SystemException

getAssetTags

public List<AssetTag> getAssetTags(int start,
                                   int end)
                            throws SystemException
Returns 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetTagModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

getAssetTagsCount

public int getAssetTagsCount()
                      throws SystemException
Returns 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 or adds it if it does not yet exist. Also notifies the appropriate model listeners.

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

addAssetEntryAssetTag

public void addAssetEntryAssetTag(long entryId,
                                  long tagId)
                           throws SystemException
Specified by:
addAssetEntryAssetTag in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetTag

public void addAssetEntryAssetTag(long entryId,
                                  AssetTag assetTag)
                           throws SystemException
Specified by:
addAssetEntryAssetTag in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetTags

public void addAssetEntryAssetTags(long entryId,
                                   long[] tagIds)
                            throws SystemException
Specified by:
addAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetTags

public void addAssetEntryAssetTags(long entryId,
                                   List<AssetTag> AssetTags)
                            throws SystemException
Specified by:
addAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

clearAssetEntryAssetTags

public void clearAssetEntryAssetTags(long entryId)
                              throws SystemException
Specified by:
clearAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetTag

public void deleteAssetEntryAssetTag(long entryId,
                                     long tagId)
                              throws SystemException
Specified by:
deleteAssetEntryAssetTag in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetTag

public void deleteAssetEntryAssetTag(long entryId,
                                     AssetTag assetTag)
                              throws SystemException
Specified by:
deleteAssetEntryAssetTag in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetTags

public void deleteAssetEntryAssetTags(long entryId,
                                      long[] tagIds)
                               throws SystemException
Specified by:
deleteAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetTags

public void deleteAssetEntryAssetTags(long entryId,
                                      List<AssetTag> AssetTags)
                               throws SystemException
Specified by:
deleteAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetTags

public List<AssetTag> getAssetEntryAssetTags(long entryId)
                                      throws SystemException
Specified by:
getAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetTags

public List<AssetTag> getAssetEntryAssetTags(long entryId,
                                             int start,
                                             int end)
                                      throws SystemException
Specified by:
getAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetTags

public List<AssetTag> getAssetEntryAssetTags(long entryId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Specified by:
getAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetTagsCount

public int getAssetEntryAssetTagsCount(long entryId)
                                throws SystemException
Specified by:
getAssetEntryAssetTagsCount in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

hasAssetEntryAssetTag

public boolean hasAssetEntryAssetTag(long entryId,
                                     long tagId)
                              throws SystemException
Specified by:
hasAssetEntryAssetTag in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

hasAssetEntryAssetTags

public boolean hasAssetEntryAssetTags(long entryId)
                               throws SystemException
Specified by:
hasAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

setAssetEntryAssetTags

public void setAssetEntryAssetTags(long entryId,
                                   long[] tagIds)
                            throws SystemException
Specified by:
setAssetEntryAssetTags in interface AssetTagLocalService
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

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

Specified by:
getBeanIdentifier in interface AssetTagLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Specified by:
setBeanIdentifier in interface AssetTagLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addTag

public AssetTag addTag(long userId,
                       String name,
                       String[] tagProperties,
                       ServiceContext serviceContext)
                throws PortalException,
                       SystemException
Adds an asset tag.

Specified by:
addTag in interface AssetTagLocalService
Parameters:
userId - the primary key of the user adding the asset tag
name - the asset tag's name
tagProperties - the tag's properties
serviceContext - the service context
Returns:
the asset tag that was added
Throws:
PortalException - if a user with the primary key could not be found, if an asset tag already exists with the name, or if a portal exception occurred
SystemException - if a system exception occurred

addTagResources

public void addTagResources(AssetTag tag,
                            boolean addGroupPermissions,
                            boolean addGuestPermissions)
                     throws PortalException,
                            SystemException
Adds resources for the asset tag.

Specified by:
addTagResources in interface AssetTagLocalService
Parameters:
tag - the asset tag for which to add resources
addGroupPermissions - whether to add group permissions
addGuestPermissions - whether to add guest permissions
Throws:
PortalException - if resources could not be added for the asset tag or if a portal exception occurred
SystemException - if a system exception occurred

addTagResources

public void addTagResources(AssetTag tag,
                            String[] groupPermissions,
                            String[] guestPermissions)
                     throws PortalException,
                            SystemException
Adds resources for the asset tag using the group and guest permissions.

Specified by:
addTagResources in interface AssetTagLocalService
Parameters:
tag - the asset tag for which to add resources
groupPermissions - the group permissions to be applied
guestPermissions - the guest permissions to be applied
Throws:
PortalException - if resources could not be added for the asset tag or if a portal exception occurred
SystemException - if a system exception occurred

checkTags

public List<AssetTag> checkTags(long userId,
                                Group group,
                                String[] names)
                         throws PortalException,
                                SystemException
Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.

For each name, if an asset tag with the name doesn't already exist in the group, this method creates a new asset tag with the name in the group.

Specified by:
checkTags in interface AssetTagLocalService
Parameters:
userId - the primary key of the user checking the asset tags
group - the group in which to check the asset tags
names - the asset tag names
Returns:
the asset tags matching the group and names and new asset tags matching the names that don't already exist in the group
Throws:
PortalException - if a matching group could not be found or if a portal exception occurred
SystemException - if a system exception occurred

checkTags

public void checkTags(long userId,
                      long groupId,
                      String[] names)
               throws PortalException,
                      SystemException
Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.

Specified by:
checkTags in interface AssetTagLocalService
Parameters:
userId - the primary key of the user checking the asset tags
groupId - the primary key of the group in which check the asset tags
names - the asset tag names
Throws:
PortalException - if a matching group could not be found or if a portal exception occurred
SystemException - if a system exception occurred

decrementAssetCount

public AssetTag decrementAssetCount(long tagId,
                                    long classNameId)
                             throws PortalException,
                                    SystemException
Decrements the number of assets to which the asset tag has been applied.

Specified by:
decrementAssetCount in interface AssetTagLocalService
Parameters:
tagId - the primary key of the asset tag
classNameId - the class name ID of the entity to which the asset tag had been applied
Returns:
the asset tag
Throws:
PortalException - if an asset tag with the primary key could not be found or if a portal exception occurred
SystemException - if a system exception occurred

deleteGroupTags

public void deleteGroupTags(long groupId)
                     throws PortalException,
                            SystemException
Deletes all asset tags in the group.

Specified by:
deleteGroupTags in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group in which to delete all asset tags
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

deleteTag

public void deleteTag(AssetTag tag)
               throws PortalException,
                      SystemException
Deletes the asset tag.

Specified by:
deleteTag in interface AssetTagLocalService
Parameters:
tag - the asset tag to be deleted
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

deleteTag

public void deleteTag(long tagId)
               throws PortalException,
                      SystemException
Deletes the asset tag.

Specified by:
deleteTag in interface AssetTagLocalService
Parameters:
tagId - the primary key of the asset tag
Throws:
PortalException - if no asset tag could be found with the primary key or if a portal exception occurred
SystemException - if a system exception occurred

getEntryTags

public List<AssetTag> getEntryTags(long entryId)
                            throws SystemException
Returns the asset tags of the asset entry.

Specified by:
getEntryTags in interface AssetTagLocalService
Parameters:
entryId - the primary key of the asset entry
Returns:
the asset tags of the asset entry
Throws:
SystemException - if a system exception occurred

getGroupsTags

public List<AssetTag> getGroupsTags(long[] groupIds)
                             throws SystemException
Returns the asset tags in the groups.

Specified by:
getGroupsTags in interface AssetTagLocalService
Parameters:
groupIds - the primary keys of the groups
Returns:
the asset tags in the groups
Throws:
SystemException - if a system exception occurred

getGroupTags

public List<AssetTag> getGroupTags(long groupId)
                            throws SystemException
Returns the asset tags in the group.

Specified by:
getGroupTags in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
Returns:
the asset tags in the group
Throws:
SystemException - if a system exception occurred

getGroupTags

public List<AssetTag> getGroupTags(long groupId,
                                   int start,
                                   int end)
                            throws SystemException
Returns a range of all the asset tags in the group.

Specified by:
getGroupTags in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the range of matching asset tags
Throws:
SystemException - if a system exception occurred

getGroupTagsCount

public int getGroupTagsCount(long groupId)
                      throws SystemException
Returns the number of asset tags in the group.

Specified by:
getGroupTagsCount in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
Returns:
the number of asset tags in the group
Throws:
SystemException - if a system exception occurred

getSocialActivityCounterOffsetTags

public List<AssetTag> getSocialActivityCounterOffsetTags(long groupId,
                                                         String socialActivityCounterName,
                                                         int startOffset,
                                                         int endOffset)
                                                  throws SystemException
Specified by:
getSocialActivityCounterOffsetTags in interface AssetTagLocalService
Throws:
SystemException

getSocialActivityCounterPeriodTags

public List<AssetTag> getSocialActivityCounterPeriodTags(long groupId,
                                                         String socialActivityCounterName,
                                                         int startPeriod,
                                                         int endPeriod)
                                                  throws SystemException
Specified by:
getSocialActivityCounterPeriodTags in interface AssetTagLocalService
Throws:
SystemException

getTag

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

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

getTag

public AssetTag getTag(long groupId,
                       String name)
                throws PortalException,
                       SystemException
Returns the asset tag with the name in the group.

Specified by:
getTag in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
name - the name of the asset tag
Returns:
the asset tag with the name in the group
Throws:
PortalException - if a matching asset tag could not be found
SystemException - if a system exception occurred

getTagIds

public long[] getTagIds(long groupId,
                        String[] names)
                 throws PortalException,
                        SystemException
Returns the primary keys of the asset tags with the names in the group.

Specified by:
getTagIds in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
names - the names of the asset tags
Returns:
the primary keys of the asset tags with the names in the group
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

getTagIds

public long[] getTagIds(long[] groupIds,
                        String name)
                 throws PortalException,
                        SystemException
Returns the primary keys of the asset tags with the name in the groups.

Specified by:
getTagIds in interface AssetTagLocalService
Parameters:
groupIds - the primary keys of the groups
name - the name of the asset tags
Returns:
the primary keys of the asset tags with the name in the groups
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

getTagIds

public long[] getTagIds(long[] groupIds,
                        String[] names)
                 throws PortalException,
                        SystemException
Returns the primary keys of the asset tags with the names in the groups.

Specified by:
getTagIds in interface AssetTagLocalService
Parameters:
groupIds - the primary keys of the groups
names - the names of the asset tags
Returns:
the primary keys of the asset tags with the names in the groups
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

getTagNames

public String[] getTagNames()
                     throws SystemException
Returns the names of all the asset tags.

Specified by:
getTagNames in interface AssetTagLocalService
Returns:
the names of all the asset tags
Throws:
SystemException - if a system exception occurred

getTagNames

public String[] getTagNames(long classNameId,
                            long classPK)
                     throws SystemException
Returns the names of the asset tags of the entity.

Specified by:
getTagNames in interface AssetTagLocalService
Parameters:
classNameId - the class name ID of the entity
classPK - the primary key of the entity
Returns:
the names of the asset tags of the entity
Throws:
SystemException - if a system exception occurred

getTagNames

public String[] getTagNames(String className,
                            long classPK)
                     throws SystemException
Returns the names of the asset tags of the entity

Specified by:
getTagNames in interface AssetTagLocalService
Parameters:
className - the class name of the entity
classPK - the primary key of the entity
Returns:
the names of the asset tags of the entity
Throws:
SystemException - if a system exception occurred

getTags

public List<AssetTag> getTags()
                       throws SystemException
Returns all the asset tags.

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

getTags

public List<AssetTag> getTags(long classNameId,
                              long classPK)
                       throws SystemException
Returns the asset tags of the entity.

Specified by:
getTags in interface AssetTagLocalService
Parameters:
classNameId - the class name ID of the entity
classPK - the primary key of the entity
Returns:
the asset tags of the entity
Throws:
SystemException - if a system exception occurred

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
Returns the asset tags of the entity.

Specified by:
getTags in interface AssetTagLocalService
Parameters:
className - the class name of the entity
classPK - the primary key of the entity
Returns:
the asset tags of the entity
Throws:
SystemException - if a system exception occurred

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
Returns true if the group contains an asset tag with the name.

Specified by:
hasTag in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
name - the name of the asset tag
Returns:
true if the group contains an asset tag with the name; false otherwise.
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

incrementAssetCount

public AssetTag incrementAssetCount(long tagId,
                                    long classNameId)
                             throws PortalException,
                                    SystemException
Increments the number of assets to which the asset tag has been applied.

Specified by:
incrementAssetCount in interface AssetTagLocalService
Parameters:
tagId - the primary key of the asset tag
classNameId - the class name ID of the entity to which the asset tag is being applied
Returns:
the asset tag
Throws:
PortalException - if a asset tag with the primary key could not be found or if a portal exception occurred
SystemException - if a system exception occurred

mergeTags

public void mergeTags(long fromTagId,
                      long toTagId,
                      boolean overrideProperties)
               throws PortalException,
                      SystemException
Replaces all occurrences of the first asset tag with the second asset tag and deletes the first asset tag.

Specified by:
mergeTags in interface AssetTagLocalService
Parameters:
fromTagId - the primary key of the asset tag to be replaced
toTagId - the primary key of the asset tag to apply to the asset entries of the other asset tag
overrideProperties - whether to override the properties of the second asset tag with the properties of the first asset tag
Throws:
PortalException - if a portal exception occurred
SystemException - if a system exception occurred

search

public List<AssetTag> search(long groupId,
                             String name,
                             String[] tagProperties,
                             int start,
                             int end)
                      throws SystemException
Returns the asset tags in the group whose names match the pattern and the properties.

Specified by:
search in interface AssetTagLocalService
Parameters:
groupId - the primary key of the group
name - the pattern to match
tagProperties - the properties to match
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the asset tags in the group whose names match the pattern
Throws:
SystemException - if a system exception occurred

search

public List<AssetTag> search(long[] groupIds,
                             String name,
                             String[] tagProperties,
                             int start,
                             int end)
                      throws SystemException
Returns the asset tags in the groups whose names match the pattern and the properties.

Specified by:
search in interface AssetTagLocalService
Parameters:
groupIds - the primary keys of the groups
name - the pattern to match
tagProperties - the properties to match
start - the lower bound of the range of asset tags
end - the upper bound of the range of asset tags (not inclusive)
Returns:
the asset tags in the groups whose names match the pattern
Throws:
SystemException - if a system exception occurred

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()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedAssetTagLocalService

public void setWrappedAssetTagLocalService(AssetTagLocalService assetTagLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.asset.service.AssetTagLocalService)


getWrappedService

public AssetTagLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<AssetTagLocalService>

setWrappedService

public void setWrappedService(AssetTagLocalService assetTagLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<AssetTagLocalService>

Liferay 6.2-ce-ga5