de.theit.jenkins.crowd
Class ErrorMessages

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

public class ErrorMessages
extends java.lang.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 java.lang.String accountExpired(java.lang.String username)
          Returns the localized error message when the account is inactive.
static java.lang.String applicationAccessDenied(java.lang.String username)
          Returns the localized error message when a user does not have access to authenticate against an application.
static java.lang.String applicationPermission()
          Returns the localized error message when the application has no permission to perform a connection check to the Crowd server.
static java.lang.String cannotLoadCrowdProperties()
          Returns the localized error message when the configuration file crowd.properties cannot be loaded.
static java.lang.String expiredCredentials(java.lang.String username)
          Returns the localized error message when the user password has expired and must be changed.
static java.lang.String groupNotFound(java.lang.String groupname)
          Returns the localized error message when the group was not found on the remote Crowd server.
static java.lang.String invalidAuthentication()
          Returns the localized error message text when the application name and password are not valid.
static java.lang.String operationFailed()
          Returns the localized error message when the connection check failed.
static java.lang.String specifyApplicationName()
          Returns the localized error message when no application name is given.
static java.lang.String specifyApplicationPassword()
          Returns the localized error message when no application password is given.
static java.lang.String specifyCrowdUrl()
          Returns the localized error message when no URL is specified.
static java.lang.String specifyGroup()
          Returns the localized error message when no group name is given.
static java.lang.String specifySessionValidationInterval()
          Returns the localized error message when no session validation interval time is given.
static java.lang.String userNotFound(java.lang.String username)
          Returns the localized error message when the user was not found on the remote Crowd server.
static java.lang.String userNotValid(java.lang.String username, java.util.Collection<java.lang.String> groupNames)
          Returns the localized error message when a user does not have the permission to login.
 
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 java.lang.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 java.lang.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 java.lang.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 java.lang.String specifyGroup()
Returns the localized error message when no group name is given.

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

specifySessionValidationInterval

public static java.lang.String specifySessionValidationInterval()
Returns the localized error message when no session validation interval time is given.

Returns:
The localized error message for a missing session validation interval time.

operationFailed

public static java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.String userNotFound(java.lang.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 java.lang.String groupNotFound(java.lang.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.

expiredCredentials

public static java.lang.String expiredCredentials(java.lang.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 java.lang.String accountExpired(java.lang.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.

applicationAccessDenied

public static java.lang.String applicationAccessDenied(java.lang.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.

userNotValid

public static java.lang.String userNotValid(java.lang.String username,
                                            java.util.Collection<java.lang.String> groupNames)
Returns the localized error message when a user does not have the permission to login.

Parameters:
username - The user name. May not be null.
groupNames - The names of the groups allowed to login. May not be null.
Returns:
The localized error message when a user does not have the permission to login.


Copyright © 2004-2012. All Rights Reserved.