de.theit.hudson.crowd
Class ErrorMessages

java.lang.Object
  extended by de.theit.hudson.crowd.ErrorMessages

public class ErrorMessages
extends Object

This class delivers localized error messages.

Since:
06.09.2011
Version:
$Id$
Author:
Thorsten Heit (theit@gmx.de)

Constructor Summary
ErrorMessages()
           
 
Method Summary
static String accountExpired(String username)
          Returns the localized error message when the account is inactive.
static String applicationAccessDenied(String username)
          Returns the localized error message when a user does not have access to authenticate against an application.
static String applicationPermission()
          Returns the localized error message when the application has no permission to perform a connection check to the Crowd server.
static String cannotLoadCrowdProperties()
          Returns the localized error message when the configuration file crowd.properties cannot be loaded.
static String cannotValidateGroup(String groupname)
          Returns the localized error message when the specified group does not exist on the remote Crowd server or is not active.
static String expiredCredentials(String username)
          Returns the localized error message when the user password has expired and must be changed.
static String groupNotFound(String groupname)
          Returns the localized error message when the group was not found on the remote Crowd server.
static String invalidAuthentication()
          Returns the localized error message text when the application name and password are not valid.
static String invalidToken()
          Returns the localized error message when an invalid SSO token was found.
static String operationFailed()
          Returns the localized error message when the connection check failed.
static String specifyApplicationName()
          Returns the localized error message when no application name is given.
static String specifyApplicationPassword()
          Returns the localized error message when no application password is given.
static String specifyCrowdUrl()
          Returns the localized error message when no URL is specified.
static String specifyGroup()
          Returns the localized error message when no group name is given.
static String userGroupNotFound(String username)
          Returns the localized error message when the group of users that are allowed to login into Hudson / Jenkins does not exist or is not active.
static String userNotFound(String username)
          Returns the localized error message when the user was not found on the remote Crowd server.
static String userNotValid(String username, String groupname)
          Returns the localized error message when a user does not have the permission to login into Hudson / Jenkins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorMessages

public ErrorMessages()
Method Detail

specifyCrowdUrl

public static String specifyCrowdUrl()
Returns the localized error message when no URL is specified.

Returns:
The localized error message for a missing Crowd URL.

specifyApplicationName

public static String specifyApplicationName()
Returns the localized error message when no application name is given.

Returns:
The localized error message for a missing application name.

specifyApplicationPassword

public static String specifyApplicationPassword()
Returns the localized error message when no application password is given.

Returns:
The localized error message for a missing application password.

specifyGroup

public static String specifyGroup()
Returns the localized error message when no group name is given.

Returns:
The localized error message for a missing group name.

operationFailed

public static String operationFailed()
Returns the localized error message when the connection check failed.

Returns:
The localized error message for a failed connection check.

cannotLoadCrowdProperties

public static String cannotLoadCrowdProperties()
Returns the localized error message when the configuration file crowd.properties cannot be loaded.

Returns:
The localized error message when the configuration file crowd.properties cannot be loaded.

invalidAuthentication

public static String invalidAuthentication()
Returns the localized error message text when the application name and password are not valid.

Returns:
The localized error message for invalid application name and password.

applicationPermission

public static String applicationPermission()
Returns the localized error message when the application has no permission to perform a connection check to the Crowd server.

Returns:
The localized error message for missing permission to perform a connection check to the Crowd server.

userNotFound

public static String userNotFound(String username)
Returns the localized error message when the user was not found on the remote Crowd server.

Parameters:
username - The user name. May not be null.
Returns:
The localized error message when the user was not found on the remote Crowd server.

groupNotFound

public static String groupNotFound(String groupname)
Returns the localized error message when the group was not found on the remote Crowd server.

Parameters:
groupname - The name of the group. May not be null.
Returns:
The localized error message when the group was not found on the remote Crowd server.

cannotValidateGroup

public static String cannotValidateGroup(String groupname)
Returns the localized error message when the specified group does not exist on the remote Crowd server or is not active.

Parameters:
groupname - The name of the group. May not be null.
Returns:
The localized error message when the specified group cannot be validated against the remote Crowd server.

expiredCredentials

public static String expiredCredentials(String username)
Returns the localized error message when the user password has expired and must be changed.

Parameters:
username - The user name. May not be null.
Returns:
The localized error message when the user password has expired.

accountExpired

public static String accountExpired(String username)
Returns the localized error message when the account is inactive.

Parameters:
username - The user name. May not be null.
Returns:
The localized error message when the account is inactive.

invalidToken

public static String invalidToken()
Returns the localized error message when an invalid SSO token was found.

Returns:
The localized error message for an invalid SSO token.

applicationAccessDenied

public static String applicationAccessDenied(String username)
Returns the localized error message when a user does not have access to authenticate against an application.

Parameters:
username - The user name. May not be null.
Returns:
The localized error message for denied application access.

userGroupNotFound

public static String userGroupNotFound(String username)
Returns the localized error message when the group of users that are allowed to login into Hudson / Jenkins does not exist or is not active.

Parameters:
username - The user name. May not be null.
Returns:
The localized error message for a non-existing or non-active group.

userNotValid

public static String userNotValid(String username,
                                  String groupname)
Returns the localized error message when a user does not have the permission to login into Hudson / Jenkins.

Parameters:
username - The user name. May not be null.
groupname - The name of the group. May not be null.
Returns:
The localized error message when a user does not have the permission to login into Hudson / Jenkins.


Copyright © 2004-2011 Hudson. All Rights Reserved.