public class AssetLinkLocalServiceImpl extends AssetLinkLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
AssetLinkLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portlet.asset.model.AssetLink |
addLink(long userId,
long entryId1,
long entryId2,
int type,
int weight)
Adds a new asset link.
|
void |
deleteLink(com.liferay.portlet.asset.model.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.
|
java.util.List<com.liferay.portlet.asset.model.AssetLink> |
getDirectLinks(long entryId)
Returns all the asset links whose first entry ID is the given entry ID.
|
java.util.List<com.liferay.portlet.asset.model.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.
|
java.util.List<com.liferay.portlet.asset.model.AssetLink> |
getLinks(long entryId)
Returns all the asset links whose first or second entry ID is the given
entry ID.
|
java.util.List<com.liferay.portlet.asset.model.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.
|
java.util.List<com.liferay.portlet.asset.model.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.
|
com.liferay.portlet.asset.model.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.
|
addAssetLink, afterPropertiesSet, createAssetLink, deleteAssetLink, deleteAssetLink, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetLink, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLink, getAssetLinkLocalService, getAssetLinkPersistence, getAssetLinks, getAssetLinksCount, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateAssetLinkpublic com.liferay.portlet.asset.model.AssetLink addLink(long userId,
long entryId1,
long entryId2,
int type,
int weight)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 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 linkscom.liferay.portal.kernel.exception.PortalException - if the user could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteLink(com.liferay.portlet.asset.model.AssetLink link)
throws com.liferay.portal.kernel.exception.SystemException
link - the asset linkcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteLink(long linkId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
linkId - the primary key of the asset linkcom.liferay.portal.kernel.exception.PortalException - if the asset link could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteLinks(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the asset entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteLinks(long entryId1,
long entryId2)
throws com.liferay.portal.kernel.exception.SystemException
entryId1 - the primary key of the first asset entryentryId2 - the primary key of the second asset entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetLink> getDirectLinks(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the asset entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetLink> getDirectLinks(long entryId,
int typeId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - 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
AssetLinkConstantscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetLink> getLinks(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the asset entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetLink> getLinks(long entryId,
int typeId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - 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
AssetLinkConstantscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetLink> getReverseLinks(long entryId,
int typeId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - 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
AssetLinkConstantscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.asset.model.AssetLink updateLink(long userId,
long entryId1,
long entryId2,
int typeId,
int weight)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void updateLinks(long userId,
long entryId,
long[] linkEntryIds,
int typeId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.
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 include AssetLinkConstants.TYPE_RELATED
which is a bidirectional relationship and AssetLinkConstants.TYPE_CHILD
which is a unidirectional relationship. For more information see
AssetLinkConstantscom.liferay.portal.kernel.exception.PortalException - if the user could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurred