BEA Systems, Inc.

com.beasys.commerce.user.jsp.beans
Class PropertySetBean

java.lang.Object
  |
  +--com.beasys.commerce.user.jsp.beans.PropertySetBean

public class PropertySetBean
extends java.lang.Object
implements UserManagementConstants

Jsp bean class to help with PropertySet management tools


Field Summary
static java.lang.String DEFAULT_PROPERTY_SET
          Constant to
 
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
PropertySetBean()
           
 
Method Summary
protected  java.lang.String copyPropertySet(java.lang.String scopeToCopyGroup, java.lang.String scopeToCopyName)
          Helper method to copy the properties to the scope specified by scopeName and schemaGroupName from the scope specified by the paramaters.
 java.lang.String createPropertySet()
          Create a new property set based on the current bean attributes
 java.lang.String deletePropertySet()
          Delete a property set based on the current bean attributes
 java.util.Map getDefaultScopedPropertiesForGroup(java.lang.String groupname)
          Return a Map of properties in the default scope for the given group.
 java.util.Map getDefaultScopedPropertiesForUser(java.lang.String username)
          Return a Map of properties in the default scope for the given user.
 java.lang.String getDescription()
          Get a description of the PropertySet
 java.util.Map getDynamicPropertiesForGroup(java.lang.String groupname)
          Return a Map of dynamically defined properties for the given group.
 java.util.Map getDynamicPropertiesForUser(java.lang.String username)
          Return a Map of dynamically defined properties for the given user.
 java.lang.String[] getListOfScopes()
          Get a list of all scopes in the system.
 java.lang.String[] getQualifiedPropertySets()
          Get a list of all scopes in the system in the form .
 java.lang.String getSchemaGroupName()
          Get the name of the schema group
 Schema getSchemaObject()
           
 java.lang.String[] getSchemasForGroupName(java.lang.String groupName)
          Get a list of schema names for the given schema group name
 java.lang.String getScopeName()
          Get the name of the PropertySet
 java.lang.String getScopeToCopy()
          Get a scope to copy properties from
 java.lang.String initializePropertySet()
          Initialize a new property set by copying the properties from the set specified in the scopeToCopy variable (in the current schemaGroupname) into the new property set.
 java.lang.String initializeQualifiedPropertySet()
          Initialize a new property set by copying the properties from the set specified in the scopeToCopy variable into the new property set.
 boolean isBlank(java.lang.String input)
           
 void setDescription(java.lang.String s)
          Set a description of the PropertySet
 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 setScopeToCopy(java.lang.String s)
          Set a scope to copy properties from
 java.lang.String validate()
          Make sure that the name and description provided for the new property set are valid
 java.lang.String validateDescription()
          Make sure a property set description was provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PROPERTY_SET

public static final java.lang.String DEFAULT_PROPERTY_SET
Constant to
Constructor Detail

PropertySetBean

public PropertySetBean()
Method Detail

validate

public java.lang.String validate()
Make sure that the name and description provided for the new property set are valid
Returns:
an error message, or null if everything is ok

validateDescription

public java.lang.String validateDescription()
Make sure a property set description was provided

createPropertySet

public java.lang.String createPropertySet()
Create a new property set based on the current bean attributes

deletePropertySet

public java.lang.String deletePropertySet()
Delete a property set based on the current bean attributes

initializePropertySet

public java.lang.String initializePropertySet()
Initialize a new property set by copying the properties from the set specified in the scopeToCopy variable (in the current schemaGroupname) into the new property set.

initializeQualifiedPropertySet

public java.lang.String initializeQualifiedPropertySet()
Initialize a new property set by copying the properties from the set specified in the scopeToCopy variable into the new property set. This version expects scopeToCopy to be of the form .

copyPropertySet

protected java.lang.String copyPropertySet(java.lang.String scopeToCopyGroup,
                                           java.lang.String scopeToCopyName)
Helper method to copy the properties to the scope specified by scopeName and schemaGroupName from the scope specified by the paramaters.
Parameters:
scopeToCopyGroup - the group of the scope to copy from
scopeToCopyName - the name of the scope to copy from

getListOfScopes

public java.lang.String[] getListOfScopes()
Get a list of all scopes in the system. This just returns a list of property set names, without reference to their schemaGroupName
Returns:
a string array containing the names of the scopes

getQualifiedPropertySets

public java.lang.String[] getQualifiedPropertySets()
Get a list of all scopes in the system in the form .
Returns:
a string array containing the names of the scopes

getSchemaObject

public Schema getSchemaObject()
Returns:
the schema object named by the scopeName attribute

getSchemasForGroupName

public java.lang.String[] getSchemasForGroupName(java.lang.String groupName)
Get a list of schema names for the given schema group name
Parameters:
groupName - the schema group name to query
Returns:
a String array of schema names

getDefaultScopedPropertiesForUser

public java.util.Map getDefaultScopedPropertiesForUser(java.lang.String username)
Return a Map of properties in the default scope for the given user.
Parameters:
username - the username to query
Returns:
a Map of propertyMetaDatum->values

getDefaultScopedPropertiesForGroup

public java.util.Map getDefaultScopedPropertiesForGroup(java.lang.String groupname)
Return a Map of properties in the default scope for the given group.
Parameters:
groupname - the group to query
Returns:
a Map of propertyMetaDatum->values

getDynamicPropertiesForUser

public java.util.Map getDynamicPropertiesForUser(java.lang.String username)
Return a Map of dynamically defined properties for the given user.
Parameters:
username - the username to query
Returns:
a Map of propertyMetaDatum->values

getDynamicPropertiesForGroup

public java.util.Map getDynamicPropertiesForGroup(java.lang.String groupname)
Return a Map of dynamically defined properties for the given group.
Parameters:
groupname - the group to query
Returns:
a Map of propertyMetaDatum->values

isBlank

public boolean isBlank(java.lang.String input)
Returns:
true if the string is null, empty, or consists only of spaces

setScopeName

public void setScopeName(java.lang.String s)
Set the name of the PropertySet

getScopeName

public java.lang.String getScopeName()
Get the name of the PropertySet

setSchemaGroupName

public void setSchemaGroupName(java.lang.String s)
Set the name of the schema group

getSchemaGroupName

public java.lang.String getSchemaGroupName()
Get the name of the schema group

setDescription

public void setDescription(java.lang.String s)
Set a description of the PropertySet

getDescription

public java.lang.String getDescription()
Get a description of the PropertySet

setScopeToCopy

public void setScopeToCopy(java.lang.String s)
Set a scope to copy properties from

getScopeToCopy

public java.lang.String getScopeToCopy()
Get a scope to copy properties from

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved