Liferay 7.0-ce-b4

com.liferay.portal.service
Class MembershipRequestLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.MembershipRequestLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, MembershipRequestLocalService, PersistedModelLocalService, ServiceWrapper<MembershipRequestLocalService>

@ProviderType
public class MembershipRequestLocalServiceWrapper
extends Object
implements MembershipRequestLocalService, ServiceWrapper<MembershipRequestLocalService>

Provides a wrapper for MembershipRequestLocalService.

See Also:
MembershipRequestLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
MembershipRequestLocalServiceWrapper(MembershipRequestLocalService membershipRequestLocalService)
           
 
Method Summary
 MembershipRequest addMembershipRequest(long userId, long groupId, String comments, ServiceContext serviceContext)
           
 MembershipRequest addMembershipRequest(MembershipRequest membershipRequest)
          Adds the membership request to the database.
 MembershipRequest createMembershipRequest(long membershipRequestId)
          Creates a new membership request with the primary key.
 MembershipRequest deleteMembershipRequest(long membershipRequestId)
          Deletes the membership request with the primary key from the database.
 MembershipRequest deleteMembershipRequest(MembershipRequest membershipRequest)
          Deletes the membership request from the database.
 void deleteMembershipRequests(long groupId)
           
 void deleteMembershipRequests(long groupId, long statusId)
           
 void deleteMembershipRequestsByUserId(long userId)
           
 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.
 MembershipRequest fetchMembershipRequest(long membershipRequestId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 MembershipRequest getMembershipRequest(long membershipRequestId)
          Returns the membership request with the primary key.
 List<MembershipRequest> getMembershipRequests(int start, int end)
          Returns a range of all the membership requests.
 List<MembershipRequest> getMembershipRequests(long userId, long groupId, long statusId)
           
 int getMembershipRequestsCount()
          Returns the number of membership requests.
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 MembershipRequestLocalService getWrappedService()
           
 boolean hasMembershipRequest(long userId, long groupId, long statusId)
           
 List<MembershipRequest> search(long groupId, int status, int start, int end)
           
 int searchCount(long groupId, int status)
           
 void setWrappedService(MembershipRequestLocalService membershipRequestLocalService)
           
 MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest)
          Updates the membership request in the database or adds it if it does not yet exist.
 void updateStatus(long replierUserId, long membershipRequestId, String replyComments, long statusId, boolean addUserToGroup, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MembershipRequestLocalServiceWrapper

public MembershipRequestLocalServiceWrapper(MembershipRequestLocalService membershipRequestLocalService)
Method Detail

addMembershipRequest

public MembershipRequest addMembershipRequest(MembershipRequest membershipRequest)
Adds the membership request to the database. Also notifies the appropriate model listeners.

Specified by:
addMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequest - the membership request
Returns:
the membership request that was added

addMembershipRequest

public MembershipRequest addMembershipRequest(long userId,
                                              long groupId,
                                              String comments,
                                              ServiceContext serviceContext)
                                       throws PortalException
Specified by:
addMembershipRequest in interface MembershipRequestLocalService
Throws:
PortalException

createMembershipRequest

public MembershipRequest createMembershipRequest(long membershipRequestId)
Creates a new membership request with the primary key. Does not add the membership request to the database.

Specified by:
createMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequestId - the primary key for the new membership request
Returns:
the new membership request

deleteMembershipRequest

public MembershipRequest deleteMembershipRequest(MembershipRequest membershipRequest)
Deletes the membership request from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequest - the membership request
Returns:
the membership request that was removed

deleteMembershipRequest

public MembershipRequest deleteMembershipRequest(long membershipRequestId)
                                          throws PortalException
Deletes the membership request with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequestId - the primary key of the membership request
Returns:
the membership request that was removed
Throws:
PortalException - if a membership request with the primary key could not be found

deleteMembershipRequests

public void deleteMembershipRequests(long groupId)
Specified by:
deleteMembershipRequests in interface MembershipRequestLocalService

deleteMembershipRequests

public void deleteMembershipRequests(long groupId,
                                     long statusId)
Specified by:
deleteMembershipRequests in interface MembershipRequestLocalService

deleteMembershipRequestsByUserId

public void deleteMembershipRequestsByUserId(long userId)
Specified by:
deleteMembershipRequestsByUserId in interface MembershipRequestLocalService

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface MembershipRequestLocalService
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface MembershipRequestLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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.

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 MembershipRequestModelImpl. 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.

Specified by:
dynamicQuery in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public <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.

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 MembershipRequestModelImpl. 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.

Specified by:
dynamicQuery in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchMembershipRequest

public MembershipRequest fetchMembershipRequest(long membershipRequestId)
Specified by:
fetchMembershipRequest in interface MembershipRequestLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface MembershipRequestLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface MembershipRequestLocalService

getMembershipRequest

public MembershipRequest getMembershipRequest(long membershipRequestId)
                                       throws PortalException
Returns the membership request with the primary key.

Specified by:
getMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequestId - the primary key of the membership request
Returns:
the membership request
Throws:
PortalException - if a membership request with the primary key could not be found

getMembershipRequests

public List<MembershipRequest> getMembershipRequests(int start,
                                                     int end)
Returns a range of all the membership requests.

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 MembershipRequestModelImpl. 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.

Specified by:
getMembershipRequests in interface MembershipRequestLocalService
Parameters:
start - the lower bound of the range of membership requests
end - the upper bound of the range of membership requests (not inclusive)
Returns:
the range of membership requests

getMembershipRequests

public List<MembershipRequest> getMembershipRequests(long userId,
                                                     long groupId,
                                                     long statusId)
Specified by:
getMembershipRequests in interface MembershipRequestLocalService

getMembershipRequestsCount

public int getMembershipRequestsCount()
Returns the number of membership requests.

Specified by:
getMembershipRequestsCount in interface MembershipRequestLocalService
Returns:
the number of membership requests

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface MembershipRequestLocalService
Returns:
the OSGi service identifier

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface MembershipRequestLocalService
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException

hasMembershipRequest

public boolean hasMembershipRequest(long userId,
                                    long groupId,
                                    long statusId)
Specified by:
hasMembershipRequest in interface MembershipRequestLocalService

search

public List<MembershipRequest> search(long groupId,
                                      int status,
                                      int start,
                                      int end)
Specified by:
search in interface MembershipRequestLocalService

searchCount

public int searchCount(long groupId,
                       int status)
Specified by:
searchCount in interface MembershipRequestLocalService

updateMembershipRequest

public MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest)
Updates the membership request in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateMembershipRequest in interface MembershipRequestLocalService
Parameters:
membershipRequest - the membership request
Returns:
the membership request that was updated

updateStatus

public void updateStatus(long replierUserId,
                         long membershipRequestId,
                         String replyComments,
                         long statusId,
                         boolean addUserToGroup,
                         ServiceContext serviceContext)
                  throws PortalException
Specified by:
updateStatus in interface MembershipRequestLocalService
Throws:
PortalException

getWrappedService

public MembershipRequestLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<MembershipRequestLocalService>

setWrappedService

public void setWrappedService(MembershipRequestLocalService membershipRequestLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<MembershipRequestLocalService>

Liferay 7.0-ce-b4