
api.user.api Maven / Gradle / Ivy
/**
* The user api
*
* The user api is fixed on the current authority and perpective, which
* can be altered in the first two calls. All other calls are rooted to that
* authority. The information is stored in the session context.
*/
[The user API contains methods for users to query and manipulate their own accounts and sessions.]
api(User) {
[Returns account information for the current user.]
@entitle=/everyone
@public RaptureUser getWhoAmI();
[Logs out the active user and terminates the current session.]
@entitle=/everyone
@public void logoutUser();
[Stores application preferences for the current user.]
@entitle=/user/preferences
@public void storePreference(String category, String name, String content);
[Retrieves application preferences for the current user.]
@entitle=/user/preferences
@public String getPreference(String category, String name);
[Removes a previously stored preference.]
@entitle=/user/preferences
@public void removePreference(String category, String name);
[This method will list the categories of preferences available for a user.]
@entitle=/user/preferences
@public List(String) getPreferenceCategories();
[This method will list the preference documents in a category.]
@entitle=/user/preferences
@public List(String) getPreferencesInCategory(String category);
[Updates the description for the current user.]
@entitle=/everyone
@public RaptureUser updateMyDescription(String description);
[Changes the password for the current user.]
@entitle=/everyone
@public RaptureUser changeMyPassword(String oldHashPassword, String newHashPassword);
[Changes the email for the current user.]
@entitle=/everyone
@public RaptureUser changeMyEmail(String newAddress);
[Retrieves the API version currently in use.]
@entitle=/everyone
@public ApiVersion getServerApiVersion();
[A method to check whether the current user is allowed to make the API call. Useful for the UI so that it can determine whether or not to show a particular item.]
@entitle=/everyone
@public Boolean isPermitted(String apiCall, String callParam);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy