Class SubjectManager
- java.lang.Object
-
- com.tetsuwantech.atom.manager.GenericManager<Subject,String,SubjectModel,SubjectModel>
-
- com.tetsuwantech.atom.manager.authentication.SubjectManager
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
,org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,org.springframework.security.oauth2.core.user.OAuth2User>
public class SubjectManager extends GenericManager<Subject,String,SubjectModel,SubjectModel> implements org.springframework.security.core.userdetails.UserDetailsService, org.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,org.springframework.security.oauth2.core.user.OAuth2User>
-
-
Field Summary
-
Fields inherited from class com.tetsuwantech.atom.manager.GenericManager
genericService
-
-
Constructor Summary
Constructors Constructor Description SubjectManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(SubjectModel subjectModel)
Long
countAll(SubjectModel subjectModel)
protected SubjectModel
createModel(Subject subject)
void
deactivate(SubjectModel subjectModel)
List<SubjectModel>
findAll()
List<SubjectModel>
findAll(SubjectModel where)
SubjectModel
findFirst(String where)
SubjectModel
findFirst(String where, String column)
boolean
isDomainAllowed(String username)
org.springframework.security.oauth2.core.user.OAuth2User
loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest)
org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(String username)
void
save(SubjectModel subjectModel)
List<SubjectModel>
search(SubjectModel subjectModel, String text)
-
-
-
Method Detail
-
save
public void save(SubjectModel subjectModel)
- Specified by:
save
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
activate
public void activate(SubjectModel subjectModel)
-
deactivate
public void deactivate(SubjectModel subjectModel)
-
createModel
protected SubjectModel createModel(Subject subject)
- Specified by:
createModel
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
findAll
public List<SubjectModel> findAll()
-
findAll
public List<SubjectModel> findAll(SubjectModel where)
- Specified by:
findAll
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
countAll
public Long countAll(SubjectModel subjectModel)
- Specified by:
countAll
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
findFirst
public SubjectModel findFirst(String where)
-
findFirst
public SubjectModel findFirst(String where, String column)
- Overrides:
findFirst
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
search
public List<SubjectModel> search(SubjectModel subjectModel, String text)
- Specified by:
search
in classGenericManager<Subject,String,SubjectModel,SubjectModel>
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username)
- Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
-
loadUser
public org.springframework.security.oauth2.core.user.OAuth2User loadUser(org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest userRequest)
- Specified by:
loadUser
in interfaceorg.springframework.security.oauth2.client.userinfo.OAuth2UserService<org.springframework.security.oauth2.client.userinfo.OAuth2UserRequest,org.springframework.security.oauth2.core.user.OAuth2User>
-
isDomainAllowed
public boolean isDomainAllowed(String username)
-
-