|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortalComponentProfile
The IPortalComponentProfile represents a set of properties that are attached to a component.
The current component profile is available within the component context provided by the IPortalComponentRequest interface.
Example:
public void doContent(IPortalComponentRequest request, IPortalComponentResponse
response) ...
{
IPortalComponentProfile profile =
request.getComponentContext().getProfile();
...
String country = profile.getProperty("Country");
String levelString =
profile.getProperty(IPortalComponentProfile.PROFILE_KEY_CACHINGLEVEL);
...
}
IPortalComponentRequest,
IPortalComponentContext| Field Summary | |
|---|---|
static String |
DEFAULT_RESOURCE_BUNDLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_ATTRIBUTE_DESCRIPTION
A description to a property is used in personalization dialogues (e.g.). |
static String |
PROFILE_ATTRIBUTE_FINAL
Deprecated. Please use the PROFILE_ATTRIBUTE_INHERITANCE attribute instead. |
static String |
PROFILE_ATTRIBUTE_INHERITANCE
Deprecated. Do not use |
static String |
PROFILE_ATTRIBUTE_INHERITANCE_FINAL
Deprecated. Do not use |
static String |
PROFILE_ATTRIBUTE_PERSONALIZABLE
Deprecated. Please use the PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead. |
static String |
PROFILE_ATTRIBUTE_PERSONALIZATION
This attribute specifies personalization handling of a corresponding property. |
static String |
PROFILE_ATTRIBUTE_PERSONALIZATION_DIALOG
If the property attribute PROFILE_ATTRIBUTE_PERSONALIZATION has
this value, it means that the property should appear in shared
personalization dialogs. |
static String |
PROFILE_ATTRIBUTE_PLAINDESCRIPTION
A plain description of a property is a non-translated textual description used in personalization dialogues, if no other description is available |
static String |
PROFILE_ATTRIBUTE_TYPE
A type of an attribute can be any of the following values: |
static String |
PROFILE_ATTRIBUTE_USERSPECIFIC
Deprecated. Please use the PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead. |
static String |
PROFILE_ATTRIBUTE_VALUE
The actual value of a property |
static String |
PROFILE_KEY_AUTHREQUIREMENT
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_CACHINGLEVEL
Key for caching level. |
static String |
PROFILE_KEY_CLASSNAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_CODELINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_CONTENTLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_CONTENTTYPE
Specification of the mime type of the content provided by the Portal Component unless specified differently on . |
static String |
PROFILE_KEY_DESCRIPTION
Key for the description of the component |
static String |
PROFILE_KEY_DETAILLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_DEVICETYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_HEIGHT
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_HELPNAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_ISVISIBLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_JSP
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_LOCALMODEALLOWED
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_MINTIMETOLIVE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_PERSONALIZATIONBEHAVIOR
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_PERSONALIZATIONCLASS
Deprecated. Please use the mode delegation mechanism. |
static String |
PROFILE_KEY_PERSONALIZATIONLINK
Contains a URL+ pointing to a page that allows to reach a specific enduser personalization dialog service. |
static String |
PROFILE_KEY_PORTALCOMPONENTTYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_PREFERREDSIZE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_REQUIREISOLATION
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_RESOURCEBUNDLENAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_SERVICESREF
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions.
Also, it is deprecated in meaning by the Application Packaging, since version 6. |
static String |
PROFILE_KEY_SHARINGACCESS
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_KEY_SHARINGREF
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_KEY_SUPPORTATTRIBUTES
Contains some attributes that helps to support the iView. |
static String |
PROFILE_KEY_SUPPORTLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_SYSTEMPRIVILEGE
Deprecated. Do not use. |
static String |
PROFILE_KEY_TITLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_TRAYSTATE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_TRAYTYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_WIDTH
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_XSL
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_KEY_XSLLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static String |
PROFILE_PORTALCOMPONENTTYPE_JSP
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_PORTALCOMPONENTTYPE_JSPNATIVE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_PORTALCOMPONENTTYPE_SERVLET
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_SHARING_SHARED
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static String |
PROFILE_SHARING_SYSTEM
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
| Method Summary | |
|---|---|
Enumeration |
getAttributeNames()
Deprecated. For more consistency this method has been deprecated. The component should now use the getProperties method instead. |
String |
getAttributeValue(String key)
Deprecated. For more consistency this method has been deprecated. The component should now use the getProperty method instead. |
String |
getClassName()
Deprecated. The information provided by this method should be obtained from if needed. |
String |
getCodeLink()
Deprecated. Please use with the appropriate constant instead. |
String |
getComponentName()
Deprecated. Please use the corresponding method on . |
String |
getContentLink()
Deprecated. Please use with the appropriate constant instead. |
String |
getContentType()
Deprecated. Please use with the appropriate constant instead. |
String |
getDescription()
Deprecated. Please use with the appropriate constant instead. |
String |
getDetailLink()
Deprecated. Please use with the appropriate constant instead. |
String |
getDeviceType()
Deprecated. Please use with the appropriate constant instead. |
String |
getHelpName()
Deprecated. Please use with the appropriate constant instead. |
String |
getLocalDeploymentFolder()
Deprecated. Please use corresponding methods on or . |
String |
getPersonalizationLink()
Deprecated. Please use with the appropriate constant instead. |
String |
getProfileName()
Deprecated. Please use with the appropriate constant instead. |
Enumeration |
getProperties()
returns an Enumeration of the properties name. |
String |
getProperty(String key)
returns the string value corresponding to the key or null if this property is not defined.. |
String |
getPropertyAttribute(String propertyName,
String attributeName)
Gets the value of an attribute. |
Enumeration |
getPropertyAttributes(String propertyName)
Gets an enumeration of all attributes of the property |
IPropertyDescriptor |
getPropertyDescriptor(String propertyName)
Deprecated. The component should now use the getPropertyAttribute method instead. |
String |
getResourceBundleName()
Deprecated. Please use with the appropriate constant instead. |
String |
getSupportAttributes()
Deprecated. Please use with the appropriate constant instead. |
String |
getSupportLink()
Deprecated. Please use with the appropriate constant instead. |
String |
getTitle()
Deprecated. Please use with the appropriate constant instead. |
Object |
getValue(String name)
Deprecated. Please use the corresponding method on instead. |
String |
getXSL()
Deprecated. Please use with the appropriate constant instead. |
String |
getXSLLink()
Deprecated. Please use with the appropriate constant instead. |
boolean |
isPersonalizableProperty(String key)
returns true if the Property can be customized by the user. |
boolean |
isVisible()
Deprecated. Please use with the appropriate constant instead. |
void |
putValue(String name,
Object value)
Deprecated. Please use the corresponding method on instead. |
void |
removeValue(String name)
Deprecated. Please use the corresponding method on instead. |
boolean |
requireIsolation()
Deprecated. Please use with the appropriate constant instead. |
void |
resetProperty(String key)
Resets the value of the property to its default value. |
void |
setAttributeValue(String key,
String value)
Deprecated. For more consistency this method has been deprecated. The component should now use the setProperty method instead. |
void |
setProperty(String key,
String value)
sets the value of the property. |
void |
store()
Makes the PortalComponentProfile persistent |
| Field Detail |
|---|
static final String PROFILE_KEY_AUTHREQUIREMENT
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_CACHINGLEVEL
ICachablePortalComponent,
Constant Field Valuesstatic final String PROFILE_KEY_CLASSNAME
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_CODELINK
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_CONTENTLINK
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_CONTENTTYPE
IPortalComponentResponse.
static final String PROFILE_KEY_DESCRIPTION
static final String PROFILE_KEY_HEIGHT
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_JSP
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_LOCALMODEALLOWED
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_PERSONALIZATIONLINK
static final String PROFILE_KEY_PERSONALIZATIONBEHAVIOR
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_PERSONALIZATIONCLASS
static final String PROFILE_KEY_PORTALCOMPONENTTYPE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_PREFERREDSIZE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_RESOURCEBUNDLENAME
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_REQUIREISOLATION
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_SERVICESREF
IPortalComponentProfile in later versions.
Also, it is deprecated in meaning by the Application Packaging, since version 6.
static final String PROFILE_KEY_SHARINGACCESS
IPortalComponentProfile in later versions.
static final String PROFILE_KEY_SHARINGREF
IPortalComponentProfile in later versions.
static final String PROFILE_KEY_TITLE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_HELPNAME
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_ISVISIBLE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_XSL
IPortalComponentProfile constant in later versions.static final String PROFILE_KEY_DEVICETYPE
IPortalComponentProfile constant in later versions.static final String PROFILE_KEY_DETAILLINK
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_SUPPORTLINK
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_SUPPORTATTRIBUTES
static final String PROFILE_KEY_SYSTEMPRIVILEGE
static final String PROFILE_KEY_TRAYSTATE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_TRAYTYPE
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_WIDTH
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_XSLLINK
IPortalComponentProfile constant in later versions.
static final String PROFILE_KEY_MINTIMETOLIVE
IPortalComponentProfile constant in later versions.
static final String PROFILE_ATTRIBUTE_TYPE
static final String PROFILE_ATTRIBUTE_VALUE
static final String PROFILE_ATTRIBUTE_DESCRIPTION
static final String PROFILE_ATTRIBUTE_PLAINDESCRIPTION
static final String PROFILE_ATTRIBUTE_PERSONALIZABLE
PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead.
static final String PROFILE_ATTRIBUTE_FINAL
PROFILE_ATTRIBUTE_INHERITANCE attribute instead.
static final String PROFILE_ATTRIBUTE_PERSONALIZATION
static final String PROFILE_ATTRIBUTE_USERSPECIFIC
PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead.
static final String PROFILE_ATTRIBUTE_PERSONALIZATION_DIALOG
PROFILE_ATTRIBUTE_PERSONALIZATION has
this value, it means that the property should appear in shared
personalization dialogs.
static final String PROFILE_ATTRIBUTE_INHERITANCE
static final String PROFILE_ATTRIBUTE_INHERITANCE_FINAL
static final String PROFILE_PORTALCOMPONENTTYPE_JSP
IPortalComponentProfile in later versions.
static final String PROFILE_PORTALCOMPONENTTYPE_JSPNATIVE
IPortalComponentProfile in later versions.
static final String PROFILE_SHARING_SYSTEM
IPortalComponentProfile in later versions.
public void doContent(IPortalComponentRequest request, IPortalComponentResponse
response) ...
{
IPortalComponentProfile profile =
request.getComponentContext().getProfile();
...
String parentGroup =
profile.getProperty(IPortalComponentProfile.PROFILE_KEY_SHARINGREF);
if
parentGroup.equals(IPortalComponentProfile.PROFILE_SHARING_SYSTEM)
{
// This component has access to the core libraries.
}
}
static final String PROFILE_SHARING_SHARED
IPortalComponentProfile in later versions.
public void doContent(IPortalComponentRequest request, IPortalComponentResponse
response) ...
{
IPortalComponentProfile profile =
request.getComponentContext().getProfile();
...
String parentGroup =
profile.getProperty(IPortalComponentProfile.PROFILE_KEY_SHARINGACCESS);
if
parentGroup.equals(IPortalComponentProfile.PROFILE_SHARING_SHARED)
{
// This component allows others to be dependant
}
}
Allows other component to be dependent.
static final String PROFILE_PORTALCOMPONENTTYPE_SERVLET
IPortalComponentProfile in later versions.
static final String DEFAULT_RESOURCE_BUNDLE
IPortalComponentProfile in later versions.| Method Detail |
|---|
Enumeration getProperties()
String getProperty(String key)
key - the name of the property
boolean isPersonalizableProperty(String key)
key - the name of the property
void setProperty(String key,
String value)
key - the name of the property.value - the value of the attribute.void resetProperty(String key)
key - the name of the property.Enumeration getPropertyAttributes(String propertyName)
propertyName - the name of the property
String getPropertyAttribute(String propertyName,
String attributeName)
propertyName - the name of the propertyattributeName - the name of the attributePROFILE_ATTRIBUTE_TYPE,
PROFILE_ATTRIBUTE_DESCRIPTION,
PROFILE_ATTRIBUTE_PLAINDESCRIPTION,
PROFILE_ATTRIBUTE_FINAL,
PROFILE_ATTRIBUTE_PERSONALIZABLE,
PROFILE_ATTRIBUTE_VALUE
void store()
throws PortalRuntimeException
PortalRuntimeException - if the profile can not be stored.String getComponentName()
IPortalComponentContext.
String getLocalDeploymentFolder()
IPortalComponentRequest or PortalRuntime.
Enumeration getAttributeNames()
String getAttributeValue(String key)
key - the name of the attribute
getProperty(String)
void setAttributeValue(String key,
String value)
key - the name of the attribute.value - the value of the attribute.setProperty(java.lang.String, java.lang.String)String getClassName()
IPortalComponentConfig if needed.
IPropertyDescriptor getPropertyDescriptor(String propertyName)
propertyName - getPropertyAttribute(String, String)String getCodeLink()
getProperty(String) with the appropriate constant instead.
String getResourceBundleName()
getProperty(String) with the appropriate constant instead.
String getHelpName()
getProperty(String) with the appropriate constant instead.
String getTitle()
getProperty(String) with the appropriate constant instead.
String getDescription()
getProperty(String) with the appropriate constant instead.
boolean isVisible()
getProperty(String) with the appropriate constant instead.
String getContentLink()
getProperty(String) with the appropriate constant instead.
String getContentType()
getProperty(String) with the appropriate constant instead.
String getXSL()
getProperty(String) with the appropriate constant instead.
String getXSLLink()
getProperty(String) with the appropriate constant instead.
boolean requireIsolation()
getProperty(String) with the appropriate constant instead.
String getDeviceType()
getProperty(String) with the appropriate constant instead.
String getPersonalizationLink()
getProperty(String) with the appropriate constant instead.
String getDetailLink()
getProperty(String) with the appropriate constant instead.
String getSupportLink()
getProperty(String) with the appropriate constant instead.
String getSupportAttributes()
getProperty(String) with the appropriate constant instead.
String getProfileName()
getProperty(String) with the appropriate constant instead.
void removeValue(String name)
IPortalComponentContext instead.
name - attribute name
void putValue(String name,
Object value)
IPortalComponentContext instead.
name - the attribute name.value - the attribute value.Object getValue(String name)
IPortalComponentContext instead.
name - the attribute name as a string
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||