@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface MemberRequestLocalService extends BaseLocalService, PersistedModelLocalService
MemberRequestLocalServiceUtil| Modifier and Type | Method and Description |
|---|---|
MemberRequest |
addMemberRequest(long userId,
long groupId,
long receiverUserId,
java.lang.String receiverEmailAddress,
long invitedRoleId,
long invitedTeamId,
ServiceContext serviceContext) |
MemberRequest |
addMemberRequest(MemberRequest memberRequest)
Adds the member request to the database.
|
void |
addMemberRequests(long userId,
long groupId,
long[] receiverUserIds,
long invitedRoleId,
long invitedTeamId,
ServiceContext serviceContext) |
void |
addMemberRequests(long userId,
long groupId,
java.lang.String[] emailAddresses,
long invitedRoleId,
long invitedTeamId,
ServiceContext serviceContext) |
MemberRequest |
createMemberRequest(long memberRequestId)
Creates a new member request with the primary key.
|
PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
MemberRequest |
deleteMemberRequest(long memberRequestId)
Deletes the member request with the primary key from the database.
|
MemberRequest |
deleteMemberRequest(MemberRequest memberRequest)
Deletes the member request from the database.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
<T> T |
dslQuery(DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.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> java.util.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.
|
MemberRequest |
fetchMemberRequest(long memberRequestId) |
ActionableDynamicQuery |
getActionableDynamicQuery() |
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
MemberRequest |
getMemberRequest(long memberRequestId)
Returns the member request with the primary key.
|
MemberRequest |
getMemberRequest(long groupId,
long receiverUserId,
int status) |
java.util.List<MemberRequest> |
getMemberRequests(int start,
int end)
Returns a range of all the member requests.
|
int |
getMemberRequestsCount()
Returns the number of member requests.
|
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<MemberRequest> |
getReceiverMemberRequest(long receiverUserId,
int start,
int end) |
int |
getReceiverMemberRequestCount(long receiverUserId) |
java.util.List<MemberRequest> |
getReceiverStatusMemberRequest(long receiverUserId,
int status,
int start,
int end) |
int |
getReceiverStatusMemberRequestCount(long receiverUserId,
int status) |
boolean |
hasPendingMemberRequest(long groupId,
long receiverUserId) |
MemberRequest |
updateMemberRequest(long userId,
long memberRequestId,
int status) |
MemberRequest |
updateMemberRequest(MemberRequest memberRequest)
Updates the member request in the database or adds it if it does not yet exist.
|
MemberRequest |
updateMemberRequest(java.lang.String key,
long receiverUserId) |
getBasePersistenceMemberRequest addMemberRequest(long userId, long groupId, long receiverUserId, java.lang.String receiverEmailAddress, long invitedRoleId, long invitedTeamId, ServiceContext serviceContext) throws PortalException
PortalException@Indexable(type=REINDEX) MemberRequest addMemberRequest(MemberRequest memberRequest)
Important: Inspect MemberRequestLocalServiceImpl 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.
memberRequest - the member requestvoid addMemberRequests(long userId,
long groupId,
long[] receiverUserIds,
long invitedRoleId,
long invitedTeamId,
ServiceContext serviceContext)
throws PortalException
PortalExceptionvoid addMemberRequests(long userId,
long groupId,
java.lang.String[] emailAddresses,
long invitedRoleId,
long invitedTeamId,
ServiceContext serviceContext)
throws PortalException
PortalException@Transactional(enabled=false) MemberRequest createMemberRequest(long memberRequestId)
memberRequestId - the primary key for the new member requestPersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
createPersistedModel in interface PersistedModelLocalServicePortalException@Indexable(type=DELETE) MemberRequest deleteMemberRequest(long memberRequestId) throws PortalException
Important: Inspect MemberRequestLocalServiceImpl 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.
memberRequestId - the primary key of the member requestPortalException - if a member request with the primary key could not be found@Indexable(type=DELETE) MemberRequest deleteMemberRequest(MemberRequest memberRequest)
Important: Inspect MemberRequestLocalServiceImpl 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.
memberRequest - the member requestPersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(DSLQuery dslQuery)
@Transactional(propagation=SUPPORTS, readOnly=true) DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.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 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, then the query will include the default ORDER BY logic from com.liferay.invitation.invite.members.model.impl.MemberRequestModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.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 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, then the query will include the default ORDER BY logic from com.liferay.invitation.invite.members.model.impl.MemberRequestModelImpl.
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)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) MemberRequest fetchMemberRequest(long memberRequestId)
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) MemberRequest getMemberRequest(long memberRequestId) throws PortalException
memberRequestId - the primary key of the member requestPortalException - if a member request with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) MemberRequest getMemberRequest(long groupId, long receiverUserId, int status) throws PortalException
PortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MemberRequest> getMemberRequests(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, then the query will include the default ORDER BY logic from com.liferay.invitation.invite.members.model.impl.MemberRequestModelImpl.
start - the lower bound of the range of member requestsend - the upper bound of the range of member requests (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) int getMemberRequestsCount()
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
getPersistedModel in interface PersistedModelLocalServicePortalException@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MemberRequest> getReceiverMemberRequest(long receiverUserId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getReceiverMemberRequestCount(long receiverUserId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<MemberRequest> getReceiverStatusMemberRequest(long receiverUserId, int status, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) int getReceiverStatusMemberRequestCount(long receiverUserId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasPendingMemberRequest(long groupId, long receiverUserId)
MemberRequest updateMemberRequest(long userId, long memberRequestId, int status) throws java.lang.Exception
java.lang.Exception@Indexable(type=REINDEX) MemberRequest updateMemberRequest(MemberRequest memberRequest)
Important: Inspect MemberRequestLocalServiceImpl 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.
memberRequest - the member requestMemberRequest updateMemberRequest(java.lang.String key, long receiverUserId) throws PortalException
PortalException