Liferay 6.1.2-ce-ga3

com.liferay.portal.service
Class MembershipRequestLocalServiceWrapper

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

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

This class is 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, int statusId)
           
 void deleteMembershipRequestsByUserId(long userId)
           
 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.
 MembershipRequest fetchMembershipRequest(long membershipRequestId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 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, int statusId)
           
 int getMembershipRequestsCount()
          Returns the number of membership requests.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 MembershipRequestLocalService getWrappedMembershipRequestLocalService()
          Deprecated. Renamed to getWrappedService()
 MembershipRequestLocalService getWrappedService()
           
 boolean hasMembershipRequest(long userId, long groupId, int statusId)
           
 List<MembershipRequest> search(long groupId, int status, int start, int end)
           
 int searchCount(long groupId, int status)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedMembershipRequestLocalService(MembershipRequestLocalService membershipRequestLocalService)
          Deprecated. Renamed to setWrappedService(com.liferay.portal.service.MembershipRequestLocalService)
 void setWrappedService(MembershipRequestLocalService membershipRequestLocalService)
           
 MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest)
          Updates the membership request in the database or adds it if it does not yet exist.
 MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest, boolean merge)
          Updates the membership request in the database or adds it if it does not yet exist.
 void updateStatus(long replierUserId, long membershipRequestId, String replyComments, int 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)
                                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

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(long membershipRequestId)
                                          throws PortalException,
                                                 SystemException
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
SystemException - if a system exception occurred

deleteMembershipRequest

public MembershipRequest deleteMembershipRequest(MembershipRequest membershipRequest)
                                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface MembershipRequestLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchMembershipRequest

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

getMembershipRequest

public MembershipRequest getMembershipRequest(long membershipRequestId)
                                       throws PortalException,
                                              SystemException
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
SystemException - if a system exception occurred

getPersistedModel

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

getMembershipRequests

public List<MembershipRequest> getMembershipRequests(int start,
                                                     int end)
                                              throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

getMembershipRequestsCount

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

Specified by:
getMembershipRequestsCount in interface MembershipRequestLocalService
Returns:
the number of membership requests
Throws:
SystemException - if a system exception occurred

updateMembershipRequest

public MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest)
                                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

updateMembershipRequest

public MembershipRequest updateMembershipRequest(MembershipRequest membershipRequest,
                                                 boolean merge)
                                          throws SystemException
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
merge - whether to merge the membership request with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the membership request that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Specified by:
getBeanIdentifier in interface MembershipRequestLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

public void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Specified by:
setBeanIdentifier in interface MembershipRequestLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addMembershipRequest

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

deleteMembershipRequests

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

deleteMembershipRequests

public void deleteMembershipRequests(long groupId,
                                     int statusId)
                              throws SystemException
Specified by:
deleteMembershipRequests in interface MembershipRequestLocalService
Throws:
SystemException

deleteMembershipRequestsByUserId

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

getMembershipRequests

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

hasMembershipRequest

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

search

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

searchCount

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

updateStatus

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

getWrappedMembershipRequestLocalService

public MembershipRequestLocalService getWrappedMembershipRequestLocalService()
Deprecated. Renamed to getWrappedService()


setWrappedMembershipRequestLocalService

public void setWrappedMembershipRequestLocalService(MembershipRequestLocalService membershipRequestLocalService)
Deprecated. Renamed to setWrappedService(com.liferay.portal.service.MembershipRequestLocalService)


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 6.1.2-ce-ga3