Class UserMgmtService
- java.lang.Object
-
- io.jans.configapi.plugin.mgt.service.UserMgmtService
-
@ApplicationScoped @Named("userMgmtSrv") public class UserMgmtService extends Object
-
-
Constructor Summary
Constructors Constructor Description UserMgmtService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.jans.as.common.model.common.User
addUser(io.jans.as.common.model.common.User user, boolean active)
String
checkMandatoryFields(io.jans.as.common.model.common.User user, List<String> excludeAttributes)
io.jans.as.common.model.common.User
excludeAttributes(io.jans.as.common.model.common.User user, String commaSeparatedString)
List<io.jans.as.common.model.common.User>
excludeAttributes(List<io.jans.as.common.model.common.User> users, String commaSeparatedString)
List<io.jans.model.JansAttribute>
findAttributeByName(String name)
String
getPeopleBaseDn()
String
getPersistenceType()
io.jans.as.common.model.common.User
getUserBasedOnInum(String inum)
List<io.jans.as.common.model.common.User>
getUserByEmail(String email)
List<io.jans.as.common.model.common.User>
getUserByName(String name)
String
getUserExclusionAttributesAsString()
io.jans.as.common.model.common.User
ignoreCustomObjectClassesForNonLDAP(io.jans.as.common.model.common.User user)
boolean
isLDAP()
io.jans.as.common.model.common.User
parseBirthDateAttribute(io.jans.as.common.model.common.User user)
io.jans.as.common.model.common.User
patchUser(String inum, UserPatchRequest userPatchRequest)
List<io.jans.orm.model.base.CustomObjectAttribute>
removeInActiveCustomAttribute(List<io.jans.orm.model.base.CustomObjectAttribute> customAttributes)
void
removeUser(io.jans.as.common.model.common.User user)
io.jans.orm.model.PagedResult<io.jans.as.common.model.common.User>
searchUsers(io.jans.model.SearchRequest searchRequest)
io.jans.as.common.model.common.User
updateUser(io.jans.as.common.model.common.User user)
void
validateAttributes(List<io.jans.orm.model.base.CustomObjectAttribute> customAttributes)
List<io.jans.as.common.model.common.User>
verifyCustomAttributes(List<io.jans.as.common.model.common.User> users)
-
-
-
Method Detail
-
getPeopleBaseDn
public String getPeopleBaseDn()
-
searchUsers
public io.jans.orm.model.PagedResult<io.jans.as.common.model.common.User> searchUsers(io.jans.model.SearchRequest searchRequest)
-
removeUser
public void removeUser(io.jans.as.common.model.common.User user)
-
patchUser
public io.jans.as.common.model.common.User patchUser(String inum, UserPatchRequest userPatchRequest) throws com.github.fge.jsonpatch.JsonPatchException, IOException
- Throws:
com.github.fge.jsonpatch.JsonPatchException
IOException
-
getUserBasedOnInum
public io.jans.as.common.model.common.User getUserBasedOnInum(String inum)
-
excludeAttributes
public List<io.jans.as.common.model.common.User> excludeAttributes(List<io.jans.as.common.model.common.User> users, String commaSeparatedString) throws IllegalAccessException, InvocationTargetException
-
excludeAttributes
public io.jans.as.common.model.common.User excludeAttributes(io.jans.as.common.model.common.User user, String commaSeparatedString) throws IllegalAccessException, InvocationTargetException
-
getUserExclusionAttributesAsString
public String getUserExclusionAttributesAsString()
-
checkMandatoryFields
public String checkMandatoryFields(io.jans.as.common.model.common.User user, List<String> excludeAttributes) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
-
parseBirthDateAttribute
public io.jans.as.common.model.common.User parseBirthDateAttribute(io.jans.as.common.model.common.User user)
-
ignoreCustomObjectClassesForNonLDAP
public io.jans.as.common.model.common.User ignoreCustomObjectClassesForNonLDAP(io.jans.as.common.model.common.User user)
-
isLDAP
public boolean isLDAP()
-
getPersistenceType
public String getPersistenceType()
-
addUser
public io.jans.as.common.model.common.User addUser(io.jans.as.common.model.common.User user, boolean active)
-
updateUser
public io.jans.as.common.model.common.User updateUser(io.jans.as.common.model.common.User user)
-
verifyCustomAttributes
public List<io.jans.as.common.model.common.User> verifyCustomAttributes(List<io.jans.as.common.model.common.User> users)
-
removeInActiveCustomAttribute
public List<io.jans.orm.model.base.CustomObjectAttribute> removeInActiveCustomAttribute(List<io.jans.orm.model.base.CustomObjectAttribute> customAttributes)
-
validateAttributes
public void validateAttributes(List<io.jans.orm.model.base.CustomObjectAttribute> customAttributes)
-
-