|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AppUserService

| Method Summary | |
|---|---|
void |
disableAppForUser(int userId,
int applicationId)
Uninstall application for user. |
void |
enableAppForUser(int userId,
int applicationId,
boolean favourite)
Installs application for user. |
AppUser |
get(int userId,
int applicationId)
Returns application - user association |
List<AppUser> |
getInstalledList(int userId,
List<Integer> applicationsIds)
Returns application - user associations |
List<AppUser> |
getList(int userId)
Get the list of AppUser entities for specified user that contains authorized and unauthorized
(uninstalled) applications. |
List<AppUser> |
getList(int userId,
boolean authorized)
Get the list of AppUser entities for specified portal user. |
List<Integer> |
getUserIdsList(int applicationId,
List<Integer> userIds)
Gets the sublist of given users IDs list that contains only those users that installed given application. |
boolean |
isEnabled(int userId,
int applicationId)
Check if the user (by UID) is user of selected application. |
| Method Detail |
|---|
AppUser get(int userId,
int applicationId)
userId - user IDapplicationId - application ID
AppUser for given user and applicationList<AppUser> getList(int userId)
AppUser entities for specified user that contains authorized and unauthorized
(uninstalled) applications.
userId - the portal user ID
AppUser of given user
List<AppUser> getList(int userId,
boolean authorized)
AppUser entities for specified portal user.
userId - the portal user IDauthorized - if true the only authorized applications will be returned, otherwise other unauthorized (uninstalled)
application will be returned
AppUser of given user
List<AppUser> getInstalledList(int userId,
List<Integer> applicationsIds)
userId - user IDapplicationsIds - the IDs of applications
AppUser of given user with given applications' IDs
List<Integer> getUserIdsList(int applicationId,
List<Integer> userIds)
applicationId - userIds - portal user IDs
boolean isEnabled(int userId,
int applicationId)
userId - the user portal IDapplicationId - the application ID
void enableAppForUser(int userId,
int applicationId,
boolean favourite)
userId - the portal user IDapplicationId - the application IDfavourite - is application marked as favourite
void disableAppForUser(int userId,
int applicationId)
userId - the portal user IDapplicationId - the application ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||