|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.portal.admin.wizard.validators.ObjectIdValidator
ObjectIdValidator checks the validity of the ID given to the new object to be created.
| Constructor Summary | |
ObjectIdValidator()
|
|
| Method Summary | |
java.util.List |
getErrorKeyList(IWizardContext context)
Get a list that holds the resource bundle keys for the collected errors in case the validity check failed. |
protected boolean |
idExceedMaxLen(java.lang.String id)
Checks whether the given ID is too long and exceeds the permitted maximum length for object IDs. |
protected boolean |
idExists(java.lang.String id,
IWizardContext context)
Checks whether the provided ID already exists in the specified location (including the prefix). |
protected boolean |
idIsLegal(java.lang.String id,
boolean isPrefix)
Checks whether the object's ID is permitted according to the portal rules. |
boolean |
isValid(java.lang.Object key,
IWizardContext context)
Performs 2 checks for the object ID : Does the same ID (including prefix) already exist under the same folder. |
boolean |
isValid(java.lang.String prefix,
java.lang.String id,
IWizardContext context)
Performs separate id check for the prefix and the id, allowing dots in the prefix and forbidding them in the ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectIdValidator()
| Method Detail |
public boolean isValid(java.lang.Object key,
IWizardContext context)
isValid in interface IValidatorkey - the object ID.context - wizard context.
public boolean isValid(java.lang.String prefix,
java.lang.String id,
IWizardContext context)
prefix - the ID prefixid - the IDcontext - wizard contextpublic java.util.List getErrorKeyList(IWizardContext context)
IValidatorgetErrorKeyList in interface IValidatorcom.sap.portal.admin.wizard.validators.IValidatorcontext - wizard context
protected boolean idIsLegal(java.lang.String id,
boolean isPrefix)
Checks whether the object's ID is permitted according to the portal rules.
id - the object ID.isPrefix - specifies if the checked id is the prefix or not (prefix allows dots, ID doesn't)
protected boolean idExists(java.lang.String id,
IWizardContext context)
id - the object ID.context - wizard context.protected boolean idExceedMaxLen(java.lang.String id)
id - the object ID.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||