Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.validators
Class ValidatorIBMiUserId

java.lang.Object
  extended by ValidatorSpecialChar
      extended by com.ibm.etools.iseries.rse.ui.validators.ValidatorIBMiUserId

public class ValidatorIBMiUserId
extends ValidatorSpecialChar

This class is used in dialogs that prompt for an iSeries userId.

This does very basic userId validation, just to ensure there are no problems when the user Id is saved in the preferences. This means restricting use of a couple special characters that would mess up the key/value processing of the preference data. The IInputValidator interface is used by jface's InputDialog class and numerous other platform and system classes.


Field Summary
static String Copyright
           
static String ISERIES_INVALID_CHARS_USERID
           
static int ISERIES_MAXLENGTH_USERID
           
 
Constructor Summary
ValidatorIBMiUserId()
          Constructor when a blank userId is not ok
ValidatorIBMiUserId(boolean emptyAllowed)
          Constructor when a blank userId is ok
 
Method Summary
 int getMaximumNameLength()
          Return the max number of chars for user ID: 128
 SystemMessage isSyntaxOk(String newText)
          We could do additional syntax checking here if we decide to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

ISERIES_INVALID_CHARS_USERID

public static final String ISERIES_INVALID_CHARS_USERID
See Also:
Constant Field Values

ISERIES_MAXLENGTH_USERID

public static final int ISERIES_MAXLENGTH_USERID
See Also:
Constant Field Values
Constructor Detail

ValidatorIBMiUserId

public ValidatorIBMiUserId()
Constructor when a blank userId is not ok


ValidatorIBMiUserId

public ValidatorIBMiUserId(boolean emptyAllowed)
Constructor when a blank userId is ok

Method Detail

isSyntaxOk

public SystemMessage isSyntaxOk(String newText)
We could do additional syntax checking here if we decide to. This method is called by parent class if all other error checking passes.


getMaximumNameLength

public int getMaximumNameLength()
Return the max number of chars for user ID: 128


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.