Class AssetTagGroupRelLocalServiceUtil
com.liferay.portlet.asset.service.impl.AssetTagGroupRelLocalServiceImpl and
is an access point for service operations in application layer code running
on the local server. 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}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AssetTagGroupReladdAssetTagGroupRel(long groupId, long tagId) static AssetTagGroupReladdAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel) Adds the asset tag group rel to the database.static AssetTagGroupRelcreateAssetTagGroupRel(long assetTagGroupRelId) Creates a new asset tag group rel with the primary key.static PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static AssetTagGroupReldeleteAssetTagGroupRel(long assetTagGroupRelId) Deletes the asset tag group rel with the primary key from the database.static AssetTagGroupReldeleteAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel) Deletes the asset tag group rel from the database.static voiddeleteAssetTagGroupRelsByGroupId(long groupId) static voiddeleteAssetTagGroupRelsByTagId(long tagId) static PersistedModeldeletePersistedModel(PersistedModel persistedModel) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static DynamicQuerystatic <T> List<T>dynamicQuery(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <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.static <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.static longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.static AssetTagGroupRelfetchAssetTagGroupRel(long assetTagGroupRelId) static AssetTagGroupRelfetchAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId) Returns the asset tag group rel matching the UUID and group.static ActionableDynamicQuerystatic AssetTagGroupRelgetAssetTagGroupRel(long assetTagGroupRelId) Returns the asset tag group rel with the primary key.static AssetTagGroupRelgetAssetTagGroupRelByUuidAndGroupId(String uuid, long groupId) Returns the asset tag group rel matching the UUID and group.static List<AssetTagGroupRel>getAssetTagGroupRels(int start, int end) Returns a range of all the asset tag group rels.static List<AssetTagGroupRel>getAssetTagGroupRelsByGroupyId(long groupId) static List<AssetTagGroupRel>getAssetTagGroupRelsByTagId(long tagId) static List<AssetTagGroupRel>getAssetTagGroupRelsByUuidAndCompanyId(String uuid, long companyId) Returns all the asset tag group rels matching the UUID and company.static 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.static intReturns the number of asset tag group rels.static StringReturns the OSGi service identifier.static PersistedModelgetPersistedModel(Serializable primaryKeyObj) static AssetTagGroupRelLocalServicestatic voidsetAssetTagGroupRels(long tagId, long[] groupIds) static voidsetService(AssetTagGroupRelLocalService service) static AssetTagGroupRelupdateAssetTagGroupRel(AssetTagGroupRel assetTagGroupRel) Updates the asset tag group rel in the database or adds it if it does not yet exist.
-
Constructor Details
-
AssetTagGroupRelLocalServiceUtil
public AssetTagGroupRelLocalServiceUtil()
-
-
Method Details
-
addAssetTagGroupRel
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
- Throws:
PortalException
-
createAssetTagGroupRel
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
public static PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException - Throws:
PortalException
-
deleteAssetTagGroupRel
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
public static 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
public static void deleteAssetTagGroupRelsByGroupId(long groupId) -
deleteAssetTagGroupRelsByTagId
public static void deleteAssetTagGroupRelsByTagId(long tagId) -
deletePersistedModel
public static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException - Throws:
PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAssetTagGroupRel
-
fetchAssetTagGroupRelByUuidAndGroupId
Returns the asset tag group rel matching the UUID and group.- Parameters:
uuid- the asset tag group rel's UUIDgroupId- the primary key of the group- Returns:
- the matching asset tag group rel, or
nullif a matching asset tag group rel could not be found
-
getActionableDynamicQuery
-
getAssetTagGroupRel
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
public static 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 UUIDgroupId- 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
Returns a range of all the asset tag group rels.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagGroupRelModelImpl.- Parameters:
start- the lower bound of the range of asset tag group relsend- the upper bound of the range of asset tag group rels (not inclusive)- Returns:
- the range of asset tag group rels
-
getAssetTagGroupRelsByGroupyId
-
getAssetTagGroupRelsByTagId
-
getAssetTagGroupRelsByUuidAndCompanyId
public static 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 relscompanyId- the primary key of the company- Returns:
- the matching asset tag group rels, or an empty list if no matches were found
-
getAssetTagGroupRelsByUuidAndCompanyId
public static 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 relscompanyId- the primary key of the companystart- the lower bound of the range of asset tag group relsend- the upper bound of the range of asset tag group rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching asset tag group rels, or an empty list if no matches were found
-
getAssetTagGroupRelsCount
public static int getAssetTagGroupRelsCount()Returns the number of asset tag group rels.- Returns:
- the number of asset tag group rels
-
getIndexableActionableDynamicQuery
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
- Throws:
PortalException
-
setAssetTagGroupRels
- Throws:
PortalException
-
updateAssetTagGroupRel
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
-
getService
-
setService
-