Class AssetTagLocalServiceWrapper

Object
com.liferay.asset.kernel.service.AssetTagLocalServiceWrapper
All Implemented Interfaces:
AssetTagLocalService, BaseLocalService, CTService<AssetTag>, PersistedModelLocalService, ServiceWrapper<AssetTagLocalService>

public class AssetTagLocalServiceWrapper extends Object implements AssetTagLocalService, ServiceWrapper<AssetTagLocalService>
Provides a wrapper for AssetTagLocalService.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • AssetTagLocalServiceWrapper

      public AssetTagLocalServiceWrapper()
    • AssetTagLocalServiceWrapper

      public AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService)
  • Method Details

    • addAssetEntryAssetTag

      public boolean addAssetEntryAssetTag(long entryId, AssetTag assetTag)
      Specified by:
      addAssetEntryAssetTag in interface AssetTagLocalService
    • addAssetEntryAssetTag

      public boolean addAssetEntryAssetTag(long entryId, long tagId)
      Specified by:
      addAssetEntryAssetTag in interface AssetTagLocalService
    • addAssetEntryAssetTags

      public boolean addAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
      Specified by:
      addAssetEntryAssetTags in interface AssetTagLocalService
    • addAssetEntryAssetTags

      public boolean addAssetEntryAssetTags(long entryId, long[] tagIds)
      Specified by:
      addAssetEntryAssetTags in interface AssetTagLocalService
    • addAssetTag

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

      Important: Inspect AssetTagLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      addAssetTag in interface AssetTagLocalService
      Parameters:
      assetTag - the asset tag
      Returns:
      the asset tag that was added
    • addTag

      public AssetTag addTag(String externalReferenceCode, long userId, long groupId, String name, ServiceContext serviceContext) throws PortalException
      Adds an asset tag.
      Specified by:
      addTag in interface AssetTagLocalService
      Parameters:
      externalReferenceCode -
      userId - the primary key of the user adding the asset tag
      groupId - the primary key of the group in which the asset tag is to be added
      name - the asset tag's name
      serviceContext - the service context to be applied
      Returns:
      the asset tag that was added
      Throws:
      PortalException
    • checkTags

      public List<AssetTag> checkTags(long userId, Group group, String[] names) throws PortalException
      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
    • checkTags

      public List<AssetTag> checkTags(long userId, long groupId, String[] names) throws PortalException
      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
      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
    • clearAssetEntryAssetTags

      public void clearAssetEntryAssetTags(long entryId)
      Specified by:
      clearAssetEntryAssetTags in interface AssetTagLocalService
    • 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
    • createPersistedModel

      public PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
      Specified by:
      createPersistedModel in interface AssetTagLocalService
      Specified by:
      createPersistedModel in interface PersistedModelLocalService
      Throws:
      PortalException
      PortalException
    • decrementAssetCount

      public AssetTag decrementAssetCount(long tagId, long classNameId) throws PortalException
      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
    • deleteAssetEntryAssetTag

      public void deleteAssetEntryAssetTag(long entryId, AssetTag assetTag)
      Specified by:
      deleteAssetEntryAssetTag in interface AssetTagLocalService
    • deleteAssetEntryAssetTag

      public void deleteAssetEntryAssetTag(long entryId, long tagId)
      Specified by:
      deleteAssetEntryAssetTag in interface AssetTagLocalService
    • deleteAssetEntryAssetTags

      public void deleteAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
      Specified by:
      deleteAssetEntryAssetTags in interface AssetTagLocalService
    • deleteAssetEntryAssetTags

      public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
      Specified by:
      deleteAssetEntryAssetTags in interface AssetTagLocalService
    • deleteAssetTag

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

      Important: Inspect AssetTagLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteAssetTag in interface AssetTagLocalService
      Parameters:
      assetTag - the asset tag
      Returns:
      the asset tag that was removed
    • deleteAssetTag

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

      Important: Inspect AssetTagLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      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
      PortalException
    • deleteGroupTags

      public void deleteGroupTags(long groupId) throws PortalException
      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
    • deletePersistedModel

      public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
      Specified by:
      deletePersistedModel in interface AssetTagLocalService
      Specified by:
      deletePersistedModel in interface PersistedModelLocalService
      Throws:
      PortalException
      PortalException
    • deleteTag

      public void deleteTag(AssetTag tag) throws PortalException
      Deletes the asset tag.
      Specified by:
      deleteTag in interface AssetTagLocalService
      Parameters:
      tag - the asset tag to be deleted
      Throws:
      PortalException
    • deleteTag

      public void deleteTag(long tagId) throws PortalException
      Deletes the asset tag.
      Specified by:
      deleteTag in interface AssetTagLocalService
      Parameters:
      tagId - the primary key of the asset tag
      Throws:
      PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface AssetTagLocalService
      Specified by:
      dslQuery in interface PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface AssetTagLocalService
      Specified by:
      dslQueryCount in interface PersistedModelLocalService
    • dynamicQuery

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

      public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
      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
    • dynamicQuery

      public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetTagModelImpl.

      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
    • dynamicQuery

      public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetTagModelImpl.

      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
    • dynamicQueryCount

      public long dynamicQueryCount(DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface AssetTagLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
      Returns the number of rows matching 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 matching the dynamic query
    • fetchAssetTag

      public AssetTag fetchAssetTag(long tagId)
      Specified by:
      fetchAssetTag in interface AssetTagLocalService
    • fetchAssetTagByExternalReferenceCode

      public AssetTag fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchAssetTagByExternalReferenceCode in interface AssetTagLocalService
    • fetchAssetTagByUuidAndGroupId

      public AssetTag fetchAssetTagByUuidAndGroupId(String uuid, long groupId)
      Returns the asset tag matching the UUID and group.
      Specified by:
      fetchAssetTagByUuidAndGroupId in interface AssetTagLocalService
      Parameters:
      uuid - the asset tag's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset tag, or null if a matching asset tag could not be found
    • fetchTag

      public AssetTag fetchTag(long groupId, String name)
      Returns the asset tag with the name in the group.
      Specified by:
      fetchTag in interface AssetTagLocalService
      Parameters:
      groupId - the primary key of the group
      name - the asset tag's name
      Returns:
      the asset tag with the name in the group or null if it could not be found
    • getActionableDynamicQuery

      public ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface AssetTagLocalService
    • getAssetEntryAssetTags

      public List<AssetTag> getAssetEntryAssetTags(long entryId)
      Specified by:
      getAssetEntryAssetTags in interface AssetTagLocalService
    • getAssetEntryAssetTags

      public List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end)
      Specified by:
      getAssetEntryAssetTags in interface AssetTagLocalService
    • getAssetEntryAssetTags

      public List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
      Specified by:
      getAssetEntryAssetTags in interface AssetTagLocalService
    • getAssetEntryAssetTagsCount

      public int getAssetEntryAssetTagsCount(long entryId)
      Specified by:
      getAssetEntryAssetTagsCount in interface AssetTagLocalService
    • getAssetEntryPrimaryKeys

      public long[] getAssetEntryPrimaryKeys(long tagId)
      Returns the entryIds of the asset entries associated with the asset tag.
      Specified by:
      getAssetEntryPrimaryKeys in interface AssetTagLocalService
      Parameters:
      tagId - the tagId of the asset tag
      Returns:
      long[] the entryIds of asset entries associated with the asset tag
    • getAssetTag

      public AssetTag getAssetTag(long tagId) throws PortalException
      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
      PortalException
    • getAssetTagByExternalReferenceCode

      public AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException
      Specified by:
      getAssetTagByExternalReferenceCode in interface AssetTagLocalService
      Throws:
      PortalException
    • getAssetTagByUuidAndGroupId

      public AssetTag getAssetTagByUuidAndGroupId(String uuid, long groupId) throws PortalException
      Returns the asset tag matching the UUID and group.
      Specified by:
      getAssetTagByUuidAndGroupId in interface AssetTagLocalService
      Parameters:
      uuid - the asset tag's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset tag
      Throws:
      PortalException - if a matching asset tag could not be found
      PortalException
    • getAssetTags

      public List<AssetTag> getAssetTags(int start, int end)
      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetTagModelImpl.

      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
    • getAssetTagsByUuidAndCompanyId

      public List<AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the asset tags matching the UUID and company.
      Specified by:
      getAssetTagsByUuidAndCompanyId in interface AssetTagLocalService
      Parameters:
      uuid - the UUID of the asset tags
      companyId - the primary key of the company
      Returns:
      the matching asset tags, or an empty list if no matches were found
    • getAssetTagsByUuidAndCompanyId

      public List<AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
      Returns a range of asset tags matching the UUID and company.
      Specified by:
      getAssetTagsByUuidAndCompanyId in interface AssetTagLocalService
      Parameters:
      uuid - the UUID of the asset tags
      companyId - the primary key of the company
      start - the lower bound of the range of asset tags
      end - the upper bound of the range of asset tags (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching asset tags, or an empty list if no matches were found
    • getAssetTagsCount

      public int getAssetTagsCount()
      Returns the number of asset tags.
      Specified by:
      getAssetTagsCount in interface AssetTagLocalService
      Returns:
      the number of asset tags
    • getEntryTags

      public List<AssetTag> getEntryTags(long entryId)
      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
    • getExportActionableDynamicQuery

      public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface AssetTagLocalService
    • getGroupsTags

      public List<AssetTag> getGroupsTags(long[] groupIds)
      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
    • getGroupTags

      public List<AssetTag> getGroupTags(long groupId)
      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
    • getGroupTags

      public List<AssetTag> getGroupTags(long groupId, int start, int end)
      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
    • getGroupTags

      public List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
      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)
      orderByComparator - the comparator to order the asset tags (optionally null)
      Returns:
      the range of matching asset tags
    • getGroupTagsCount

      public int getGroupTagsCount(long groupId)
      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
    • getIndexableActionableDynamicQuery

      public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface AssetTagLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface AssetTagLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

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

      public AssetTag getTag(long tagId) throws PortalException
      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
    • getTag

      public AssetTag getTag(long groupId, String name) throws PortalException
      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
    • getTagIds

      public long[] getTagIds(long groupId, String[] names)
      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
    • getTagIds

      public long[] getTagIds(long[] groupIds, String name)
      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
    • getTagIds

      public long[] getTagIds(long[] groupIds, String[] names)
      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
    • getTagIds

      public long[] getTagIds(String name)
      Returns the primary keys of the asset tags with the names.
      Specified by:
      getTagIds in interface AssetTagLocalService
      Parameters:
      name - the name of the asset tags
      Returns:
      the primary keys of the asset tags with the names
    • getTagNames

      public String[] getTagNames()
      Returns the names of all the asset tags.
      Specified by:
      getTagNames in interface AssetTagLocalService
      Returns:
      the names of all the asset tags
    • getTagNames

      public String[] getTagNames(long classNameId, long classPK)
      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
    • getTagNames

      public String[] getTagNames(String className, long classPK)
      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
    • getTags

      public List<AssetTag> getTags()
      Returns all the asset tags.
      Specified by:
      getTags in interface AssetTagLocalService
      Returns:
      the asset tags
    • getTags

      public List<AssetTag> getTags(long classNameId, long classPK)
      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
    • getTags

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

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

      public List<AssetTag> getTags(String className, long classPK)
      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
    • getTagsSize

      public int getTagsSize(long groupId, long classNameId, String name)
      Specified by:
      getTagsSize in interface AssetTagLocalService
    • hasAssetEntryAssetTag

      public boolean hasAssetEntryAssetTag(long entryId, long tagId)
      Specified by:
      hasAssetEntryAssetTag in interface AssetTagLocalService
    • hasAssetEntryAssetTags

      public boolean hasAssetEntryAssetTags(long entryId)
      Specified by:
      hasAssetEntryAssetTags in interface AssetTagLocalService
    • hasTag

      public boolean hasTag(long groupId, String name)
      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.
    • incrementAssetCount

      public AssetTag incrementAssetCount(long tagId, long classNameId) throws PortalException
      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
    • mergeTags

      public void mergeTags(long fromTagId, long toTagId) throws PortalException
      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
      Throws:
      PortalException
    • search

      public List<AssetTag> search(long groupId, String name, int start, int end)
      Returns the asset tags in the group whose names match the pattern.
      Specified by:
      search in interface AssetTagLocalService
      Parameters:
      groupId - the primary key of the group
      name - the pattern 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
    • search

      public List<AssetTag> search(long[] groupIds, String name, int start, int end)
      Returns the asset tags in the groups whose names match the pattern.
      Specified by:
      search in interface AssetTagLocalService
      Parameters:
      groupIds - the primary keys of the groups
      name - the pattern 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
    • searchTags

      public BaseModelSearchResult<AssetTag> searchTags(long[] groupIds, String name, int start, int end, Sort sort) throws PortalException
      Specified by:
      searchTags in interface AssetTagLocalService
      Throws:
      PortalException
    • setAssetEntryAssetTags

      public void setAssetEntryAssetTags(long entryId, long[] tagIds)
      Specified by:
      setAssetEntryAssetTags in interface AssetTagLocalService
    • subscribeTag

      public void subscribeTag(long userId, long groupId, long tagId) throws PortalException
      Specified by:
      subscribeTag in interface AssetTagLocalService
      Throws:
      PortalException
    • unsubscribeTag

      public void unsubscribeTag(long userId, long tagId) throws PortalException
      Specified by:
      unsubscribeTag in interface AssetTagLocalService
      Throws:
      PortalException
    • updateAssetTag

      public AssetTag updateAssetTag(AssetTag assetTag)
      Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AssetTagLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      updateAssetTag in interface AssetTagLocalService
      Parameters:
      assetTag - the asset tag
      Returns:
      the asset tag that was updated
    • updateTag

      public AssetTag updateTag(String externalReferenceCode, long userId, long tagId, String name, ServiceContext serviceContext) throws PortalException
      Specified by:
      updateTag in interface AssetTagLocalService
      Throws:
      PortalException
    • getBasePersistence

      public BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface PersistedModelLocalService
    • getCTPersistence

      public CTPersistence<AssetTag> getCTPersistence()
      Specified by:
      getCTPersistence in interface AssetTagLocalService
      Specified by:
      getCTPersistence in interface CTService<AssetTag>
    • getModelClass

      public Class<AssetTag> getModelClass()
      Specified by:
      getModelClass in interface AssetTagLocalService
      Specified by:
      getModelClass in interface CTService<AssetTag>
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTag>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface AssetTagLocalService
      Specified by:
      updateWithUnsafeFunction in interface CTService<AssetTag>
      Throws:
      E extends Throwable
    • getWrappedService

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

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