Package com.skava.auth.util
Class AuthGroupUtil
java.lang.Object
com.skava.auth.util.AuthGroupUtil
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthGroup
createAuthGroup
(AuthGroupVO authGroup, AuthGroupRepository authGroupRepository) This method create a new AuthGroup with given details.static void
deleteAuthGroup
(AuthGroup authGroup, AuthGroupRepository authGroupRepository) static AuthGroup
getAuthGroup
(Long authGroupId, AuthGroupRepository authGroupRepository) static boolean
isRequestValid
(Object input) searchAuthGroups
(String filter, long collectionId, int offset, int limit, jakarta.persistence.EntityManager entityManager) static AuthGroup
updateAuthGroup
(AuthGroup authGroup, AuthGroupRepository authGroupRepository) static AuthGroup
updateAuthGroup
(String name, String description, AuthGroup authGroup, AuthGroupRepository authGroupRepository) static void
validateAuthGroupId
(Long authGroupId, org.springframework.context.MessageSource messageSource) This method validate identifier of the AuthGroup.static void
validateAuthGroupName
(String name, org.springframework.context.MessageSource messageSource) This method validate name of the AuthGroup.static void
validateRequest
(Object input, org.springframework.context.MessageSource messageSource)
-
Method Details
-
validateAuthGroupName
public static void validateAuthGroupName(String name, org.springframework.context.MessageSource messageSource) This method validate name of the AuthGroup.- Parameters:
name
- aString
object.messageSource
- aMessageSource
object.
-
validateAuthGroupId
public static void validateAuthGroupId(Long authGroupId, org.springframework.context.MessageSource messageSource) This method validate identifier of the AuthGroup.- Parameters:
authGroupId
- aLong
object.messageSource
- aMessageSource
object.
-
createAuthGroup
public static AuthGroup createAuthGroup(AuthGroupVO authGroup, AuthGroupRepository authGroupRepository) This method create a new AuthGroup with given details.- Parameters:
authGroup
- aAuthGroupVO
object.authGroupRepository
- aAuthGroupRepository
object.- Returns:
- a
AuthGroup
object.
-
getAuthGroup
-
isRequestValid
-
validateRequest
public static void validateRequest(Object input, org.springframework.context.MessageSource messageSource) - Parameters:
input
- aObject
object.messageSource
- aMessageSource
object.
-
searchAuthGroups
-
updateAuthGroup
public static AuthGroup updateAuthGroup(String name, String description, AuthGroup authGroup, AuthGroupRepository authGroupRepository) -
updateAuthGroup
public static AuthGroup updateAuthGroup(AuthGroup authGroup, AuthGroupRepository authGroupRepository) -
deleteAuthGroup
-