|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.ssm.test.svc.AppUserServiceImpl
@Service public class AppUserServiceImpl

| Constructor Summary | |
|---|---|
AppUserServiceImpl()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppUserServiceImpl()
| Method Detail |
|---|
public void disableAppForUser(int userId,
int applicationId)
AppUserService
disableAppForUser in interface AppUserServiceuserId - the portal user IDapplicationId - the application ID
public void enableAppForUser(int userId,
int applicationId,
boolean favourite)
AppUserService
enableAppForUser in interface AppUserServiceuserId - the portal user IDapplicationId - the application IDfavourite - is application marked as favourite
public AppUser get(int userId,
int applicationId)
AppUserService
get in interface AppUserServiceuserId - user IDapplicationId - application ID
AppUser for given user and application
public List<AppUser> getInstalledList(int userId,
List<Integer> applicationsIds)
AppUserService
getInstalledList in interface AppUserServiceuserId - user IDapplicationsIds - the IDs of applications
AppUser of given user with given applications' IDspublic List<AppUser> getList(int userId)
AppUserServiceAppUser entities for specified user that contains authorized and unauthorized
(uninstalled) applications.
getList in interface AppUserServiceuserId - the portal user ID
AppUser of given user
public List<AppUser> getList(int userId,
boolean authorized)
AppUserServiceAppUser entities for specified portal user.
getList in interface AppUserServiceuserId - 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
public List<Integer> getUserIdsList(int applicationId,
List<Integer> userIds)
AppUserService
getUserIdsList in interface AppUserServiceuserIds - portal user IDs
public boolean isEnabled(int userId,
int applicationId)
AppUserService
isEnabled in interface AppUserServiceuserId - the user portal IDapplicationId - the application ID
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||