public class TermsOfUseImpl extends Object implements TermsOfUse
Constructor and Description |
---|
TermsOfUseImpl() |
Modifier and Type | Method and Description |
---|---|
ToU |
getToUGroup(long groupId)
Retrieve the ToU for group with id groupId
|
boolean |
hasAcceptedToU(String userid,
long groupId)
Check whether the user having userid has accepted the ToU in group with id groupId
|
Long |
hasAcceptedToUVersion(String userid,
long groupId)
Check whether the user having userid has accepted the ToU in group with id groupId and return the id of the accepted ToU
|
void |
setAcceptedToU(String userid,
long groupId)
Set as accepted the ToU of group with id groupId for user userid (the id of the ToU is the last available)
|
public boolean hasAcceptedToU(String userid, long groupId) throws NumberFormatException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
TermsOfUse
hasAcceptedToU
in interface TermsOfUse
NumberFormatException
org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
public Long hasAcceptedToUVersion(String userid, long groupId) throws NumberFormatException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
TermsOfUse
hasAcceptedToUVersion
in interface TermsOfUse
NumberFormatException
org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
public void setAcceptedToU(String userid, long groupId) throws ToUNotFoundException, com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
TermsOfUse
setAcceptedToU
in interface TermsOfUse
ToUNotFoundException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
org.gcube.vomanagement.usermanagement.exception.UserRetrievalFault
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
public ToU getToUGroup(long groupId) throws ToUNotFoundException, org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
TermsOfUse
getToUGroup
in interface TermsOfUse
ToUNotFoundException
org.gcube.vomanagement.usermanagement.exception.GroupRetrievalFault
org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
Copyright © 2020. All Rights Reserved.