Class AssetTagLocalServiceBaseImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetTagLocalService,com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetTag>,com.liferay.portal.kernel.service.PersistedModelLocalService
- Direct Known Subclasses:
AssetTagLocalServiceImpl
This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in AssetTagLocalServiceImpl.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.liferay.asset.kernel.service.persistence.AssetEntryPersistenceprotected com.liferay.asset.kernel.service.persistence.AssetTagFinderprotected com.liferay.asset.kernel.service.AssetTagLocalServiceprotected com.liferay.asset.kernel.service.persistence.AssetTagPersistenceprotected com.liferay.counter.kernel.service.CounterLocalService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAssetEntryAssetTag(long entryId, long tagId) booleanaddAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) booleanaddAssetEntryAssetTags(long entryId, long[] tagIds) booleanaddAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) com.liferay.asset.kernel.model.AssetTagaddAssetTag(com.liferay.asset.kernel.model.AssetTag assetTag) Adds the asset tag to the database.voidvoidclearAssetEntryAssetTags(long entryId) com.liferay.asset.kernel.model.AssetTagcreateAssetTag(long tagId) Creates a new asset tag with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) voiddeleteAssetEntryAssetTag(long entryId, long tagId) voiddeleteAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) voiddeleteAssetEntryAssetTags(long entryId, long[] tagIds) voiddeleteAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) com.liferay.asset.kernel.model.AssetTagdeleteAssetTag(long tagId) Deletes the asset tag with the primary key from the database.com.liferay.asset.kernel.model.AssetTagdeleteAssetTag(com.liferay.asset.kernel.model.AssetTag assetTag) Deletes the asset tag from the database.com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) voiddestroy()<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.com.liferay.asset.kernel.model.AssetTagfetchAssetTag(long tagId) com.liferay.asset.kernel.model.AssetTagfetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) com.liferay.asset.kernel.model.AssetTagfetchAssetTagByUuidAndGroupId(String uuid, long groupId) Returns the asset tag matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQueryList<com.liferay.asset.kernel.model.AssetTag>getAssetEntryAssetTags(long entryId) List<com.liferay.asset.kernel.model.AssetTag>getAssetEntryAssetTags(long entryId, int start, int end) List<com.liferay.asset.kernel.model.AssetTag>getAssetEntryAssetTags(long entryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) intgetAssetEntryAssetTagsCount(long entryId) long[]getAssetEntryPrimaryKeys(long tagId) Returns the entryIds of the asset entries associated with the asset tag.com.liferay.asset.kernel.model.AssetTaggetAssetTag(long tagId) Returns the asset tag with the primary key.com.liferay.asset.kernel.model.AssetTaggetAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) com.liferay.asset.kernel.model.AssetTaggetAssetTagByUuidAndGroupId(String uuid, long groupId) Returns the asset tag matching the UUID and group.com.liferay.asset.kernel.service.persistence.AssetTagFinderReturns the asset tag finder.com.liferay.asset.kernel.service.AssetTagLocalServiceReturns the asset tag local service.com.liferay.asset.kernel.service.persistence.AssetTagPersistenceReturns the asset tag persistence.List<com.liferay.asset.kernel.model.AssetTag>getAssetTags(int start, int end) Returns a range of all the asset tags.List<com.liferay.asset.kernel.model.AssetTag>getAssetTagsByUuidAndCompanyId(String uuid, long companyId) Returns all the asset tags matching the UUID and company.List<com.liferay.asset.kernel.model.AssetTag>getAssetTagsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns a range of asset tags matching the UUID and company.intReturns the number of asset tags.com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>com.liferay.counter.kernel.service.CounterLocalServiceReturns the counter local service.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQueryClass<com.liferay.asset.kernel.model.AssetTag>protected StringReturns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) booleanhasAssetEntryAssetTag(long entryId, long tagId) booleanhasAssetEntryAssetTags(long entryId) protected voidinitActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) protected voidPerforms a SQL query.voidsetAssetEntryAssetTags(long entryId, long[] tagIds) voidsetAssetTagFinder(com.liferay.asset.kernel.service.persistence.AssetTagFinder assetTagFinder) Sets the asset tag finder.voidsetAssetTagLocalService(com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) Sets the asset tag local service.voidsetAssetTagPersistence(com.liferay.asset.kernel.service.persistence.AssetTagPersistence assetTagPersistence) Sets the asset tag persistence.voidsetCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.com.liferay.asset.kernel.model.AssetTagupdateAssetTag(com.liferay.asset.kernel.model.AssetTag assetTag) Updates the asset tag in the database or adds it if it does not yet exist.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>, R, E> updateUnsafeFunction) Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.asset.kernel.service.AssetTagLocalService
addTag, checkTags, checkTags, decrementAssetCount, deleteGroupTags, deleteTag, deleteTag, fetchTag, getEntryTags, getGroupsTags, getGroupTags, getGroupTags, getGroupTags, getGroupTagsCount, getTag, getTag, getTagIds, getTagIds, getTagIds, getTagIds, getTagNames, getTagNames, getTagNames, getTags, getTags, getTags, getTags, getTags, getTagsSize, hasTag, incrementAssetCount, mergeTags, search, search, searchTags, subscribeTag, unsubscribeTag, updateTagMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Field Details
-
assetTagLocalService
@BeanReference(type=com.liferay.asset.kernel.service.AssetTagLocalService.class) protected com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService -
assetTagPersistence
@BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetTagPersistence.class) protected com.liferay.asset.kernel.service.persistence.AssetTagPersistence assetTagPersistence -
assetTagFinder
@BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetTagFinder.class) protected com.liferay.asset.kernel.service.persistence.AssetTagFinder assetTagFinder -
counterLocalService
@BeanReference(type=com.liferay.counter.kernel.service.CounterLocalService.class) protected com.liferay.counter.kernel.service.CounterLocalService counterLocalService -
assetEntryPersistence
@BeanReference(type=com.liferay.asset.kernel.service.persistence.AssetEntryPersistence.class) protected com.liferay.asset.kernel.service.persistence.AssetEntryPersistence assetEntryPersistence
-
-
Constructor Details
-
AssetTagLocalServiceBaseImpl
public AssetTagLocalServiceBaseImpl()
-
-
Method Details
-
addAssetTag
@Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetTag addAssetTag(com.liferay.asset.kernel.model.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:
addAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was added
-
createAssetTag
@Transactional(enabled=false) public com.liferay.asset.kernel.model.AssetTag createAssetTag(long tagId) Creates a new asset tag with the primary key. Does not add the asset tag to the database.- Specified by:
createAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
tagId- the primary key for the new asset tag- Returns:
- the new asset tag
-
deleteAssetTag
@Indexable(type=DELETE) public com.liferay.asset.kernel.model.AssetTag deleteAssetTag(long tagId) throws com.liferay.portal.kernel.exception.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:
deleteAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a asset tag with the primary key could not be found
-
deleteAssetTag
@Indexable(type=DELETE) public com.liferay.asset.kernel.model.AssetTag deleteAssetTag(com.liferay.asset.kernel.model.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:
deleteAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was removed
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 - 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.AssetTagModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- 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 <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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.AssetTagModelImpl.- Specified by:
dynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- 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
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAssetTag
public com.liferay.asset.kernel.model.AssetTag fetchAssetTag(long tagId) - Specified by:
fetchAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
fetchAssetTagByUuidAndGroupId
public com.liferay.asset.kernel.model.AssetTag fetchAssetTagByUuidAndGroupId(String uuid, long groupId) Returns the asset tag matching the UUID and group.- Specified by:
fetchAssetTagByUuidAndGroupIdin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
uuid- the asset tag's UUIDgroupId- the primary key of the group- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
fetchAssetTagByExternalReferenceCode
public com.liferay.asset.kernel.model.AssetTag fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchAssetTagByExternalReferenceCodein interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetTagByExternalReferenceCode
public com.liferay.asset.kernel.model.AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getAssetTagByExternalReferenceCodein interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAssetTag
public com.liferay.asset.kernel.model.AssetTag getAssetTag(long tagId) throws com.liferay.portal.kernel.exception.PortalException Returns the asset tag with the primary key.- Specified by:
getAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a asset tag with the primary key could not be found
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
initActionableDynamicQuery
protected void initActionableDynamicQuery(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) -
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModelin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAssetTagsByUuidAndCompanyId
public List<com.liferay.asset.kernel.model.AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId) Returns all the asset tags matching the UUID and company.- Specified by:
getAssetTagsByUuidAndCompanyIdin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
uuid- the UUID of the asset tagscompanyId- the primary key of the company- Returns:
- the matching asset tags, or an empty list if no matches were found
-
getAssetTagsByUuidAndCompanyId
public List<com.liferay.asset.kernel.model.AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) Returns a range of asset tags matching the UUID and company.- Specified by:
getAssetTagsByUuidAndCompanyIdin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
uuid- the UUID of the asset tagscompanyId- the primary key of the companystart- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the range of matching asset tags, or an empty list if no matches were found
-
getAssetTagByUuidAndGroupId
public com.liferay.asset.kernel.model.AssetTag getAssetTagByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the asset tag matching the UUID and group.- Specified by:
getAssetTagByUuidAndGroupIdin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
uuid- the asset tag's UUIDgroupId- the primary key of the group- Returns:
- the matching asset tag
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a matching asset tag could not be found
-
getAssetTags
Returns a range of all the asset tags.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.AssetTagModelImpl.- Specified by:
getAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
start- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)- Returns:
- the range of asset tags
-
getAssetTagsCount
public int getAssetTagsCount()Returns the number of asset tags.- Specified by:
getAssetTagsCountin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Returns:
- the number of asset tags
-
updateAssetTag
@Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetTag updateAssetTag(com.liferay.asset.kernel.model.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:
updateAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was updated
-
addAssetEntryAssetTag
public boolean addAssetEntryAssetTag(long entryId, long tagId) - Specified by:
addAssetEntryAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTag
public boolean addAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) - Specified by:
addAssetEntryAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTags
public boolean addAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
addAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTags
public boolean addAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) - Specified by:
addAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
clearAssetEntryAssetTags
public void clearAssetEntryAssetTags(long entryId) - Specified by:
clearAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTag
public void deleteAssetEntryAssetTag(long entryId, long tagId) - Specified by:
deleteAssetEntryAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTag
public void deleteAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) - Specified by:
deleteAssetEntryAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTags
public void deleteAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
deleteAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTags
public void deleteAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) - Specified by:
deleteAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryPrimaryKeys
public long[] getAssetEntryPrimaryKeys(long tagId) Returns the entryIds of the asset entries associated with the asset tag.- Specified by:
getAssetEntryPrimaryKeysin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Parameters:
tagId- the tagId of the asset tag- Returns:
- long[] the entryIds of asset entries associated with the asset tag
-
getAssetEntryAssetTags
- Specified by:
getAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryAssetTags
public List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags(long entryId, int start, int end) - Specified by:
getAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryAssetTags
public List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) - Specified by:
getAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryAssetTagsCount
public int getAssetEntryAssetTagsCount(long entryId) - Specified by:
getAssetEntryAssetTagsCountin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
hasAssetEntryAssetTag
public boolean hasAssetEntryAssetTag(long entryId, long tagId) - Specified by:
hasAssetEntryAssetTagin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
hasAssetEntryAssetTags
public boolean hasAssetEntryAssetTags(long entryId) - Specified by:
hasAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
setAssetEntryAssetTags
public void setAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
setAssetEntryAssetTagsin interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetTagLocalService
public com.liferay.asset.kernel.service.AssetTagLocalService getAssetTagLocalService()Returns the asset tag local service.- Returns:
- the asset tag local service
-
setAssetTagLocalService
public void setAssetTagLocalService(com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) Sets the asset tag local service.- Parameters:
assetTagLocalService- the asset tag local service
-
getAssetTagPersistence
public com.liferay.asset.kernel.service.persistence.AssetTagPersistence getAssetTagPersistence()Returns the asset tag persistence.- Returns:
- the asset tag persistence
-
setAssetTagPersistence
public void setAssetTagPersistence(com.liferay.asset.kernel.service.persistence.AssetTagPersistence assetTagPersistence) Sets the asset tag persistence.- Parameters:
assetTagPersistence- the asset tag persistence
-
getAssetTagFinder
public com.liferay.asset.kernel.service.persistence.AssetTagFinder getAssetTagFinder()Returns the asset tag finder.- Returns:
- the asset tag finder
-
setAssetTagFinder
public void setAssetTagFinder(com.liferay.asset.kernel.service.persistence.AssetTagFinder assetTagFinder) Sets the asset tag finder.- Parameters:
assetTagFinder- the asset tag finder
-
getCounterLocalService
public com.liferay.counter.kernel.service.CounterLocalService getCounterLocalService()Returns the counter local service.- Returns:
- the counter local service
-
setCounterLocalService
public void setCounterLocalService(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.- Parameters:
counterLocalService- the counter local service
-
afterPropertiesSet
public void afterPropertiesSet() -
destroy
public void destroy() -
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
getOSGiServiceIdentifierin interfacecom.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService- Returns:
- the OSGi service identifier
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag> getCTPersistence()- Specified by:
getCTPersistencein interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetTag>
-
getModelClass
- Specified by:
getModelClassin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetTag>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<com.liferay.asset.kernel.model.AssetTag>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.asset.kernel.service.AssetTagLocalService- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetTag>- Throws:
E extends Throwable
-
getModelClassName
-
runSQL
Performs a SQL query.- Parameters:
sql- the sql query
-