com.sap.portal.admin.wizard.validators

Class ObjectIdValidator

java.lang.Object
  extended by com.sap.portal.admin.wizard.validators.ObjectIdValidator
All Implemented Interfaces:
IValidator

Deprecated. Use Admin Studio Wizard Framework, as described in Creating Administration Interfaces (Web Dynpro) on the Help Portal documentation (help.sap.com).

public class ObjectIdValidator
extends Object
implements IValidator

The class used to validate the object ID provided by the user.


Constructor Summary
ObjectIdValidator()
          Deprecated. A blank constructor.
 
Method Summary
 List getErrorKeyList(IWizardContext context)
          Deprecated. Gets a list of resource bundle keys for the errors collected when the validity check fails.
protected  boolean idExceedMaxLen(String id)
          Deprecated. Indicates whether the specified ID exceeds the maximum permitted length for object IDs.
protected  boolean idExists(String id, IWizardContext context)
          Deprecated. Indicates whether the specified ID exists in the specified location (including the prefix).
protected  boolean idIsLegal(String id, boolean isPrefix)
          Deprecated. Indicates whether an object ID is permitted according to the portal rules.
 boolean isValid(Object key, IWizardContext context)
          Deprecated. Validates the object ID.
 boolean isValid(String prefix, String id, IWizardContext context)
          Deprecated. Validates the prefix ID and the object ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdValidator

public ObjectIdValidator()
Deprecated. 
A blank constructor.

Method Detail

isValid

public boolean isValid(Object key,
                       IWizardContext context)
Deprecated. 
Validates the object ID. Checks the following:

Specified by:
isValid in interface IValidator
Parameters:
key - an object ID
context - the current wizard context
Returns:
true if valid, false if not

isValid

public boolean isValid(String prefix,
                       String id,
                       IWizardContext context)
Deprecated. 
Validates the prefix ID and the object ID. Periods are allowed in the prefix ID and forbidden in the object ID. Calls isValid(Object key, IWizardContext context) to check

Parameters:
prefix - a prefix ID
id - an object ID
context - the current wizard context
Returns:
true if valid, false if not

getErrorKeyList

public List getErrorKeyList(IWizardContext context)
Deprecated. 
Description copied from interface: IValidator
Gets a list of resource bundle keys for the errors collected when the validity check fails.

Specified by:
getErrorKeyList in interface IValidator
Parameters:
context - the current wizard context
Returns:
the error list (an empty list if no errors found)

idIsLegal

protected boolean idIsLegal(String id,
                            boolean isPrefix)
Deprecated. 
Indicates whether an object ID is permitted according to the portal rules. Periods are permitted in a prefix ID but not allowed in an object ID.

Parameters:
id - an object ID
isPrefix - trueindicates the ID is the prefix, false indicates it is not
Returns:
true if the ID is legal, false if not

idExists

protected boolean idExists(String id,
                           IWizardContext context)
Deprecated. 
Indicates whether the specified ID exists in the specified location (including the prefix).

Parameters:
id - an object ID
context - the current wizard context
Returns:
true if the ID exists, false if it does not

idExceedMaxLen

protected boolean idExceedMaxLen(String id)
Deprecated. 
Indicates whether the specified ID exceeds the maximum permitted length for object IDs.

Parameters:
id - an object ID
Returns:
true if the ID is longer than the maximum permitted length, false if not
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/admin/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice