|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.asset.service.AssetLinkLocalServiceWrapper
public class AssetLinkLocalServiceWrapper
This class is a wrapper for AssetLinkLocalService
.
AssetLinkLocalService
Constructor Summary | |
---|---|
AssetLinkLocalServiceWrapper(AssetLinkLocalService assetLinkLocalService)
|
Method Summary | |
---|---|
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 |
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. |
DynamicQuery |
dynamicQuery()
|
List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator 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 that match the dynamic query. |
AssetLink |
fetchAssetLink(long linkId)
|
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. |
String |
getBeanIdentifier()
Returns the Spring bean ID for this bean. |
List<AssetLink> |
getDirectLinks(long entryId)
Returns all the asset links whose first entry ID is the given entry ID. |
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> |
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. |
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 |
getWrappedAssetLinkLocalService()
Deprecated. Renamed to getWrappedService() |
AssetLinkLocalService |
getWrappedService()
|
void |
setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean. |
void |
setWrappedAssetLinkLocalService(AssetLinkLocalService assetLinkLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portlet.asset.service.AssetLinkLocalService) |
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 |
updateAssetLink(AssetLink assetLink,
boolean merge)
Updates the asset link in the database or adds it if it does not yet exist. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetLinkLocalServiceWrapper(AssetLinkLocalService assetLinkLocalService)
Method Detail |
---|
public AssetLink addAssetLink(AssetLink assetLink) throws SystemException
addAssetLink
in interface AssetLinkLocalService
assetLink
- the asset link
SystemException
- if a system exception occurredpublic AssetLink createAssetLink(long linkId)
createAssetLink
in interface AssetLinkLocalService
linkId
- the primary key for the new asset link
public AssetLink deleteAssetLink(long linkId) throws PortalException, SystemException
deleteAssetLink
in interface AssetLinkLocalService
linkId
- the primary key of the asset link
PortalException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetLink deleteAssetLink(AssetLink assetLink) throws SystemException
deleteAssetLink
in interface AssetLinkLocalService
assetLink
- the asset link
SystemException
- if a system exception occurredpublic DynamicQuery dynamicQuery()
dynamicQuery
in interface AssetLinkLocalService
public List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface AssetLinkLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
in interface AssetLinkLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
in interface AssetLinkLocalService
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 (optionally null
)
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface AssetLinkLocalService
dynamicQuery
- the dynamic query
SystemException
- if a system exception occurredpublic AssetLink fetchAssetLink(long linkId) throws SystemException
fetchAssetLink
in interface AssetLinkLocalService
SystemException
public AssetLink getAssetLink(long linkId) throws PortalException, SystemException
getAssetLink
in interface AssetLinkLocalService
linkId
- the primary key of the asset link
PortalException
- if a asset link with the primary key could not be found
SystemException
- if a system exception occurredpublic PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel
in interface PersistedModelLocalService
getPersistedModel
in interface AssetLinkLocalService
PortalException
SystemException
public List<AssetLink> getAssetLinks(int start, int end) throws SystemException
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.
getAssetLinks
in interface AssetLinkLocalService
start
- the lower bound of the range of asset linksend
- the upper bound of the range of asset links (not inclusive)
SystemException
- if a system exception occurredpublic int getAssetLinksCount() throws SystemException
getAssetLinksCount
in interface AssetLinkLocalService
SystemException
- if a system exception occurredpublic AssetLink updateAssetLink(AssetLink assetLink) throws SystemException
updateAssetLink
in interface AssetLinkLocalService
assetLink
- the asset link
SystemException
- if a system exception occurredpublic AssetLink updateAssetLink(AssetLink assetLink, boolean merge) throws SystemException
updateAssetLink
in interface AssetLinkLocalService
assetLink
- the asset linkmerge
- whether to merge the asset link with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic String getBeanIdentifier()
getBeanIdentifier
in interface AssetLinkLocalService
public void setBeanIdentifier(String beanIdentifier)
setBeanIdentifier
in interface AssetLinkLocalService
beanIdentifier
- the Spring bean ID for this beanpublic AssetLink addLink(long userId, long entryId1, long entryId2, int type, int weight) throws PortalException, SystemException
addLink
in interface AssetLinkLocalService
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
AssetLinkConstants
weight
- the weight of the relationship, allowing precedence
ordering of links
PortalException
- if the user could not be found
SystemException
- if a system exception occurredpublic void deleteLink(AssetLink link) throws SystemException
deleteLink
in interface AssetLinkLocalService
link
- the asset link
SystemException
- if a system exception occurredpublic void deleteLink(long linkId) throws PortalException, SystemException
deleteLink
in interface AssetLinkLocalService
linkId
- the primary key of the asset link
PortalException
- if the asset link could not be found
SystemException
- if a system exception occurredpublic void deleteLinks(long entryId) throws SystemException
deleteLinks
in interface AssetLinkLocalService
entryId
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic void deleteLinks(long entryId1, long entryId2) throws SystemException
deleteLinks
in interface AssetLinkLocalService
entryId1
- the primary key of the first asset entryentryId2
- the primary key of the second asset entry
SystemException
- if a system exception occurredpublic List<AssetLink> getDirectLinks(long entryId) throws SystemException
getDirectLinks
in interface AssetLinkLocalService
entryId
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic List<AssetLink> getDirectLinks(long entryId, int typeId) throws SystemException
getDirectLinks
in interface AssetLinkLocalService
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
AssetLinkConstants
SystemException
- if a system exception occurredpublic List<AssetLink> getLinks(long entryId) throws SystemException
getLinks
in interface AssetLinkLocalService
entryId
- the primary key of the asset entry
SystemException
- if a system exception occurredpublic List<AssetLink> getLinks(long entryId, int typeId) throws SystemException
getLinks
in interface AssetLinkLocalService
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
AssetLinkConstants
SystemException
- if a system exception occurredpublic List<AssetLink> getReverseLinks(long entryId, int typeId) throws SystemException
getReverseLinks
in interface AssetLinkLocalService
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
AssetLinkConstants
SystemException
- if a system exception occurredpublic void updateLinks(long userId, long entryId, long[] linkEntryIds, int typeId) throws PortalException, 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.
updateLinks
in interface AssetLinkLocalService
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
AssetLinkConstants
PortalException
- if the user could not be found
SystemException
- if a system exception occurredpublic AssetLinkLocalService getWrappedAssetLinkLocalService()
getWrappedService()
public void setWrappedAssetLinkLocalService(AssetLinkLocalService assetLinkLocalService)
setWrappedService(com.liferay.portlet.asset.service.AssetLinkLocalService)
public AssetLinkLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<AssetLinkLocalService>
public void setWrappedService(AssetLinkLocalService assetLinkLocalService)
setWrappedService
in interface ServiceWrapper<AssetLinkLocalService>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |