Class AuthGroupUtil

java.lang.Object
com.skava.auth.util.AuthGroupUtil

public final class AuthGroupUtil extends Object
Author:
Infosys Equinox
  • Method Details

    • validateAuthGroupName

      public static void validateAuthGroupName(String name, org.springframework.context.MessageSource messageSource)
      This method validate name of the AuthGroup.
      Parameters:
      name - a String object.
      messageSource - a MessageSource object.
    • validateAuthGroupId

      public static void validateAuthGroupId(Long authGroupId, org.springframework.context.MessageSource messageSource)
      This method validate identifier of the AuthGroup.
      Parameters:
      authGroupId - a Long object.
      messageSource - a MessageSource object.
    • createAuthGroup

      public static AuthGroup createAuthGroup(AuthGroupVO authGroup, AuthGroupRepository authGroupRepository)
      This method create a new AuthGroup with given details.
      Parameters:
      authGroup - a AuthGroupVO object.
      authGroupRepository - a AuthGroupRepository object.
      Returns:
      a AuthGroup object.
    • getAuthGroup

      public static AuthGroup getAuthGroup(Long authGroupId, AuthGroupRepository authGroupRepository)
    • isRequestValid

      public static boolean isRequestValid(Object input)
      Parameters:
      input - a Object object.
      Returns:
      a Boolean object.
    • validateRequest

      public static void validateRequest(Object input, org.springframework.context.MessageSource messageSource)
      Parameters:
      input - a Object object.
      messageSource - a MessageSource object.
    • searchAuthGroups

      public static List<AuthGroup> searchAuthGroups(String filter, long collectionId, int offset, int limit, jakarta.persistence.EntityManager entityManager)
      Parameters:
      filter - a String object.
      collectionId - a Long object.
      offset - a Integer object.
      limit - a Integer object.
      entityManager - a EntityManager object.
      Returns:
      a List of AuthGroup objects.
    • updateAuthGroup

      public static AuthGroup updateAuthGroup(String name, String description, AuthGroup authGroup, AuthGroupRepository authGroupRepository)
    • updateAuthGroup

      public static AuthGroup updateAuthGroup(AuthGroup authGroup, AuthGroupRepository authGroupRepository)
    • deleteAuthGroup

      public static void deleteAuthGroup(AuthGroup authGroup, AuthGroupRepository authGroupRepository)