public class UserServiceImpl extends Object implements UserService
| Constructor and Description |
|---|
UserServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(UserModel obj) |
boolean |
authenticate(String userId,
String password) |
void |
changePassword(String userId,
String password) |
void |
delete(UserModel model) |
void |
edit(UserModel obj) |
UserModel |
get(String id) |
LangridList<UserModel> |
getList(int index,
int count,
MatchingCondition[] conditions,
Order[] orders,
Scope scope) |
LangridList<UserModel> |
getListExcludeIds(int index,
int count,
MatchingCondition[] conditions,
Order[] orders,
Scope scope,
Set<String> excludes) |
int |
getTotalCount(MatchingCondition[] conditions,
Scope scope) |
boolean |
isAdministrator(String userId) |
boolean |
isCanCallServices(String userId) |
boolean |
isExist(String dataId) |
boolean |
isShouldChangePassword(String userId,
int day) |
void |
setCanCallServices(String userId,
boolean isPermit) |
void |
setScopeParametar(String serviceGridId,
String userGridId,
String userId) |
public LangridList<UserModel> getListExcludeIds(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope, Set<String> excludes) throws ServiceManagerException
getListExcludeIds in interface UserServiceServiceManagerExceptionpublic UserModel get(String id) throws ServiceManagerException
get in interface DataService<UserModel>ServiceManagerExceptionpublic LangridList<UserModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList in interface DataService<UserModel>ServiceManagerExceptionpublic int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount in interface DataService<UserModel>ServiceManagerExceptionpublic void add(UserModel obj) throws ServiceManagerException
add in interface DataService<UserModel>ServiceManagerExceptionpublic void edit(UserModel obj) throws ServiceManagerException
edit in interface DataService<UserModel>ServiceManagerExceptionpublic void changePassword(String userId, String password) throws ServiceManagerException
changePassword in interface UserServiceServiceManagerExceptionpublic void delete(UserModel model) throws ServiceManagerException
delete in interface DataService<UserModel>ServiceManagerExceptionpublic boolean authenticate(String userId, String password) throws ServiceManagerException
authenticate in interface UserServiceServiceManagerExceptionpublic boolean isCanCallServices(String userId) throws ServiceManagerException
isCanCallServices in interface UserServiceServiceManagerExceptionpublic void setCanCallServices(String userId, boolean isPermit) throws ServiceManagerException
setCanCallServices in interface UserServiceServiceManagerExceptionpublic boolean isAdministrator(String userId) throws ServiceManagerException
isAdministrator in interface UserServiceServiceManagerExceptionpublic boolean isShouldChangePassword(String userId, int day) throws ServiceManagerException
isShouldChangePassword in interface UserServiceServiceManagerExceptionpublic void setScopeParametar(String serviceGridId, String userGridId, String userId)
setScopeParametar in interface DataService<UserModel>public boolean isExist(String dataId) throws ServiceManagerException
isExist in interface DataService<UserModel>ServiceManagerException