@ProviderType public class SharingEntryLocalServiceWrapper extends java.lang.Object implements SharingEntryLocalService, com.liferay.portal.kernel.service.ServiceWrapper<SharingEntryLocalService>
SharingEntryLocalService
.SharingEntryLocalService
Constructor and Description |
---|
SharingEntryLocalServiceWrapper(SharingEntryLocalService sharingEntryLocalService) |
Modifier and Type | Method and Description |
---|---|
SharingEntry |
addOrUpdateSharingEntry(long userId,
long toUserId,
long classNameId,
long classPK,
long groupId,
boolean shareable,
java.util.Collection<SharingEntryAction> sharingEntryActions,
java.util.Date expirationDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a new sharing entry in the database or updates an existing one.
|
SharingEntry |
addSharingEntry(long userId,
long toUserId,
long classNameId,
long classPK,
long groupId,
boolean shareable,
java.util.Collection<SharingEntryAction> sharingEntryActions,
java.util.Date expirationDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Adds a new sharing entry in the database.
|
SharingEntry |
addSharingEntry(SharingEntry sharingEntry)
Adds the sharing entry to the database.
|
SharingEntry |
createSharingEntry(long sharingEntryId)
Creates a new sharing entry with the primary key.
|
void |
deleteExpiredEntries()
Deletes the sharing entries whose expiration date is before the current
date.
|
void |
deleteGroupSharingEntries(long groupId)
Deletes the group's sharing entries.
|
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteSharingEntries(long classNameId,
long classPK)
Deletes the resource's sharing entries.
|
SharingEntry |
deleteSharingEntry(long sharingEntryId)
Deletes the sharing entry with the primary key from the database.
|
SharingEntry |
deleteSharingEntry(long toUserId,
long classNameId,
long classPK)
Deletes the sharing entry for the resource and users.
|
SharingEntry |
deleteSharingEntry(SharingEntry sharingEntry)
Deletes the sharing entry from the database.
|
void |
deleteToUserSharingEntries(long toUserId)
Deletes the sharing entries for resources shared with the user.
|
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
SharingEntry |
fetchSharingEntry(long sharingEntryId) |
SharingEntry |
fetchSharingEntry(long toUserId,
long classNameId,
long classPK)
Returns the sharing entry for the resource shared with the user or
null if there's none. |
SharingEntry |
fetchSharingEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the sharing entry matching the UUID and group.
|
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
java.util.List<SharingEntry> |
getFromUserSharingEntries(long fromUserId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the ordered range of sharing entries for the type of resource
shared by the user.
|
int |
getFromUserSharingEntriesCount(long fromUserId,
long classNameId)
Returns the number of sharing entries for the type of resource shared by
the user.
|
java.util.List<SharingEntry> |
getGroupSharingEntries(long groupId)
Returns the the group's sharing entries.
|
int |
getGroupSharingEntriesCount(long groupId)
Returns the the group's sharing entries count.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<SharingEntry> |
getSharingEntries(int start,
int end)
Returns a range of all the sharing entries.
|
java.util.List<SharingEntry> |
getSharingEntries(long classNameId,
long classPK)
Returns the resource's sharing entries.
|
java.util.List<SharingEntry> |
getSharingEntries(long classNameId,
long classPK,
int start,
int end)
Returns the resource's sharing entries.
|
java.util.List<SharingEntry> |
getSharingEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the sharing entries matching the UUID and company.
|
java.util.List<SharingEntry> |
getSharingEntriesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns a range of sharing entries matching the UUID and company.
|
int |
getSharingEntriesCount()
Returns the number of sharing entries.
|
int |
getSharingEntriesCount(long classNameId,
long classPK)
Returns the resource's sharing entries count.
|
SharingEntry |
getSharingEntry(long sharingEntryId)
Returns the sharing entry with the primary key.
|
SharingEntry |
getSharingEntry(long toUserId,
long classNameId,
long classPK)
Returns the sharing entry for the resource shared with the user.
|
SharingEntry |
getSharingEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the sharing entry matching the UUID and group.
|
java.util.List<SharingEntry> |
getToUserSharingEntries(long toUserId)
Returns the list of sharing entries for resources shared with the user.
|
java.util.List<SharingEntry> |
getToUserSharingEntries(long toUserId,
int start,
int end)
Returns the range of sharing entries for resources shared with the user.
|
java.util.List<SharingEntry> |
getToUserSharingEntries(long toUserId,
long classNameId)
Returns the list of sharing entries for the type of resource shared with
the user.
|
java.util.List<SharingEntry> |
getToUserSharingEntries(long toUserId,
long classNameId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
Returns the ordered range of sharing entries for the type of resource
shared with the user.
|
int |
getToUserSharingEntriesCount(long toUserId)
Returns the number of sharing entries for resources shared with the user.
|
int |
getToUserSharingEntriesCount(long toUserId,
long classNameId)
Returns the number of sharing entries for the type of resource shared
with the user.
|
SharingEntryLocalService |
getWrappedService() |
boolean |
hasShareableSharingPermission(long toUserId,
long classNameId,
long classPK,
SharingEntryAction sharingEntryAction)
Returns
true if the resource with the sharing entry action has
been shared with a user who can also share that resource. |
boolean |
hasSharingPermission(long toUserId,
long classNameId,
long classPK,
SharingEntryAction sharingEntryAction)
Returns
true if the resource with the sharing entry action has
been shared with the user. |
void |
setWrappedService(SharingEntryLocalService sharingEntryLocalService) |
SharingEntry |
updateSharingEntry(long sharingEntryId,
java.util.Collection<SharingEntryAction> sharingEntryActions,
boolean shareable,
java.util.Date expirationDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Mueller (7.2.x), replaced by
updateSharingEntry(long, long, Collection, boolean, Date,
ServiceContext) |
SharingEntry |
updateSharingEntry(long userId,
long sharingEntryId,
java.util.Collection<SharingEntryAction> sharingEntryActions,
boolean shareable,
java.util.Date expirationDate,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Updates the sharing entry in the database.
|
SharingEntry |
updateSharingEntry(SharingEntry sharingEntry)
Updates the sharing entry in the database or adds it if it does not yet exist.
|
public SharingEntryLocalServiceWrapper(SharingEntryLocalService sharingEntryLocalService)
public SharingEntry addOrUpdateSharingEntry(long userId, long toUserId, long classNameId, long classPK, long groupId, boolean shareable, java.util.Collection<SharingEntryAction> sharingEntryActions, java.util.Date expirationDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateSharingEntry
in interface SharingEntryLocalService
userId
- the ID of the user sharing the resourcetoUserId
- the ID of the user the resource is shared withclassNameId
- the resource's class name IDclassPK
- the class primary key of the resourcegroupId
- the primary key of the resource's groupshareable
- whether the user specified by toUserId
can
share the resourcesharingEntryActions
- the sharing entry actionsexpirationDate
- the date when the sharing entry expiresserviceContext
- the service contextPortalException
- if the sharing entry actions are invalid (e.g.,
empty, don't contain SharingEntryAction#VIEW
, or contain
a null
value), if the to/from user IDs are the same, or
if the expiration date is a past valuepublic SharingEntry addSharingEntry(long userId, long toUserId, long classNameId, long classPK, long groupId, boolean shareable, java.util.Collection<SharingEntryAction> sharingEntryActions, java.util.Date expirationDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addSharingEntry
in interface SharingEntryLocalService
userId
- the ID of the user sharing the resourcetoUserId
- the ID of the user the resource is shared withclassNameId
- the resource's class name IDclassPK
- the class primary key of the resourcegroupId
- the primary key of the resource's groupshareable
- whether the user specified by toUserId
can
share the resourcesharingEntryActions
- the sharing entry actionsexpirationDate
- the date when the sharing entry expiresserviceContext
- the service contextPortalException
- if a sharing entry already exists for the to/from
user IDs, if the sharing entry actions are invalid (e.g., empty,
don't contain SharingEntryAction#VIEW
, or contain a
null
value), if the to/from user IDs are the same, or if
the expiration date is a past valuepublic SharingEntry addSharingEntry(SharingEntry sharingEntry)
addSharingEntry
in interface SharingEntryLocalService
sharingEntry
- the sharing entrypublic SharingEntry createSharingEntry(long sharingEntryId)
createSharingEntry
in interface SharingEntryLocalService
sharingEntryId
- the primary key for the new sharing entrypublic void deleteExpiredEntries()
deleteExpiredEntries
in interface SharingEntryLocalService
public void deleteGroupSharingEntries(long groupId)
deleteGroupSharingEntries
in interface SharingEntryLocalService
groupId
- the group's IDpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
deletePersistedModel
in interface SharingEntryLocalService
PortalException
public void deleteSharingEntries(long classNameId, long classPK)
deleteSharingEntries
in interface SharingEntryLocalService
classNameId
- the resource's class name IDclassPK
- the class primary key of the resourcepublic SharingEntry deleteSharingEntry(long sharingEntryId) throws com.liferay.portal.kernel.exception.PortalException
deleteSharingEntry
in interface SharingEntryLocalService
sharingEntryId
- the primary key of the sharing entryPortalException
- if a sharing entry with the primary key could not be foundpublic SharingEntry deleteSharingEntry(long toUserId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException
deleteSharingEntry
in interface SharingEntryLocalService
toUserId
- the ID of the user the resource is shared withclassNameId
- the resource's class name IDclassPK
- the class primary key of the resourcecom.liferay.portal.kernel.exception.PortalException
public SharingEntry deleteSharingEntry(SharingEntry sharingEntry)
deleteSharingEntry
in interface SharingEntryLocalService
sharingEntry
- the sharing entrypublic void deleteToUserSharingEntries(long toUserId)
deleteToUserSharingEntries
in interface SharingEntryLocalService
toUserId
- the user's IDpublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface SharingEntryLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface SharingEntryLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.sharing.model.impl.SharingEntryModelImpl
. 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 SharingEntryLocalService
dynamicQuery
- 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> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.sharing.model.impl.SharingEntryModelImpl
. 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 SharingEntryLocalService
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
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface SharingEntryLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface SharingEntryLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic SharingEntry fetchSharingEntry(long sharingEntryId)
fetchSharingEntry
in interface SharingEntryLocalService
public SharingEntry fetchSharingEntry(long toUserId, long classNameId, long classPK)
null
if there's none. The class name ID and class primary
key identify the resource's type and instance, respectively.fetchSharingEntry
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the resource's class name IDclassPK
- the class primary key of the resourcenull
if nonepublic SharingEntry fetchSharingEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchSharingEntryByUuidAndGroupId
in interface SharingEntryLocalService
uuid
- the sharing entry's UUIDgroupId
- the primary key of the groupnull
if a matching sharing entry could not be foundpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface SharingEntryLocalService
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface SharingEntryLocalService
public java.util.List<SharingEntry> getFromUserSharingEntries(long fromUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
getFromUserSharingEntries
in interface SharingEntryLocalService
fromUserId
- the user's IDclassNameId
- the class name ID of the resourcesstart
- the ordered range's lower boundend
- the ordered range's upper bound (not inclusive)orderByComparator
- the comparator that orders the sharing entriespublic int getFromUserSharingEntriesCount(long fromUserId, long classNameId)
getFromUserSharingEntriesCount
in interface SharingEntryLocalService
fromUserId
- the user's IDclassNameId
- the class name ID of the resourcespublic java.util.List<SharingEntry> getGroupSharingEntries(long groupId)
getGroupSharingEntries
in interface SharingEntryLocalService
groupId
- the primary key of the grouppublic int getGroupSharingEntriesCount(long groupId)
getGroupSharingEntriesCount
in interface SharingEntryLocalService
groupId
- the primary key of the grouppublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface SharingEntryLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface SharingEntryLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
getPersistedModel
in interface SharingEntryLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<SharingEntry> getSharingEntries(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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from com.liferay.sharing.model.impl.SharingEntryModelImpl
. 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.
getSharingEntries
in interface SharingEntryLocalService
start
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)public java.util.List<SharingEntry> getSharingEntries(long classNameId, long classPK)
getSharingEntries
in interface SharingEntryLocalService
classNameId
- the resource's class name IDclassPK
- the class primary key of the resourcepublic java.util.List<SharingEntry> getSharingEntries(long classNameId, long classPK, int start, int end)
getSharingEntries
in interface SharingEntryLocalService
classNameId
- the resource's class name IDclassPK
- the class primary key of the resourcestart
- the range's lower boundend
- the range's upper bound (not inclusive)public java.util.List<SharingEntry> getSharingEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getSharingEntriesByUuidAndCompanyId
in interface SharingEntryLocalService
uuid
- the UUID of the sharing entriescompanyId
- the primary key of the companypublic java.util.List<SharingEntry> getSharingEntriesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
getSharingEntriesByUuidAndCompanyId
in interface SharingEntryLocalService
uuid
- the UUID of the sharing entriescompanyId
- the primary key of the companystart
- the lower bound of the range of sharing entriesend
- the upper bound of the range of sharing entries (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getSharingEntriesCount()
getSharingEntriesCount
in interface SharingEntryLocalService
public int getSharingEntriesCount(long classNameId, long classPK)
getSharingEntriesCount
in interface SharingEntryLocalService
classNameId
- the resource's class name IDclassPK
- the class primary key of the resourcepublic SharingEntry getSharingEntry(long sharingEntryId) throws com.liferay.portal.kernel.exception.PortalException
getSharingEntry
in interface SharingEntryLocalService
sharingEntryId
- the primary key of the sharing entryPortalException
- if a sharing entry with the primary key could not be foundpublic SharingEntry getSharingEntry(long toUserId, long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException
getSharingEntry
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the resource's class name IDclassPK
- the class primary key of the resourcecom.liferay.portal.kernel.exception.PortalException
public SharingEntry getSharingEntryByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getSharingEntryByUuidAndGroupId
in interface SharingEntryLocalService
uuid
- the sharing entry's UUIDgroupId
- the primary key of the groupPortalException
- if a matching sharing entry could not be foundpublic java.util.List<SharingEntry> getToUserSharingEntries(long toUserId)
getToUserSharingEntries
in interface SharingEntryLocalService
toUserId
- the user's IDpublic java.util.List<SharingEntry> getToUserSharingEntries(long toUserId, int start, int end)
getToUserSharingEntries
in interface SharingEntryLocalService
toUserId
- the user's IDstart
- the range's lower boundend
- the range's upper bound (not inclusive)public java.util.List<SharingEntry> getToUserSharingEntries(long toUserId, long classNameId)
getToUserSharingEntries
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the class name ID of the resourcespublic java.util.List<SharingEntry> getToUserSharingEntries(long toUserId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SharingEntry> orderByComparator)
getToUserSharingEntries
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the class name ID of the resourcesstart
- the ordered range's lower boundend
- the ordered range's upper bound (not inclusive)orderByComparator
- the comparator that orders the sharing entriespublic int getToUserSharingEntriesCount(long toUserId)
getToUserSharingEntriesCount
in interface SharingEntryLocalService
toUserId
- the user's IDpublic int getToUserSharingEntriesCount(long toUserId, long classNameId)
getToUserSharingEntriesCount
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the class name ID of the resourcespublic boolean hasShareableSharingPermission(long toUserId, long classNameId, long classPK, SharingEntryAction sharingEntryAction)
true
if the resource with the sharing entry action has
been shared with a user who can also share that resource. The class name
ID and class primary key identify the resource's type and instance,
respectively.hasShareableSharingPermission
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the resource's class name IDclassPK
- the class primary key of the shared resourcesharingEntryAction
- the sharing entry actiontrue
if the resource with the sharing entry action has
been shared with a user who can also share that resource; false
otherwisepublic boolean hasSharingPermission(long toUserId, long classNameId, long classPK, SharingEntryAction sharingEntryAction)
true
if the resource with the sharing entry action has
been shared with the user. The class name ID and class primary key
identify the resource's type and instance, respectively.hasSharingPermission
in interface SharingEntryLocalService
toUserId
- the user's IDclassNameId
- the resource's class name IDclassPK
- the class primary key of the shared resourcesharingEntryAction
- the sharing entry actiontrue
if the resource with the sharing entry action has
been shared with the user; false
otherwise@Deprecated public SharingEntry updateSharingEntry(long sharingEntryId, java.util.Collection<SharingEntryAction> sharingEntryActions, boolean shareable, java.util.Date expirationDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateSharingEntry(long, long, Collection, boolean, Date,
ServiceContext)
updateSharingEntry
in interface SharingEntryLocalService
sharingEntryId
- the primary key of the sharing entrysharingEntryActions
- the sharing entry actionsshareable
- whether the user the resource is shared with can
also share itexpirationDate
- the date when the sharing entry expiresserviceContext
- the service contextPortalException
- if the sharing entry does not exist, if the
sharing entry actions are invalid (e.g., empty, don't contain
SharingEntryAction#VIEW
, or contain a null
value), or if the expiration date is a past valuepublic SharingEntry updateSharingEntry(long userId, long sharingEntryId, java.util.Collection<SharingEntryAction> sharingEntryActions, boolean shareable, java.util.Date expirationDate, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateSharingEntry
in interface SharingEntryLocalService
userId
- the primary key of the user updating the sharing entrysharingEntryId
- the primary key of the sharing entrysharingEntryActions
- the sharing entry actionsshareable
- whether the user the resource is shared with can also
share itexpirationDate
- the date when the sharing entry expiresserviceContext
- the service contextPortalException
- if the sharing entry does not exist, if the
sharing entry actions are invalid (e.g., empty, don't contain
SharingEntryAction#VIEW
, or contain a null
value), or if the expiration date is a past valuepublic SharingEntry updateSharingEntry(SharingEntry sharingEntry)
updateSharingEntry
in interface SharingEntryLocalService
sharingEntry
- the sharing entrypublic SharingEntryLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<SharingEntryLocalService>
public void setWrappedService(SharingEntryLocalService sharingEntryLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<SharingEntryLocalService>