BEA Systems, Inc.

com.beasys.commerce.user.jsp.tags
Class RemovePropertyTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.beasys.commerce.user.jsp.tags.UserManagerTag
              |
              +--com.beasys.commerce.user.jsp.tags.PropertyTag
                    |
                    +--com.beasys.commerce.user.jsp.tags.RemovePropertyTag
All Implemented Interfaces:
SchemaManagerConstants, java.io.Serializable, javax.servlet.jsp.tagext.Tag, UserManagementConstants, UserManagerTagConstants

public class RemovePropertyTag
extends PropertyTag

Corresponds to <um:removeProperty>.

The <um:removeProperty> tag removes the specified property from the current session's profile or from the Anonymous User Profile. The tag has no enclosed body. Subsequent calls to <um:getProperty> for a removed property would result in the default value for the property as prescribed by the property set, or from the profile's successor.

Tag Attribute

Required

Type

Description

propertySet

no

String

The Property Set from which the property's value is to be retrieved.

Example: "Demo Portal".

Note: The property is removed from the profile's default (unscoped) properties if no property set is provided.

propertyName

yes

String

The name of the property to be removed.

Example: "backgroud_color".

See Also:
Serialized Form

Fields inherited from class com.beasys.commerce.user.jsp.tags.UserManagerTag
printStackTraces, verbose
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.beasys.commerce.user.jsp.tags.UserManagerTagConstants
ADD_GROUP_FAILED, ADD_GROUP_OK, ADD_USER_FAILED, ADD_USER_OK, CREATE_GROUP_FAILED, CREATE_GROUP_OK, CREATE_USER_FAILED, CREATE_USER_OK, DEFAULT_SEARCH_EXP, DEFAULT_USER_LIMIT, GET_PROFILE_FAILED, GET_PROFILE_OK, GROUP_CHANGE_FAILED, GROUP_CHANGE_OK, GROUP_EXISTS, LOGIN_ERROR, LOGIN_FAILED, LOGIN_OK, NO_SUCH_PROFILE, NO_SUCH_SUCCESSOR, PROFILE_SUCCESSOR_UID, PROFILE_USER_UID, REMOVE_GROUP_FAILED, REMOVE_GROUP_OK, REMOVE_USER_FAILED, REMOVE_USER_OK, RESERVED_GROUP_NAME, RESERVED_USER_NAME, SERVLET_AUTHENTICATION, SET_PASSWORD_FAILED,
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
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
RemovePropertyTag()
           
 
Method Summary
 int doStartTag()
          Remove the specified property from the current profile.
protected  ConfigurableEntity getEntity(java.lang.String typeName, java.lang.String key)
          Go through the DirectPropertyManager to get the entity specified by the given key and typeName
protected  ConfigurableEntity getProfile()
          Get the profile specified by profileKey
 
Methods inherited from class com.beasys.commerce.user.jsp.tags.PropertyTag
getAnonymousProfile, getCachedProfile, getPropertyName, getPropertySet, release, setPropertyName, setPropertySet
 
Methods inherited from class com.beasys.commerce.user.jsp.tags.UserManagerTag
getUserManager
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemovePropertyTag

public RemovePropertyTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Remove the specified property from the current profile.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport

getProfile

protected ConfigurableEntity getProfile()
                                 throws javax.servlet.jsp.JspException
Get the profile specified by profileKey

getEntity

protected ConfigurableEntity getEntity(java.lang.String typeName,
                                       java.lang.String key)
                                throws java.lang.Exception
Go through the DirectPropertyManager to get the entity specified by the given key and typeName

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved