|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.control.util.AbstractPropertyRenderer
com.sapportals.wcm.control.util.PropertyRendererUser
public class PropertyRendererUser
The PropertyRendererUser is used to render properties of type USER
Copyright 2004 SAP AG
| Field Summary | |
|---|---|
static String |
EVENT_SELECT_USER
Deprecated. |
static Location |
log
Deprecated. |
| Constructor Summary | |
|---|---|
PropertyRendererUser()
Deprecated. As of NetWeaver 7.1 |
|
| Method Summary | |
|---|---|
static String |
getDisplayName(IPrincipal principal)
Deprecated. As of NetWeaver 7.1 |
static String |
getDisplayName(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Deprecated. As of NetWeaver 7.1, replaced by getDisplayName(com.sap.security.api.IPrincipal) |
IPropertyMap |
getProperties(IMetaName metaName,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
Deprecated. As of NetWeaver 7.1 |
static String |
getUserDisplayName(String userID)
Deprecated. As of NetWeaver 7.1 |
String[] |
processEvent(IMetaName metaName,
com.sapportals.htmlb.event.Event event,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderMetaProperty(IMetaName metaName,
IMetaContext rendererContext)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderProperty(IProperty property,
IResource res,
int maxLength)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderUser(IPrincipal principal)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderUser(IPrincipal principal,
int maxLength)
Deprecated. As of NetWeaver 7.1 |
com.sapportals.htmlb.Component |
renderUser(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
Deprecated. As of NetWeaver 7.1, replaced by renderUser(com.sap.security.api.IPrincipal) |
com.sapportals.htmlb.Component |
renderUser(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
int maxLength)
Deprecated. As of NetWeaver 7.1, replaced by renderUser(com.sap.security.api.IPrincipal,int) |
com.sapportals.htmlb.Component |
renderUser(String userID)
Deprecated. As of NetWeaver 7.1 |
static com.sapportals.htmlb.Component |
renderUserLink(String userID)
Deprecated. As of NetWeaver 7.1 |
| Methods inherited from class com.sapportals.wcm.control.util.AbstractPropertyRenderer |
|---|
getBundle, getCurrentMetaName, getLabeledComponent, getProperty, getPropertyTooltip, getPropertyType, getResourceContext, is508Required, isEditable, isEditable, renderMetaNameLabel, renderProperty, renderSpacing, set508Required, setCurrentMetaName, setDisplayMode, setResourceContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EVENT_SELECT_USER
public static Location log
| Constructor Detail |
|---|
public PropertyRendererUser()
| Method Detail |
|---|
public com.sapportals.htmlb.Component renderUser(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
renderUser(com.sap.security.api.IPrincipal)
principal -
public com.sapportals.htmlb.Component renderUser(IPrincipal principal)
principal -
public com.sapportals.htmlb.Component renderUser(com.sapportals.portal.security.usermanagement.IUMPrincipal principal,
int maxLength)
renderUser(com.sap.security.api.IPrincipal,int)
maxLength - max. Length of the userprincipal -
public com.sapportals.htmlb.Component renderUser(IPrincipal principal,
int maxLength)
maxLength - max. Length of the userprincipal -
public static com.sapportals.htmlb.Component renderUserLink(String userID)
userID - Description of the Parameter
public com.sapportals.htmlb.Component renderUser(String userID)
userID - Description of the Parameter
public com.sapportals.htmlb.Component renderProperty(IProperty property,
IResource res,
int maxLength)
renderProperty in interface IPropertyRendererrenderProperty in class AbstractPropertyRendererproperty - property to render containing a userID as stingres - a resource (not necessary here)maxLength - max. Length for the text
public static String getDisplayName(com.sapportals.portal.security.usermanagement.IUMPrincipal principal)
getDisplayName(com.sap.security.api.IPrincipal)
principal -
public static String getDisplayName(IPrincipal principal)
principal -
public static String getUserDisplayName(String userID)
public com.sapportals.htmlb.Component renderMetaProperty(IMetaName metaName,
IMetaContext rendererContext)
throws WcmException
AbstractPropertyRenderer
renderMetaProperty in interface IStructuredPropertyRendererrenderMetaProperty in class AbstractPropertyRenderermetaName - Description of the ParameterrendererContext - Description of the Parameter
WcmException - Description of the Exception
public IPropertyMap getProperties(IMetaName metaName,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
throws WcmException
IStructuredPropertyRendererComponent
from the DynPage, the the input value, and validate and create a IProperty for this
IMetaName. If the input value is invalid then it will created a IProperty with empty value
like it follows : IPropertyMap and it will be shown as invalid input.
The returned IPropertyMap could have one or more IProperty according
with the property renderer logic.
getProperties in interface IStructuredPropertyRenderergetProperties in class AbstractPropertyRenderermetaName - the given IMetaName for which the property will be createdrendererContext - - contains the rendering information: which IResourceContext,
IResource or PropertyDisplayModedynPage - htmlb dynpage that contains the response document
null is accepted
WcmException
public String[] processEvent(IMetaName metaName,
com.sapportals.htmlb.event.Event event,
IMetaContext rendererContext,
com.sapportals.htmlb.page.DynPage dynPage)
throws WcmException
IStructuredPropertyRendererEvent should be decode using rendererContext.getRendererProxy().decodeValues(event);
If the ArrayList is not empty then the first value from it is the action as String.
If the action is known by the renderer then the logic should be implemented
If something fails then one or more error messages should be returns as String array
processEvent in interface IStructuredPropertyRendererprocessEvent in class AbstractPropertyRenderermetaName - the given IMetaName for which the renderer is calledevent - the Event which has encoded the action and other value which will
be process by the rendererrendererContext - context information for the rendererdynPage - htmlb dynpage that contains the response document
- Returns:
- localized error messages or
null
- Throws:
WcmException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||