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.AssetEntryPersistence
protected com.liferay.asset.kernel.service.persistence.AssetTagFinder
protected com.liferay.asset.kernel.service.AssetTagLocalService
protected com.liferay.asset.kernel.service.persistence.AssetTagPersistence
protected com.liferay.counter.kernel.service.CounterLocalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAssetEntryAssetTag
(long entryId, long tagId) boolean
addAssetEntryAssetTag
(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) boolean
addAssetEntryAssetTags
(long entryId, long[] tagIds) boolean
addAssetEntryAssetTags
(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) com.liferay.asset.kernel.model.AssetTag
addAssetTag
(com.liferay.asset.kernel.model.AssetTag assetTag) Adds the asset tag to the database.void
void
clearAssetEntryAssetTags
(long entryId) com.liferay.asset.kernel.model.AssetTag
createAssetTag
(long tagId) Creates a new asset tag with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteAssetEntryAssetTag
(long entryId, long tagId) void
deleteAssetEntryAssetTag
(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) void
deleteAssetEntryAssetTags
(long entryId, long[] tagIds) void
deleteAssetEntryAssetTags
(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) com.liferay.asset.kernel.model.AssetTag
deleteAssetTag
(long tagId) Deletes the asset tag with the primary key from the database.com.liferay.asset.kernel.model.AssetTag
deleteAssetTag
(com.liferay.asset.kernel.model.AssetTag assetTag) Deletes the asset tag from the database.com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) void
destroy()
<T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.com.liferay.asset.kernel.model.AssetTag
fetchAssetTag
(long tagId) com.liferay.asset.kernel.model.AssetTag
fetchAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) com.liferay.asset.kernel.model.AssetTag
fetchAssetTagByUuidAndGroupId
(String uuid, long groupId) Returns the asset tag matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
List<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) int
getAssetEntryAssetTagsCount
(long entryId) long[]
getAssetEntryPrimaryKeys
(long tagId) Returns the entryIds of the asset entries associated with the asset tag.com.liferay.asset.kernel.model.AssetTag
getAssetTag
(long tagId) Returns the asset tag with the primary key.com.liferay.asset.kernel.model.AssetTag
getAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) com.liferay.asset.kernel.model.AssetTag
getAssetTagByUuidAndGroupId
(String uuid, long groupId) Returns the asset tag matching the UUID and group.com.liferay.asset.kernel.service.persistence.AssetTagFinder
Returns the asset tag finder.com.liferay.asset.kernel.service.AssetTagLocalService
Returns the asset tag local service.com.liferay.asset.kernel.service.persistence.AssetTagPersistence
Returns 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.int
Returns the number of asset tags.com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.asset.kernel.model.AssetTag>
com.liferay.counter.kernel.service.CounterLocalService
Returns 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.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Class<com.liferay.asset.kernel.model.AssetTag>
protected String
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) boolean
hasAssetEntryAssetTag
(long entryId, long tagId) boolean
hasAssetEntryAssetTags
(long entryId) protected void
initActionableDynamicQuery
(com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery actionableDynamicQuery) protected void
Performs a SQL query.void
setAssetEntryAssetTags
(long entryId, long[] tagIds) void
setAssetTagFinder
(com.liferay.asset.kernel.service.persistence.AssetTagFinder assetTagFinder) Sets the asset tag finder.void
setAssetTagLocalService
(com.liferay.asset.kernel.service.AssetTagLocalService assetTagLocalService) Sets the asset tag local service.void
setAssetTagPersistence
(com.liferay.asset.kernel.service.persistence.AssetTagPersistence assetTagPersistence) Sets the asset tag persistence.void
setCounterLocalService
(com.liferay.counter.kernel.service.CounterLocalService counterLocalService) Sets the counter local service.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.<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, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, updateTag
Methods 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:
addAssetTag
in 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:
createAssetTag
in 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:
deleteAssetTag
in 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:
deleteAssetTag
in 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:
dslQuery
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagModelImpl
.- Specified by:
dynamicQuery
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagModelImpl
.- Specified by:
dynamicQuery
in 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:
dynamicQueryCount
in 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:
dynamicQueryCount
in 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:
fetchAssetTag
in 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:
fetchAssetTagByUuidAndGroupId
in 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
null
if a matching asset tag could not be found
-
fetchAssetTagByExternalReferenceCode
public com.liferay.asset.kernel.model.AssetTag fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) - Specified by:
fetchAssetTagByExternalReferenceCode
in 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:
getAssetTagByExternalReferenceCode
in 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:
getAssetTag
in 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:
getActionableDynamicQuery
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in 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:
getExportActionableDynamicQuery
in 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:
createPersistedModel
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
createPersistedModel
in 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:
deletePersistedModel
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
deletePersistedModel
in 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:
getBasePersistence
in 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:
getPersistedModel
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
getPersistedModel
in 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:
getAssetTagsByUuidAndCompanyId
in 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:
getAssetTagsByUuidAndCompanyId
in 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:
getAssetTagByUuidAndGroupId
in 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.portlet.asset.model.impl.AssetTagModelImpl
.- Specified by:
getAssetTags
in 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:
getAssetTagsCount
in 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:
updateAssetTag
in 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:
addAssetEntryAssetTag
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTag
public boolean addAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) - Specified by:
addAssetEntryAssetTag
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTags
public boolean addAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
addAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
addAssetEntryAssetTags
public boolean addAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) - Specified by:
addAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
clearAssetEntryAssetTags
public void clearAssetEntryAssetTags(long entryId) - Specified by:
clearAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTag
public void deleteAssetEntryAssetTag(long entryId, long tagId) - Specified by:
deleteAssetEntryAssetTag
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTag
public void deleteAssetEntryAssetTag(long entryId, com.liferay.asset.kernel.model.AssetTag assetTag) - Specified by:
deleteAssetEntryAssetTag
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTags
public void deleteAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
deleteAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
deleteAssetEntryAssetTags
public void deleteAssetEntryAssetTags(long entryId, List<com.liferay.asset.kernel.model.AssetTag> assetTags) - Specified by:
deleteAssetEntryAssetTags
in 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:
getAssetEntryPrimaryKeys
in 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:
getAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryAssetTags
public List<com.liferay.asset.kernel.model.AssetTag> getAssetEntryAssetTags(long entryId, int start, int end) - Specified by:
getAssetEntryAssetTags
in 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:
getAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
getAssetEntryAssetTagsCount
public int getAssetEntryAssetTagsCount(long entryId) - Specified by:
getAssetEntryAssetTagsCount
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
hasAssetEntryAssetTag
public boolean hasAssetEntryAssetTag(long entryId, long tagId) - Specified by:
hasAssetEntryAssetTag
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
hasAssetEntryAssetTags
public boolean hasAssetEntryAssetTags(long entryId) - Specified by:
hasAssetEntryAssetTags
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
-
setAssetEntryAssetTags
public void setAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
setAssetEntryAssetTags
in 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:
getOSGiServiceIdentifier
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
getOSGiServiceIdentifier
in 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:
getCTPersistence
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetTag>
-
getModelClass
- Specified by:
getModelClass
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
getModelClass
in 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:
updateWithUnsafeFunction
in interfacecom.liferay.asset.kernel.service.AssetTagLocalService
- Specified by:
updateWithUnsafeFunction
in 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
-