public class ResourceManager
extends java.lang.Object
Constructor and Description |
---|
ResourceManager() |
Modifier and Type | Method and Description |
---|---|
static long |
createInviteeList(User user,
InviteeList inviteeList)
Creates a new reusable invitee list in the storage.
|
static void |
deleteInviteeList(User user,
long inviteeListId)
Delete an invitee list.
|
static InviteeList |
getInviteeList(User user,
long inviteeListId)
Gets the invitee list.
|
static ListItem[] |
getInviteeLists(User user)
Gets the invitee lists for this user (array of ListItems)
|
static void |
updateInviteeList(User user,
InviteeList inviteeList)
Updates the invitee list.
|
public static InviteeList getInviteeList(User user, long inviteeListId) throws SurveySecurityException, SurveySystemException
user
- Current userinviteeListId
- Invitee list idSurveySystemException
- If an error occurs in the business logic.SurveySecurityException
- If not authorizedpublic static ListItem[] getInviteeLists(User user) throws SurveySystemException
user
- Current userSurveySystemException
public static long createInviteeList(User user, InviteeList inviteeList) throws SurveySystemException
user
- User who create the invitee list and will get unlimited access to itinviteeList
- Invitee list to createSurveySystemException
- If an error occurs in the business logic.public static void deleteInviteeList(User user, long inviteeListId) throws SurveySystemException, SurveySecurityException
user
- Current userinviteeListId
- The invitee list idSurveySecurityException
- If unauthorizedSurveySystemException
- If an error occurs in the business logic.public static void updateInviteeList(User user, InviteeList inviteeList) throws SurveySystemException, SurveySecurityException
user
- Current userinviteeList
- Invitee list to updateSurveySystemException
- If an error occurs in the business logic.SurveySecurityException
- If unauthorizedBuilt on September 5 2019