@ProviderType public class AssetLinkLocalServiceWrapper extends Object implements AssetLinkLocalService, ServiceWrapper<AssetLinkLocalService>
AssetLinkLocalService.AssetLinkLocalService| Constructor and Description |
|---|
AssetLinkLocalServiceWrapper(AssetLinkLocalService assetLinkLocalService) |
| Modifier and Type | Method and Description |
|---|---|
AssetLink |
addAssetLink(AssetLink assetLink)
Adds the asset link to the database.
|
AssetLink |
addLink(long userId,
long entryId1,
long entryId2,
int type,
int weight)
Adds a new asset link.
|
AssetLink |
createAssetLink(long linkId)
Creates a new asset link with the primary key.
|
AssetLink |
deleteAssetLink(AssetLink assetLink)
Deletes the asset link from the database.
|
AssetLink |
deleteAssetLink(long linkId)
Deletes the asset link with the primary key from the database.
|
void |
deleteGroupLinks(long groupId) |
void |
deleteLink(AssetLink link)
Deletes the asset link.
|
void |
deleteLink(long linkId)
Deletes the asset link.
|
void |
deleteLinks(long entryId)
Deletes all links associated with the asset entry.
|
void |
deleteLinks(long entryId1,
long entryId2)
Delete all links that associate the two asset entries.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
DynamicQuery |
dynamicQuery() |
<T> List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<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.
|
<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.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows matching the dynamic query.
|
AssetLink |
fetchAssetLink(long linkId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
AssetLink |
getAssetLink(long linkId)
Returns the asset link with the primary key.
|
List<AssetLink> |
getAssetLinks(int start,
int end)
Returns a range of all the asset links.
|
int |
getAssetLinksCount()
Returns the number of asset links.
|
List<AssetLink> |
getDirectLinks(long entryId)
Returns all the asset links whose first entry ID is the given entry ID.
|
List<AssetLink> |
getDirectLinks(long entryId,
boolean excludeInvisibleLinks) |
List<AssetLink> |
getDirectLinks(long entryId,
int typeId)
Returns all the asset links of the given link type whose first entry ID
is the given entry ID.
|
List<AssetLink> |
getDirectLinks(long entryId,
int typeId,
boolean excludeInvisibleLinks) |
ExportActionableDynamicQuery |
getExportActionbleDynamicQuery(PortletDataContext portletDataContext) |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
List<AssetLink> |
getLinks(long entryId)
Returns all the asset links whose first or second entry ID is the given
entry ID.
|
List<AssetLink> |
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.
|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<AssetLink> |
getReverseLinks(long entryId,
int typeId)
Returns all the asset links of the given link type whose second entry ID
is the given entry ID.
|
AssetLinkLocalService |
getWrappedService() |
void |
setWrappedService(AssetLinkLocalService assetLinkLocalService) |
AssetLink |
updateAssetLink(AssetLink assetLink)
Updates the asset link in the database or adds it if it does not yet exist.
|
AssetLink |
updateLink(long userId,
long entryId1,
long entryId2,
int typeId,
int weight) |
void |
updateLinks(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.
|
public AssetLinkLocalServiceWrapper(AssetLinkLocalService assetLinkLocalService)
public AssetLink addAssetLink(AssetLink assetLink)
addAssetLink in interface AssetLinkLocalServiceassetLink - the asset linkpublic AssetLink addLink(long userId, long entryId1, long entryId2, int type, int weight) throws PortalException
addLink in interface AssetLinkLocalServiceuserId - 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 include AssetLinkConstants#TYPE_RELATED which is a bidirectional
relationship and AssetLinkConstants#TYPE_CHILD which is a
unidirectional relationship. For more information see AssetLinkConstantsweight - the weight of the relationship, allowing precedence
ordering of linksPortalExceptionpublic AssetLink createAssetLink(long linkId)
createAssetLink in interface AssetLinkLocalServicelinkId - the primary key for the new asset linkpublic AssetLink deleteAssetLink(AssetLink assetLink)
deleteAssetLink in interface AssetLinkLocalServiceassetLink - the asset linkpublic AssetLink deleteAssetLink(long linkId) throws PortalException
deleteAssetLink in interface AssetLinkLocalServicelinkId - the primary key of the asset linkPortalException - if a asset link with the primary key could not be foundpublic AssetLink fetchAssetLink(long linkId)
fetchAssetLink in interface AssetLinkLocalServicepublic AssetLink getAssetLink(long linkId) throws PortalException
getAssetLink in interface AssetLinkLocalServicelinkId - the primary key of the asset linkPortalException - if a asset link with the primary key could not be foundpublic AssetLink updateAssetLink(AssetLink assetLink)
updateAssetLink in interface AssetLinkLocalServiceassetLink - the asset linkpublic AssetLink updateLink(long userId, long entryId1, long entryId2, int typeId, int weight) throws PortalException
updateLink in interface AssetLinkLocalServicePortalExceptionpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface AssetLinkLocalServicepublic DynamicQuery dynamicQuery()
dynamicQuery in interface AssetLinkLocalServicepublic ExportActionableDynamicQuery getExportActionbleDynamicQuery(PortletDataContext portletDataContext)
getExportActionbleDynamicQuery in interface AssetLinkLocalServicepublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface AssetLinkLocalServicepublic PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface AssetLinkLocalServicedeletePersistedModel in interface PersistedModelLocalServicePortalExceptionpublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface AssetLinkLocalServicegetPersistedModel in interface PersistedModelLocalServicePortalExceptionpublic int getAssetLinksCount()
getAssetLinksCount in interface AssetLinkLocalServicepublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface AssetLinkLocalServicepublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery in interface AssetLinkLocalServicedynamicQuery - the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface AssetLinkLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface AssetLinkLocalServicedynamicQuery - 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 (optionally null)public List<AssetLink> getAssetLinks(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portlet.asset.model.impl.AssetLinkModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getAssetLinks in interface AssetLinkLocalServicestart - the lower bound of the range of asset linksend - the upper bound of the range of asset links (not inclusive)public List<AssetLink> getDirectLinks(long entryId)
getDirectLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrypublic List<AssetLink> getDirectLinks(long entryId, boolean excludeInvisibleLinks)
getDirectLinks in interface AssetLinkLocalServicepublic List<AssetLink> getDirectLinks(long entryId, int typeId)
getDirectLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrytypeId - the link type. Acceptable values include AssetLinkConstants#TYPE_RELATED which is a bidirectional
relationship and AssetLinkConstants#TYPE_CHILD which is a
unidirectional relationship. For more information see AssetLinkConstantspublic List<AssetLink> getDirectLinks(long entryId, int typeId, boolean excludeInvisibleLinks)
getDirectLinks in interface AssetLinkLocalServicepublic List<AssetLink> getLinks(long entryId)
getLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrypublic List<AssetLink> getLinks(long entryId, int typeId)
getLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrytypeId - the link type. Acceptable values include AssetLinkConstants#TYPE_RELATED which is a bidirectional
relationship and AssetLinkConstants#TYPE_CHILD which is a
unidirectional relationship. For more information see AssetLinkConstantspublic List<AssetLink> getReverseLinks(long entryId, int typeId)
getReverseLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrytypeId - the link type. Acceptable values include AssetLinkConstants#TYPE_RELATED which is a bidirectional
relationship and AssetLinkConstants#TYPE_CHILD which is a
unidirectional relationship. For more information see AssetLinkConstantspublic long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount in interface AssetLinkLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount in interface AssetLinkLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic void deleteGroupLinks(long groupId)
deleteGroupLinks in interface AssetLinkLocalServicepublic void deleteLink(AssetLink link)
deleteLink in interface AssetLinkLocalServicelink - the asset linkpublic void deleteLink(long linkId)
throws PortalException
deleteLink in interface AssetLinkLocalServicelinkId - the primary key of the asset linkPortalExceptionpublic void deleteLinks(long entryId)
deleteLinks in interface AssetLinkLocalServiceentryId - the primary key of the asset entrypublic void deleteLinks(long entryId1,
long entryId2)
deleteLinks in interface AssetLinkLocalServiceentryId1 - the primary key of the first asset entryentryId2 - the primary key of the second asset entrypublic void updateLinks(long userId,
long entryId,
long[] linkEntryIds,
int typeId)
throws PortalException
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.
updateLinks in interface AssetLinkLocalServiceuserId - 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 include AssetLinkConstants#TYPE_RELATED which is a
bidirectional relationship and AssetLinkConstants#TYPE_CHILD which is a unidirectional
relationship. For more information see AssetLinkConstantsPortalExceptionpublic AssetLinkLocalService getWrappedService()
getWrappedService in interface ServiceWrapper<AssetLinkLocalService>public void setWrappedService(AssetLinkLocalService assetLinkLocalService)
setWrappedService in interface ServiceWrapper<AssetLinkLocalService>