|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.user.jsp.beans.PropertyBean
Jsp bean class to help with Property management tools. Provides functionality to add and remove properties, and change property definitions and meta-data.
Field Summary | |
static java.lang.String |
MULTIPLE_VALUE
|
static java.lang.String |
RESTRICTED
|
static java.lang.String |
SINGLE_VALUE
|
static java.lang.String |
UNRESTRICTED
|
Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants |
ANONYMOUS_PROFILE,
CACHED_PROFILE,
DEFAULT_SCOPE,
DEFAULT_SUCCESSOR,
DEFAULT_SUCCESSOR_HOME,
DEFAULT_SUCCESSOR_JNDI,
DEFAULT_SUCCESSOR_PK,
DEFAULT_USER,
DEFAULT_USER_HOME,
DEFAULT_USER_JNDI,
DEFAULT_USER_PK,
GROUP,
GROUP_ENTITY_HOME,
PROFILE_MGR,
PROFILE_SUCCESSOR,
PROFILE_USER,
REALM_CONFIG,
RESERVED_SCOPE,
USER,
USER_ENTITY_HOME,
USER_MGR |
Fields inherited from interface com.beasys.commerce.foundation.property.SchemaManagerConstants |
APPLICATION_INIT_TYPE,
CATALOG_TYPE,
CONTENT_TYPE,
REQUEST_TYPE,
SCHEMA,
SCHEMA_GROUPS,
SESSION_TYPE,
USER_TYPE |
Constructor Summary | |
PropertyBean()
|
Method Summary | |
java.lang.String |
addDefaultValue()
Adds the value in defaultValue to the list of default values for the property if it is multi-valued; otherwise returns an error message |
java.lang.String |
addRestrictedValue()
Adds the value in newValue to the list of restricted values in the property |
boolean |
canAddValues(PropertyMetaData property)
|
boolean |
canRemoveValues(PropertyMetaData property)
|
java.lang.String |
createProperty()
Creates a property with the local attributes, and adds it to the Property Set. |
java.lang.Object |
createTypedValue(PropertyMetaData property,
java.lang.String value)
Create an object of the type defined in the given PropertyMetaData object with the value given in the string. |
java.lang.String |
deleteProperty()
Deletes the property named by propertyName from the current scope |
java.lang.String |
formatPropertyValue(PropertyMetaData property,
java.lang.Object value)
Tries to format a given value based on the type of the property. |
java.util.Collection |
getAsCollection(java.lang.Object o)
Convenience method to make a Collection out of any Object. |
java.lang.Object |
getAsObject(java.lang.String currentValue)
Takes in a string and converts it to object based on the property type in the current propertyMetaData. |
java.lang.String |
getCategory()
Get whether this property is restricted |
java.lang.String |
getCategoryForDisplay(PropertyMetaData property)
|
java.util.Collection |
getCurrentPropertyValue()
Get the current property value object - for multiple/unrestricted pages |
PropertyMetaData |
getDefaultPropertyMetaDataForGroup(java.lang.String groupname)
Return a synthesized PropertyMetaData object for a value from the default scope based on its object type |
PropertyMetaData |
getDefaultPropertyMetaDataForUser(java.lang.String username)
Return a synthesized PropertyMetaData object for a value from the default scope based on its object type |
java.lang.String |
getDefaultValue()
Get a default value, or list of values |
PropertyMetaData |
getDynamicPropertyMetaDataForGroup(java.lang.String groupname)
Return a synthesized PropertyMetaData object for a value from the default scope based on its object type |
PropertyMetaData |
getDynamicPropertyMetaDataForUser(java.lang.String username)
Return a synthesized PropertyMetaData object for a value from a dynamic property based on its object type |
java.lang.String |
getGroupUserPropertyEditor(PropertyMetaData property)
|
java.lang.String |
getGroupUserPropertyRenderer(PropertyMetaData property)
|
java.lang.String |
getNewValue()
Get a new value for a restricted property |
java.lang.String |
getOption()
Get whether this property is single or multi valued |
java.lang.String |
getPropertyDescription()
Get the description of the property |
java.lang.String |
getPropertyEditor(PropertyMetaData property)
|
java.lang.String |
getPropertyName()
Get the name of the Property itself |
java.lang.String[] |
getPropertyNames()
|
PropertyMetaData |
getPropertyObject()
Returns the PropertyMetaData referenced by the local propertyName and scopeName attributes. |
java.lang.String |
getPropertyRenderer(PropertyMetaData property)
Returns the name of the JSP used to render information about the property associated with the provided PropertyMetaData |
java.lang.String[][] |
getPropertyTypes()
Return an array of property type constants and their names, as defined in com.beasys.commerce.util.TypesHelper |
java.lang.String |
getPropertyValueEditor(PropertyMetaData property)
Returns the name of the page used to edit the property associated with the provided PropertyMetaData |
java.lang.String |
getRemoveValue()
Get a value to remove from a restricted property |
java.lang.String |
getSchemaGroupName()
Get the name of the schema group |
java.lang.String |
getScopeName()
Get the name of the PropertySet |
java.lang.String |
getSelectionOptionForDisplay(PropertyMetaData property)
|
java.lang.String |
getType()
Get the property's datatype, as defined in com.beasys.commerce.util.TypesHelper |
protected int |
getTypeAsInt()
Parses the given propertyType string into an int |
java.lang.String |
getTypeForDisplay(PropertyMetaData property)
Get the name of the type of this property. |
boolean |
isBlank(java.lang.String input)
|
java.lang.String |
removeDefaultValue()
Removes the value in defaultValue from the list of default values for the property if it is multi-valued. |
java.lang.String |
removeRestrictedValue()
Removes the value in removeValue from the list of restricted values in the property |
void |
setCategory(java.lang.String s)
Set whether this property is restricted. |
void |
setCurrentPropertyValue(java.util.Collection cpv)
Set the current property value object - for multiple/unrestricted pages |
void |
setDefaultValue(java.lang.String s)
Set a default value, or list of values |
void |
setNewValue(java.lang.String s)
Set a new value for a restricted property |
void |
setOption(java.lang.String s)
Set whether this property is single or multi valued. |
void |
setPropertyDescription(java.lang.String s)
Set the description of the property |
void |
setPropertyMetaData(PropertyMetaData pmd)
Sets the PropertyMetaData for the bean. |
void |
setPropertyName(java.lang.String s)
Set the name of the Property itself |
void |
setRemoveValue(java.lang.String s)
Set a value to remove from a restricted property |
void |
setSchemaGroupName(java.lang.String s)
Set the name of the schema group |
void |
setScopeName(java.lang.String s)
Set the name of the PropertySet |
void |
setType(java.lang.String s)
Set the property's datatype, as defined in com.beasys.commerce.util.TypesHelper |
java.lang.String |
updatePropertyDefault(javax.servlet.http.HttpServletRequest request)
Sets the default value(s) for a PropertyMetaData object. |
java.lang.String |
updatePropertyDescription()
Updates the description of the property referenced by the local attributes |
java.lang.String |
updateSinglePropertyDefault(java.lang.String theValue)
Sets the default value(s) for a PropertyMetaData object. |
java.lang.String |
validate()
Validates the entered property meta data -- type, restriction, multiple/single value. |
java.lang.String |
validateDescription()
Validates the entered property description. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String SINGLE_VALUE
public static final java.lang.String MULTIPLE_VALUE
public static final java.lang.String RESTRICTED
public static final java.lang.String UNRESTRICTED
Constructor Detail |
public PropertyBean()
Method Detail |
public java.lang.String validate()
public java.lang.String validateDescription()
null
if no errorprotected int getTypeAsInt()
public java.lang.String createProperty()
null
if no errorpublic java.lang.String deleteProperty()
null
if no errorpublic java.lang.Object getAsObject(java.lang.String currentValue)
public void setPropertyMetaData(PropertyMetaData pmd)
pmd
- the new PropertyMetaDatapublic PropertyMetaData getPropertyObject()
null
if an error is encounteredpublic PropertyMetaData getDefaultPropertyMetaDataForGroup(java.lang.String groupname)
public PropertyMetaData getDefaultPropertyMetaDataForUser(java.lang.String username)
public PropertyMetaData getDynamicPropertyMetaDataForGroup(java.lang.String groupname)
public PropertyMetaData getDynamicPropertyMetaDataForUser(java.lang.String username)
public java.lang.String updatePropertyDescription()
null
if no errorpublic java.lang.String updatePropertyDefault(javax.servlet.http.HttpServletRequest request)
null
if no errorpublic java.lang.String updateSinglePropertyDefault(java.lang.String theValue)
public java.lang.String addDefaultValue()
public java.lang.String removeDefaultValue()
null
if no errorpublic java.lang.String addRestrictedValue()
null
if no errorpublic java.lang.String removeRestrictedValue()
null
if no errorpublic java.lang.String formatPropertyValue(PropertyMetaData property, java.lang.Object value)
property
- used to determine how to format the objectvalue
- the object to formatpublic java.lang.String getPropertyValueEditor(PropertyMetaData property)
public java.lang.String getPropertyRenderer(PropertyMetaData property)
public java.lang.String getGroupUserPropertyRenderer(PropertyMetaData property)
public java.lang.String getPropertyEditor(PropertyMetaData property)
public java.lang.String getGroupUserPropertyEditor(PropertyMetaData property)
public java.lang.String[] getPropertyNames()
public java.lang.String[][] getPropertyTypes()
public java.lang.String getTypeForDisplay(PropertyMetaData property)
public java.lang.String getSelectionOptionForDisplay(PropertyMetaData property)
public java.lang.String getCategoryForDisplay(PropertyMetaData property)
public boolean canAddValues(PropertyMetaData property)
public boolean canRemoveValues(PropertyMetaData property)
public java.util.Collection getAsCollection(java.lang.Object o)
public java.lang.Object createTypedValue(PropertyMetaData property, java.lang.String value)
property
- the PropertyMetaData to determine the typevalue
- the value to convertpublic boolean isBlank(java.lang.String input)
public void setPropertyName(java.lang.String s)
public java.lang.String getPropertyName()
public void setScopeName(java.lang.String s)
public java.lang.String getScopeName()
public void setPropertyDescription(java.lang.String s)
public java.lang.String getPropertyDescription()
public void setType(java.lang.String s)
public java.lang.String getType()
public void setOption(java.lang.String s)
public java.lang.String getOption()
public void setCategory(java.lang.String s)
public java.lang.String getCategory()
public void setDefaultValue(java.lang.String s)
public java.lang.String getDefaultValue()
public void setNewValue(java.lang.String s)
public java.lang.String getNewValue()
public void setRemoveValue(java.lang.String s)
public java.lang.String getRemoveValue()
public void setSchemaGroupName(java.lang.String s)
public java.lang.String getSchemaGroupName()
public void setCurrentPropertyValue(java.util.Collection cpv)
public java.util.Collection getCurrentPropertyValue()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |