User Type Determination

The isUserExternal() method is invoked anywhere in the application where the type of user is to be determined. This includes when the user logs into the application and when they attempt authorization to access secured elements of IBM Cúram Social Program Management.

/**
 * The implementation of this method should determine the type of
 * User that is logged into the application. There are 2 types of
 * users: INTERNAL and EXTERNAL. If the user is an EXTERNAL user,
 * then this method should return true. If false is returned,
 * then the user is considered INTERNAL.
 *
 * @param username - The username.
 * @return A boolean value of true indicating an EXTERNAL user,
 * false indicates an INTERNAL user.
 *
 * @throws AppException Generic Exception Signature.
 * @throws InformationalException Generic Exception Signature.
 */
boolean isUserExternal(String username)
  throws AppException, InformationalException;