Interface AssetTagGroupRelLocalService

All Superinterfaces:
BaseLocalService, CTService<AssetTagGroupRel>, PersistedModelLocalService
All Known Implementing Classes:
AssetTagGroupRelLocalServiceWrapper

Provides the local service interface for AssetTagGroupRel. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • addAssetTagGroupRel

      @Indexable(type=REINDEX) AssetTagGroupRel addAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel)
      Adds the asset tag group rel to the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetTagGroupRelLocalServiceImpl 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.

      Parameters:
      assetTagGroupRel - the asset tag group rel
      Returns:
      the asset tag group rel that was added
    • addAssetTagGroupRel

      AssetTagGroupRel addAssetTagGroupRel(long groupId, long tagId) throws PortalException
      Throws:
      PortalException
    • createAssetTagGroupRel

      @Transactional(enabled=false) AssetTagGroupRel createAssetTagGroupRel(long assetTagGroupRelId)
      Creates a new asset tag group rel with the primary key. Does not add the asset tag group rel to the database.
      Parameters:
      assetTagGroupRelId - the primary key for the new asset tag group rel
      Returns:
      the new asset tag group rel
    • createPersistedModel

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

      @Indexable(type=DELETE) AssetTagGroupRel deleteAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel)
      Deletes the asset tag group rel from the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetTagGroupRelLocalServiceImpl 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.

      Parameters:
      assetTagGroupRel - the asset tag group rel
      Returns:
      the asset tag group rel that was removed
    • deleteAssetTagGroupRel

      @Indexable(type=DELETE) AssetTagGroupRel deleteAssetTagGroupRel(long assetTagGroupRelId) throws PortalException
      Deletes the asset tag group rel with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetTagGroupRelLocalServiceImpl 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.

      Parameters:
      assetTagGroupRelId - the primary key of the asset tag group rel
      Returns:
      the asset tag group rel that was removed
      Throws:
      PortalException - if a asset tag group rel with the primary key could not be found
    • deleteAssetTagGroupRelsByGroupId

      void deleteAssetTagGroupRelsByGroupId(long groupId)
    • deleteAssetTagGroupRelsByTagId

      void deleteAssetTagGroupRelsByTagId(long tagId)
    • deletePersistedModel

      PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
      Specified by:
      deletePersistedModel in interface PersistedModelLocalService
      Throws:
      PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface PersistedModelLocalService
    • dynamicQuery

    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.AssetTagGroupRelModelImpl.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) <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.AssetTagGroupRelModelImpl.

      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

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchAssetTagGroupRel

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel fetchAssetTagGroupRel(long assetTagGroupRelId)
    • fetchAssetTagGroupRelByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel fetchAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId)
      Returns the asset tag group rel matching the UUID and group.
      Parameters:
      uuid - the asset tag group rel's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset tag group rel, or null if a matching asset tag group rel could not be found
    • getActionableDynamicQuery

    • getAssetTagGroupRel

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel getAssetTagGroupRel(long assetTagGroupRelId) throws PortalException
      Returns the asset tag group rel with the primary key.
      Parameters:
      assetTagGroupRelId - the primary key of the asset tag group rel
      Returns:
      the asset tag group rel
      Throws:
      PortalException - if a asset tag group rel with the primary key could not be found
    • getAssetTagGroupRelByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetTagGroupRel getAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId) throws PortalException
      Returns the asset tag group rel matching the UUID and group.
      Parameters:
      uuid - the asset tag group rel's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset tag group rel
      Throws:
      PortalException - if a matching asset tag group rel could not be found
    • getAssetTagGroupRels

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRels(int start, int end)
      Returns a range of all the asset tag group rels.

      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.AssetTagGroupRelModelImpl.

      Parameters:
      start - the lower bound of the range of asset tag group rels
      end - the upper bound of the range of asset tag group rels (not inclusive)
      Returns:
      the range of asset tag group rels
    • getAssetTagGroupRelsByGroupyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByGroupyId(long groupId)
    • getAssetTagGroupRelsByTagId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByTagId(long tagId)
    • getAssetTagGroupRelsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the asset tag group rels matching the UUID and company.
      Parameters:
      uuid - the UUID of the asset tag group rels
      companyId - the primary key of the company
      Returns:
      the matching asset tag group rels, or an empty list if no matches were found
    • getAssetTagGroupRelsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetTagGroupRel> getAssetTagGroupRelsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetTagGroupRel> orderByComparator)
      Returns a range of asset tag group rels matching the UUID and company.
      Parameters:
      uuid - the UUID of the asset tag group rels
      companyId - the primary key of the company
      start - the lower bound of the range of asset tag group rels
      end - the upper bound of the range of asset tag group rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching asset tag group rels, or an empty list if no matches were found
    • getAssetTagGroupRelsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getAssetTagGroupRelsCount()
      Returns the number of asset tag group rels.
      Returns:
      the number of asset tag group rels
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
      Specified by:
      getPersistedModel in interface PersistedModelLocalService
      Throws:
      PortalException
    • setAssetTagGroupRels

      void setAssetTagGroupRels(long tagId, long[] groupIds) throws PortalException
      Throws:
      PortalException
    • updateAssetTagGroupRel

      @Indexable(type=REINDEX) AssetTagGroupRel updateAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel)
      Updates the asset tag group rel in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AssetTagGroupRelLocalServiceImpl 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.

      Parameters:
      assetTagGroupRel - the asset tag group rel
      Returns:
      the asset tag group rel that was updated
    • getCTPersistence

      Specified by:
      getCTPersistence in interface CTService<AssetTagGroupRel>
    • getModelClass

      @Transactional(enabled=false) Class<AssetTagGroupRel> getModelClass()
      Specified by:
      getModelClass in interface CTService<AssetTagGroupRel>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTagGroupRel>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface CTService<AssetTagGroupRel>
      Throws:
      E extends Throwable