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 UserService
ServiceManagerException
public UserModel get(String id) throws ServiceManagerException
get
in interface DataService<UserModel>
ServiceManagerException
public LangridList<UserModel> getList(int index, int count, MatchingCondition[] conditions, Order[] orders, Scope scope) throws ServiceManagerException
getList
in interface DataService<UserModel>
ServiceManagerException
public int getTotalCount(MatchingCondition[] conditions, Scope scope) throws ServiceManagerException
getTotalCount
in interface DataService<UserModel>
ServiceManagerException
public void add(UserModel obj) throws ServiceManagerException
add
in interface DataService<UserModel>
ServiceManagerException
public void edit(UserModel obj) throws ServiceManagerException
edit
in interface DataService<UserModel>
ServiceManagerException
public void changePassword(String userId, String password) throws ServiceManagerException
changePassword
in interface UserService
ServiceManagerException
public void delete(UserModel model) throws ServiceManagerException
delete
in interface DataService<UserModel>
ServiceManagerException
public boolean authenticate(String userId, String password) throws ServiceManagerException
authenticate
in interface UserService
ServiceManagerException
public boolean isCanCallServices(String userId) throws ServiceManagerException
isCanCallServices
in interface UserService
ServiceManagerException
public void setCanCallServices(String userId, boolean isPermit) throws ServiceManagerException
setCanCallServices
in interface UserService
ServiceManagerException
public boolean isAdministrator(String userId) throws ServiceManagerException
isAdministrator
in interface UserService
ServiceManagerException
public boolean isShouldChangePassword(String userId, int day) throws ServiceManagerException
isShouldChangePassword
in interface UserService
ServiceManagerException
public 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