Class AssetLinkLocalServiceWrapper
- All Implemented Interfaces:
AssetLinkLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<AssetLink>,com.liferay.portal.kernel.service.PersistedModelLocalService,com.liferay.portal.kernel.service.ServiceWrapper<AssetLinkLocalService>
AssetLinkLocalService.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetLink(AssetLink assetLink) Adds the asset link to the database.addLink(long userId, long entryId1, long entryId2, int type, int weight) Adds a new asset link.createAssetLink(long linkId) Creates a new asset link with the primary key.com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) deleteAssetLink(long linkId) Deletes the asset link with the primary key from the database.deleteAssetLink(AssetLink assetLink) Deletes the asset link from the database.voiddeleteGroupLinks(long groupId) voiddeleteLink(long linkId) Deletes the asset link.voiddeleteLink(AssetLink link) Deletes the asset link.voiddeleteLinks(long entryId) Deletes all links associated with the asset entry.voiddeleteLinks(long entryId1, long entryId2) Delete all links that associate the two asset entries.com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) <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.fetchAssetLink(long linkId) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerygetAssetLink(long linkId) Returns the asset link with the primary key.getAssetLinks(int start, int end) Returns a range of all the asset links.intReturns the number of asset links.com.liferay.portal.kernel.service.persistence.BasePersistence<?>com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetLink>getDirectLinks(long entryId) Returns all the asset links whose first entry ID is the given entry ID.getDirectLinks(long entryId, boolean excludeInvisibleLinks) getDirectLinks(long entryId, int typeId) Returns all the asset links of the given link type whose first entry ID is the given entry ID.getDirectLinks(long entryId, int typeId, boolean excludeInvisibleLinks) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerygetLinks(long entryId) Returns all the asset links whose first or second entry ID is the given entry ID.getLinks(long entryId, int typeId) Returns all the asset links of the given link type whose first or second entry ID is the given entry ID.getLinks(long classNameId, long classPK) Returns all the asset links of an AssetEntry.Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) getReverseLinks(long entryId, int typeId) Returns all the asset links of the given link type whose second entry ID is the given entry ID.voidsetWrappedService(AssetLinkLocalService assetLinkLocalService) updateAssetLink(AssetLink assetLink) Updates the asset link in the database or adds it if it does not yet exist.updateLink(long userId, long entryId1, long entryId2, int typeId, int weight) voidupdateLinks(long userId, long entryId, long[] linkEntryIds, int typeId) Updates all links of the asset entry, replacing them with links associating the asset entry with the asset entries of the given link entry IDs.<R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetLink>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AssetLinkLocalServiceWrapper
public AssetLinkLocalServiceWrapper() -
AssetLinkLocalServiceWrapper
-
-
Method Details
-
addAssetLink
Adds the asset link to the database. Also notifies the appropriate model listeners.Important: Inspect AssetLinkLocalServiceImpl 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:
addAssetLinkin interfaceAssetLinkLocalService- Parameters:
assetLink- the asset link- Returns:
- the asset link that was added
-
addLink
public AssetLink addLink(long userId, long entryId1, long entryId2, int type, int weight) throws com.liferay.portal.kernel.exception.PortalException Adds a new asset link.- Specified by:
addLinkin interfaceAssetLinkLocalService- Parameters:
userId- the primary key of the link's creatorentryId1- the primary key of the first asset entryentryId2- the primary key of the second asset entrytype- the link type. Acceptable values includeAssetLinkConstants#TYPE_RELATEDwhich is a bidirectional relationship andAssetLinkConstants#TYPE_CHILDwhich is a unidirectional relationship. For more information seeAssetLinkConstantsweight- the weight of the relationship, allowing precedence ordering of links- Returns:
- the asset link
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createAssetLink
Creates a new asset link with the primary key. Does not add the asset link to the database.- Specified by:
createAssetLinkin interfaceAssetLinkLocalService- Parameters:
linkId- the primary key for the new asset link- Returns:
- the new asset link
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModelin interfaceAssetLinkLocalService- Specified by:
createPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
deleteAssetLink
Deletes the asset link from the database. Also notifies the appropriate model listeners.Important: Inspect AssetLinkLocalServiceImpl 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:
deleteAssetLinkin interfaceAssetLinkLocalService- Parameters:
assetLink- the asset link- Returns:
- the asset link that was removed
-
deleteAssetLink
public AssetLink deleteAssetLink(long linkId) throws com.liferay.portal.kernel.exception.PortalException Deletes the asset link with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AssetLinkLocalServiceImpl 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:
deleteAssetLinkin interfaceAssetLinkLocalService- Parameters:
linkId- the primary key of the asset link- Returns:
- the asset link that was removed
- Throws:
PortalException- if a asset link with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteGroupLinks
public void deleteGroupLinks(long groupId) - Specified by:
deleteGroupLinksin interfaceAssetLinkLocalService
-
deleteLink
Deletes the asset link.- Specified by:
deleteLinkin interfaceAssetLinkLocalService- Parameters:
link- the asset link
-
deleteLink
public void deleteLink(long linkId) throws com.liferay.portal.kernel.exception.PortalException Deletes the asset link.- Specified by:
deleteLinkin interfaceAssetLinkLocalService- Parameters:
linkId- the primary key of the asset link- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLinks
public void deleteLinks(long entryId) Deletes all links associated with the asset entry.- Specified by:
deleteLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entry
-
deleteLinks
public void deleteLinks(long entryId1, long entryId2) Delete all links that associate the two asset entries.- Specified by:
deleteLinksin interfaceAssetLinkLocalService- Parameters:
entryId1- the primary key of the first asset entryentryId2- the primary key of the second asset entry
-
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 interfaceAssetLinkLocalService- Specified by:
deletePersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceAssetLinkLocalService- Specified by:
dslQueryin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceAssetLinkLocalService- Specified by:
dslQueryCountin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQueryin interfaceAssetLinkLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceAssetLinkLocalService- 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.asset.link.model.impl.AssetLinkModelImpl.- Specified by:
dynamicQueryin interfaceAssetLinkLocalService- 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.asset.link.model.impl.AssetLinkModelImpl.- Specified by:
dynamicQueryin interfaceAssetLinkLocalService- 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 interfaceAssetLinkLocalService- 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 interfaceAssetLinkLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAssetLink
- Specified by:
fetchAssetLinkin interfaceAssetLinkLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQueryin interfaceAssetLinkLocalService
-
getAssetLink
public AssetLink getAssetLink(long linkId) throws com.liferay.portal.kernel.exception.PortalException Returns the asset link with the primary key.- Specified by:
getAssetLinkin interfaceAssetLinkLocalService- Parameters:
linkId- the primary key of the asset link- Returns:
- the asset link
- Throws:
PortalException- if a asset link with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getAssetLinks
Returns a range of all the asset links.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.asset.link.model.impl.AssetLinkModelImpl.- Specified by:
getAssetLinksin interfaceAssetLinkLocalService- Parameters:
start- the lower bound of the range of asset linksend- the upper bound of the range of asset links (not inclusive)- Returns:
- the range of asset links
-
getAssetLinksCount
public int getAssetLinksCount()Returns the number of asset links.- Specified by:
getAssetLinksCountin interfaceAssetLinkLocalService- Returns:
- the number of asset links
-
getDirectLinks
Returns all the asset links whose first entry ID is the given entry ID.- Specified by:
getDirectLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entry- Returns:
- the asset links whose first entry ID is the given entry ID
-
getDirectLinks
- Specified by:
getDirectLinksin interfaceAssetLinkLocalService
-
getDirectLinks
Returns all the asset links of the given link type whose first entry ID is the given entry ID.- Specified by:
getDirectLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entrytypeId- the link type. Acceptable values includeAssetLinkConstants#TYPE_RELATEDwhich is a bidirectional relationship andAssetLinkConstants#TYPE_CHILDwhich is a unidirectional relationship. For more information seeAssetLinkConstants- Returns:
- the asset links of the given link type whose first entry ID is the given entry ID
-
getDirectLinks
- Specified by:
getDirectLinksin interfaceAssetLinkLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQueryin interfaceAssetLinkLocalService
-
getLinks
Returns all the asset links whose first or second entry ID is the given entry ID.- Specified by:
getLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entry- Returns:
- the asset links whose first or second entry ID is the given entry ID
-
getLinks
- Specified by:
getLinksin interfaceAssetLinkLocalService
-
getLinks
Returns all the asset links of the given link type whose first or second entry ID is the given entry ID.- Specified by:
getLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entrytypeId- the link type. Acceptable values includeAssetLinkConstants#TYPE_RELATEDwhich is a bidirectional relationship andAssetLinkConstants#TYPE_CHILDwhich is a unidirectional relationship. For more information seeAssetLinkConstants- Returns:
- the asset links of the given link type whose first or second entry ID is the given entry ID
-
getLinks
Returns all the asset links of an AssetEntry.- Specified by:
getLinksin interfaceAssetLinkLocalService- Parameters:
classNameId- AssetEntry's classNameIdclassPK- AssetEntry's classPK- Returns:
- the asset links of the given entry params
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceAssetLinkLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModelin interfaceAssetLinkLocalService- Specified by:
getPersistedModelin interfacecom.liferay.portal.kernel.service.PersistedModelLocalService- Throws:
PortalExceptioncom.liferay.portal.kernel.exception.PortalException
-
getReverseLinks
Returns all the asset links of the given link type whose second entry ID is the given entry ID.- Specified by:
getReverseLinksin interfaceAssetLinkLocalService- Parameters:
entryId- the primary key of the asset entrytypeId- the link type. Acceptable values includeAssetLinkConstants#TYPE_RELATEDwhich is a bidirectional relationship andAssetLinkConstants#TYPE_CHILDwhich is a unidirectional relationship. For more information seeAssetLinkConstants- Returns:
- the asset links of the given link type whose second entry ID is the given entry ID
-
updateAssetLink
Updates the asset link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect AssetLinkLocalServiceImpl 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:
updateAssetLinkin interfaceAssetLinkLocalService- Parameters:
assetLink- the asset link- Returns:
- the asset link that was updated
-
updateLink
public AssetLink updateLink(long userId, long entryId1, long entryId2, int typeId, int weight) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateLinkin interfaceAssetLinkLocalService- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLinks
public void updateLinks(long userId, long entryId, long[] linkEntryIds, int typeId) throws com.liferay.portal.kernel.exception.PortalException Updates all links of the asset entry, replacing them with links associating the asset entry with the asset entries of the given link entry IDs.If no link exists with a given link entry ID, a new link is created associating the current asset entry with the asset entry of that link entry ID. An existing link is deleted if either of its entry IDs is not contained in the given link entry IDs.
- Specified by:
updateLinksin interfaceAssetLinkLocalService- Parameters:
userId- the primary key of the user updating the linksentryId- the primary key of the asset entry to be managedlinkEntryIds- the primary keys of the asset entries to be linked with the asset entry to be managedtypeId- the type of the asset links to be created. Acceptable values includeAssetLinkConstants#TYPE_RELATEDwhich is a bidirectional relationship andAssetLinkConstants#TYPE_CHILDwhich is a unidirectional relationship. For more information seeAssetLinkConstants- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistencein interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetLink> getCTPersistence()- Specified by:
getCTPersistencein interfaceAssetLinkLocalService- Specified by:
getCTPersistencein interfacecom.liferay.portal.kernel.service.change.tracking.CTService<AssetLink>
-
getModelClass
- Specified by:
getModelClassin interfaceAssetLinkLocalService- Specified by:
getModelClassin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<AssetLink>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetLink>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceAssetLinkLocalService- Specified by:
updateWithUnsafeFunctionin interfacecom.liferay.portal.kernel.service.change.tracking.CTService<AssetLink>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<AssetLinkLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfacecom.liferay.portal.kernel.service.ServiceWrapper<AssetLinkLocalService>
-