|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 java.lang.String |
DEFAULT_RESOURCE_BUNDLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_ATTRIBUTE_DESCRIPTION
A description to a property is used in personalization dialogues (e.g.). |
static java.lang.String |
PROFILE_ATTRIBUTE_FINAL
Deprecated. Please use the PROFILE_ATTRIBUTE_INHERITANCE attribute instead. |
static java.lang.String |
PROFILE_ATTRIBUTE_INHERITANCE
Deprecated. Do not use |
static java.lang.String |
PROFILE_ATTRIBUTE_INHERITANCE_FINAL
Deprecated. Do not use |
static java.lang.String |
PROFILE_ATTRIBUTE_PERSONALIZABLE
Deprecated. Please use the PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead. |
static java.lang.String |
PROFILE_ATTRIBUTE_PERSONALIZATION
This attribute specifies personalization handling of a corresponding property. |
static java.lang.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 java.lang.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 java.lang.String |
PROFILE_ATTRIBUTE_TYPE
A type of an attribute can be any of the following values: |
static java.lang.String |
PROFILE_ATTRIBUTE_USERSPECIFIC
Deprecated. Please use the PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead. |
static java.lang.String |
PROFILE_ATTRIBUTE_VALUE
The actual value of a property |
static java.lang.String |
PROFILE_KEY_AUTHREQUIREMENT
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_CACHINGLEVEL
Key for caching level. |
static java.lang.String |
PROFILE_KEY_CLASSNAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_CODELINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_CONTENTLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_CONTENTTYPE
Specification of the mime type of the content provided by the Portal Component unless specified differently on . |
static java.lang.String |
PROFILE_KEY_DESCRIPTION
Key for the description of the component |
static java.lang.String |
PROFILE_KEY_DETAILLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_DEVICETYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_HEIGHT
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_HELPNAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_ISVISIBLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_JSP
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_LOCALMODEALLOWED
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_MINTIMETOLIVE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_PERSONALIZATIONBEHAVIOR
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_PERSONALIZATIONCLASS
Deprecated. Please use the mode delegation mechanism. |
static java.lang.String |
PROFILE_KEY_PERSONALIZATIONLINK
Contains a URL+ pointing to a page that allows to reach a specific enduser personalization dialog service. |
static java.lang.String |
PROFILE_KEY_PORTALCOMPONENTTYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_PREFERREDSIZE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_REQUIREISOLATION
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_RESOURCEBUNDLENAME
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.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 java.lang.String |
PROFILE_KEY_SHARINGACCESS
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_KEY_SHARINGREF
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_KEY_SUPPORTATTRIBUTES
Contains some attributes that helps to support the iView. |
static java.lang.String |
PROFILE_KEY_SUPPORTLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_SYSTEMPRIVILEGE
Deprecated. Do not use. |
static java.lang.String |
PROFILE_KEY_TITLE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_TRAYSTATE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_TRAYTYPE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_WIDTH
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_XSL
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_KEY_XSLLINK
Deprecated. Note: This property might not be accessible via IPortalComponentProfile constant in later versions. |
static java.lang.String |
PROFILE_PORTALCOMPONENTTYPE_JSP
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_PORTALCOMPONENTTYPE_JSPNATIVE
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_PORTALCOMPONENTTYPE_SERVLET
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_SHARING_SHARED
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
static java.lang.String |
PROFILE_SHARING_SYSTEM
Deprecated. Note: This property might not be accessible via IPortalComponentProfile in later versions. |
| Method Summary | |
java.util.Enumeration |
getAttributeNames()
Deprecated. For more consistency this method has been deprecated. The component should now use the getProperties method instead. |
java.lang.String |
getAttributeValue(java.lang.String key)
Deprecated. For more consistency this method has been deprecated. The component should now use the getProperty method instead. |
java.lang.String |
getClassName()
Deprecated. The information provided by this method should be obtained from if needed. |
java.lang.String |
getCodeLink()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getComponentName()
Deprecated. Please use the corresponding method on . |
java.lang.String |
getContentLink()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getContentType()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getDescription()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getDetailLink()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getDeviceType()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getHelpName()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getLocalDeploymentFolder()
Deprecated. Please use corresponding methods on or . |
java.lang.String |
getPersonalizationLink()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getProfileName()
Deprecated. Please use with the appropriate constant instead. |
java.util.Enumeration |
getProperties()
returns an Enumeration of the properties name. |
java.lang.String |
getProperty(java.lang.String key)
returns the string value corresponding to the key or null if this property is not defined.. |
java.lang.String |
getPropertyAttribute(java.lang.String propertyName,
java.lang.String attributeName)
Gets the value of an attribute. |
java.util.Enumeration |
getPropertyAttributes(java.lang.String propertyName)
Gets an enumeration of all attributes of the property |
IPropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyName)
Deprecated. The component should now use the getPropertyAttribute method instead. |
java.lang.String |
getResourceBundleName()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getSupportAttributes()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getSupportLink()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getTitle()
Deprecated. Please use with the appropriate constant instead. |
java.lang.Object |
getValue(java.lang.String name)
Deprecated. Please use the corresponding method on instead. |
java.lang.String |
getXSL()
Deprecated. Please use with the appropriate constant instead. |
java.lang.String |
getXSLLink()
Deprecated. Please use with the appropriate constant instead. |
boolean |
isPersonalizableProperty(java.lang.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(java.lang.String name,
java.lang.Object value)
Deprecated. Please use the corresponding method on instead. |
void |
removeValue(java.lang.String name)
Deprecated. Please use the corresponding method on instead. |
boolean |
requireIsolation()
Deprecated. Please use with the appropriate constant instead. |
void |
resetProperty(java.lang.String key)
Resets the value of the property to its default value. |
void |
setAttributeValue(java.lang.String key,
java.lang.String value)
Deprecated. For more consistency this method has been deprecated. The component should now use the setProperty method instead. |
void |
setProperty(java.lang.String key,
java.lang.String value)
sets the value of the property. |
void |
store()
Makes the PortalComponentProfile persistent |
| Field Detail |
public static final java.lang.String PROFILE_KEY_AUTHREQUIREMENT
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_CACHINGLEVEL
ICachablePortalComponentpublic static final java.lang.String PROFILE_KEY_CLASSNAME
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_CODELINK
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_CONTENTLINK
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_CONTENTTYPE
IPortalComponentResponse.public static final java.lang.String PROFILE_KEY_DESCRIPTION
public static final java.lang.String PROFILE_KEY_HEIGHT
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_JSP
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_LOCALMODEALLOWED
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_PERSONALIZATIONLINK
public static final java.lang.String PROFILE_KEY_PERSONALIZATIONBEHAVIOR
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_PERSONALIZATIONCLASS
public static final java.lang.String PROFILE_KEY_PORTALCOMPONENTTYPE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_PREFERREDSIZE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_RESOURCEBUNDLENAME
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_REQUIREISOLATION
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_SERVICESREF
IPortalComponentProfile in later versions.
Also, it is deprecated in meaning by the Application Packaging, since version 6.
public static final java.lang.String PROFILE_KEY_SHARINGACCESS
IPortalComponentProfile in later versions.
public static final java.lang.String PROFILE_KEY_SHARINGREF
IPortalComponentProfile in later versions.
public static final java.lang.String PROFILE_KEY_TITLE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_HELPNAME
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_ISVISIBLE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_XSL
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_DEVICETYPE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_DETAILLINK
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_SUPPORTLINK
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_SUPPORTATTRIBUTES
public static final java.lang.String PROFILE_KEY_SYSTEMPRIVILEGE
public static final java.lang.String PROFILE_KEY_TRAYSTATE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_TRAYTYPE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_WIDTH
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_XSLLINK
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_KEY_MINTIMETOLIVE
IPortalComponentProfile constant in later versions.
public static final java.lang.String PROFILE_ATTRIBUTE_TYPE
public static final java.lang.String PROFILE_ATTRIBUTE_VALUE
public static final java.lang.String PROFILE_ATTRIBUTE_DESCRIPTION
public static final java.lang.String PROFILE_ATTRIBUTE_PLAINDESCRIPTION
public static final java.lang.String PROFILE_ATTRIBUTE_PERSONALIZABLE
PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead.
public static final java.lang.String PROFILE_ATTRIBUTE_FINAL
PROFILE_ATTRIBUTE_INHERITANCE attribute instead.
public static final java.lang.String PROFILE_ATTRIBUTE_PERSONALIZATION
public static final java.lang.String PROFILE_ATTRIBUTE_USERSPECIFIC
PROFILE_ATTRIBUTE_PERSONALIZATION attribute instead.
public static final java.lang.String PROFILE_ATTRIBUTE_PERSONALIZATION_DIALOG
PROFILE_ATTRIBUTE_PERSONALIZATION has
this value, it means that the property should appear in shared
personalization dialogs.public static final java.lang.String PROFILE_ATTRIBUTE_INHERITANCE
public static final java.lang.String PROFILE_ATTRIBUTE_INHERITANCE_FINAL
public static final java.lang.String PROFILE_PORTALCOMPONENTTYPE_JSP
IPortalComponentProfile in later versions.
public static final java.lang.String PROFILE_PORTALCOMPONENTTYPE_JSPNATIVE
IPortalComponentProfile in later versions.
public static final java.lang.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.
}
}
public static final java.lang.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.public static final java.lang.String PROFILE_PORTALCOMPONENTTYPE_SERVLET
IPortalComponentProfile in later versions.
public static final java.lang.String DEFAULT_RESOURCE_BUNDLE
IPortalComponentProfile in later versions.
| Method Detail |
public java.util.Enumeration getProperties()
public java.lang.String getProperty(java.lang.String key)
key - the name of the propertypublic boolean isPersonalizableProperty(java.lang.String key)
key - the name of the property
public void setProperty(java.lang.String key,
java.lang.String value)
key - the name of the property.value - the value of the attribute.public void resetProperty(java.lang.String key)
key - the name of the property.public java.util.Enumeration getPropertyAttributes(java.lang.String propertyName)
propertyName - the name of the property
public java.lang.String getPropertyAttribute(java.lang.String propertyName,
java.lang.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
public void store()
throws PortalRuntimeException
PortalRuntimeException - if the profile can not be stored.public java.lang.String getComponentName()
IPortalComponentContext.
public java.lang.String getLocalDeploymentFolder()
IPortalComponentRequest or PortalRuntime.
public java.util.Enumeration getAttributeNames()
public java.lang.String getAttributeValue(java.lang.String key)
key - the name of the attributegetProperty(String)
public void setAttributeValue(java.lang.String key,
java.lang.String value)
key - the name of the attribute.value - the value of the attribute.setProperty(java.lang.String, java.lang.String)public java.lang.String getClassName()
IPortalComponentConfig if needed.
public IPropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
propertyName - getPropertyAttribute(String, String)public java.lang.String getCodeLink()
getProperty(String) with the appropriate constant instead.
public java.lang.String getResourceBundleName()
getProperty(String) with the appropriate constant instead.
public java.lang.String getHelpName()
getProperty(String) with the appropriate constant instead.
public java.lang.String getTitle()
getProperty(String) with the appropriate constant instead.
public java.lang.String getDescription()
getProperty(String) with the appropriate constant instead.
public boolean isVisible()
getProperty(String) with the appropriate constant instead.
public java.lang.String getContentLink()
getProperty(String) with the appropriate constant instead.
public java.lang.String getContentType()
getProperty(String) with the appropriate constant instead.
public java.lang.String getXSL()
getProperty(String) with the appropriate constant instead.
public java.lang.String getXSLLink()
getProperty(String) with the appropriate constant instead.
public boolean requireIsolation()
getProperty(String) with the appropriate constant instead.
public java.lang.String getDeviceType()
getProperty(String) with the appropriate constant instead.
public java.lang.String getPersonalizationLink()
getProperty(String) with the appropriate constant instead.
public java.lang.String getDetailLink()
getProperty(String) with the appropriate constant instead.
public java.lang.String getSupportLink()
getProperty(String) with the appropriate constant instead.
public java.lang.String getSupportAttributes()
getProperty(String) with the appropriate constant instead.
public java.lang.String getProfileName()
getProperty(String) with the appropriate constant instead.
public void removeValue(java.lang.String name)
IPortalComponentContext instead.
name - attribute name
public void putValue(java.lang.String name,
java.lang.Object value)
IPortalComponentContext instead.
name - the attribute name.value - the attribute value.public java.lang.Object getValue(java.lang.String name)
IPortalComponentContext instead.
name - the attribute name as a string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||