|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.iplanet.portalserver.providers.ProviderAdapter
|
+--com.iplanet.portalserver.providers.ProfileProviderAdapter
This class implements the
Provider interface and provides default
implementations for its methods using the iPS Profile Service.
In addition, this class provides several convenience routines for working with providers and the iPS Session and Profile services.
ProfileProviderAdapter uses the iPS
Profile service for its persistent store.
Classes that wish to implement a provider should extend
ProfileProviderAdapter and implement
Provider.
Unless otherwise noted, method descriptions are identical to those in
Provider
Provider| Constructor Summary | |
ProfileProviderAdapter()
|
|
| Method Summary | |
java.lang.String |
getBackgroundColor()
Get the background color for this provider. |
int |
getColumn()
Get the column in which this provider should be displayed in. |
java.lang.StringBuffer |
getContent(java.util.Map m)
This method has no effect. |
java.lang.String |
getDescription()
Get the description for this channel. |
java.lang.StringBuffer |
getEdit(java.util.Map m)
This method has no effect. |
int |
getEditType()
Get the edit form type of the provider. |
java.net.URL |
getHelp()
Get the help link for this provider. |
java.util.Vector |
getListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector def)
Get a list property for the provider. |
java.util.Vector |
getListProperty(java.lang.String key,
java.util.Vector def)
Get a list property for the provider. |
long |
getRefreshTime()
Get the refresh time for this provider, in seconds. |
java.util.ResourceBundle |
getResourceBundle(java.lang.String component)
Get the ResourceBundle based on User's locale. |
int |
getRow()
Get the row in which this provider should be displayed in. |
java.lang.String |
getStringProperty(java.lang.String key,
java.lang.String def)
Get a string property for the provider. |
java.lang.String |
getStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String def)
Get a string property for the provider. |
java.lang.String |
getTitle()
Get the title for this channel. |
int |
getWidth()
Get the width of this provider. |
boolean |
hasBorder()
Should this provider have a border drawn around it? The desktop calls this method when the front page is drawn. |
boolean |
hasFrame()
Should this provider have a window frame around it? A frame is defined as the "window" frame containing a title and channel controls that surround provider content. |
boolean |
hasHelp()
Determine if the provider has a help page associated with it. |
void |
init(java.lang.String n,
Session s)
Initialize the provider. |
boolean |
isAllowed(java.lang.String priv)
Check for access to the named privilege. |
boolean |
isAllowed(java.lang.String component,
java.lang.String privName)
Check for access to the named privilege. |
boolean |
isAllowed(java.lang.String priv,
java.lang.String value,
int match)
Check for access to the named privilege. |
boolean |
isAllowed(java.lang.String component,
java.lang.String privName,
java.lang.String value,
int match)
Check for access to the named privilege. |
boolean |
isDetachable()
Determine if the provider can be detached from the Desktop. |
boolean |
isDetached()
Determine if the provider is detached from the Desktop. |
boolean |
isEditable()
Determine if the provider has an edit page. |
boolean |
isMinimizable()
Determine if the provider can be minimized on the Desktop. |
boolean |
isMinimized()
Determine if the provider is minimized on the Desktop. |
boolean |
isMovable()
Determine if the user can move this channel around on the desktop This method is called by the desktop when the user attempts to change the layout to see if they are allowed to move said channels. |
boolean |
isRemovable()
Determine if the user can remove this provider from the desktop This method is called by the desktop when it draws the front page. |
void |
load()
Load properties from the profile store. |
void |
loadProperties(java.lang.String props)
Load properties into provider. |
java.net.URL |
processEdit(java.util.Map m)
This method has no effect. |
int |
setColumn(int column)
This method has no effect. |
boolean |
setDetached(boolean detached)
This method has no effect. |
java.util.Vector |
setListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector val)
Set a list property for the provider. |
java.util.Vector |
setListProperty(java.lang.String key,
java.util.Vector val)
Set a list property for the provider. |
java.util.Vector |
setLocalListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector val)
Set a list property for the provider. |
java.util.Vector |
setLocalListProperty(java.lang.String key,
java.util.Vector val)
Set a list property for the provider. |
java.lang.String |
setLocalStringProperty(java.lang.String key,
java.lang.String val)
Set a string property for the provider. |
java.lang.String |
setLocalStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String val)
Set a string property for the provider. |
boolean |
setMinimized(boolean minimized)
This method has no effect. |
int |
setRow(int row)
This method has no effect. |
java.lang.String |
setStringProperty(java.lang.String key,
java.lang.String val)
Set a string property for the provider. |
java.lang.String |
setStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String val)
Set a string property for the provider. |
void |
store()
Store properties to the profile store. |
| Methods inherited from class com.iplanet.portalserver.providers.ProviderAdapter |
getContent,
getEdit,
getName,
getSession,
isPresentable,
processEdit |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ProfileProviderAdapter()
| Method Detail |
public void init(java.lang.String n,
Session s)
throws ProviderException
init() call
must always have super.init() as the first statement
executed.
This method calls the provider's load() method.
n - The unique indentifying name for this provider.s - The user's session.Provider.init(java.lang.String, com.iplanet.portalserver.session.Session)
public java.lang.StringBuffer getContent(java.util.Map m)
throws ProviderException
Provider.getContent(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public java.lang.StringBuffer getEdit(java.util.Map m)
throws ProviderException
Provider.getEdit(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public int getEditType()
throws UnknownEditTypeException
.getEdit().Provider.getEditType()
public java.net.URL processEdit(java.util.Map m)
throws ProviderException
Provider.processEdit(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public java.lang.String getStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String def)
component - The profile component which this property belongs
to.key - The key for the property to be returned.default - The default value to be returned if the property
does not exist.
public java.lang.String getStringProperty(java.lang.String key,
java.lang.String def)
key - The key for the property to be returned.default - The default value to be returned if the property
does not exist.
public java.util.Vector getListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector def)
component - The profile component which this property belongs
to.key - The key for the property to be returned.default - The default value to be returned if the property
does not exist.
public java.util.Vector getListProperty(java.lang.String key,
java.util.Vector def)
key - The key for the property to be returned.default - The default value to be returned if the property
does not exist.public boolean isAllowed(java.lang.String priv)
priv - The privilege to check.true if the user is granted access by the named
privilege, otherwise false.
public boolean isAllowed(java.lang.String component,
java.lang.String privName)
component - The profile component where the privilege lives.priv - The privilege to check.true if the user is granted access by the named
privilege, otherwise false.
public boolean isAllowed(java.lang.String priv,
java.lang.String value,
int match)
priv - The privilege to check.value - The privilege value.match - Profile.REGULAR, Profile.SUFFIX, or Profile.PREFIXtrue if the user is granted access by the named
privilege, otherwise false.Profile.isAllowed
public boolean isAllowed(java.lang.String component,
java.lang.String privName,
java.lang.String value,
int match)
component - The profile component where the privilege lives.priv - The privilege to check.value - The privilege value.match - Profile.REGULAR, Profile.SUFFIX, or Profile.PREFIXtrue if the user is granted access by the named
privilege, otherwise false.Profile.isAllowed
public java.lang.String setStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.lang.String setLocalStringProperty(java.lang.String component,
java.lang.String key,
java.lang.String val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.lang.String setStringProperty(java.lang.String key,
java.lang.String val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.lang.String setLocalStringProperty(java.lang.String key,
java.lang.String val)
key - The key for the property to be set.val - The value for the propery to be set.
public java.util.Vector setListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.util.Vector setLocalListProperty(java.lang.String component,
java.lang.String key,
java.util.Vector val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.util.Vector setListProperty(java.lang.String key,
java.util.Vector val)
component - The profile component where this string should be set.key - The key for the property to be set.val - The value for the propery to be set.
public java.util.Vector setLocalListProperty(java.lang.String key,
java.util.Vector val)
key - The key for the property to be set.val - The value for the propery to be set.
public void loadProperties(java.lang.String props)
throws LoadPropertiesException
load() is called, only the properties
for the provider are loaded. If you wish to load properties
that live in other components, you must manually load them with this
method.props - A wildcard string specifying the properties to load.
e.g., "iwtUser*", "iwtUser-IMAPServerName", "iwtDesktop-type"public boolean isEditable()
Provider.isEditable(),
Provider.isPresentable()public boolean hasHelp()
Provider.hasHelp()public boolean hasBorder()
Provider.hasBorder()public boolean hasFrame()
Provider.hasFrame()public boolean isDetachable()
Provider.isDetachable()public boolean isMinimizable()
true from this method, then it must
persistently store the detached state.
This method is called by the desktop when it draws the front page.Provider.isMinimizable()public boolean isRemovable()
Provider.isRemovable()public boolean isMovable()
Provider.isMovable()public java.lang.String getTitle()
getResourceBundle(getName())
and asking for the "title" resource from the returned resource bundle.
If this lookup fails
(there is no resource bundle associated with the channel, or there is
no "title" resource in the bundle) then the title is read from the
-title
attribute in the channel's profile component.Provider.getTitle(),
getResourceBundle(java.lang.String)public int getColumn()
Provider.getColumn()public int getRow()
Provider.getRow()public java.net.URL getHelp()
Provider.getHelp()public int setColumn(int column)
Provider.setColumn(int)public int setRow(int row)
Provider.setRow(int)public java.lang.String getDescription()
getResourceBundle(getName())
and asking for the "description" resource
from the returned resource bundle.
If this lookup fails
(there is no resource bundle associated with the channel, or there is
no "description" resource in the bundle) then the description of the
channel's profile component is used.Provider.getDescription(),
getResourceBundle(java.lang.String)public int getWidth()
Provider.getWidth()public boolean isDetached()
true from the isDetachable()
method, then is must then persistently store the detached
state.
The desktop calls this method when the front page is drawn.
Provider.isDetached()public boolean setDetached(boolean detached)
Provider.setDetached(boolean)public boolean isMinimized()
true from isMinimizable(), it must then
persistently store the minimized state.
The desktop calls this method when the front page is drawn.Provider.isMinimized()public boolean setMinimized(boolean minimized)
Provider.setMinimized(boolean)
public void store()
throws ProviderException
set- methods are stored.
All properties that have been loaded are effected by this.
By default, only the properties for the provider are loaded, but
additional properties may have been loaded via the
loadProperties method.Provider.load(),
loadProperties(java.lang.String),
setListProperty(java.lang.String, java.lang.String, java.util.Vector),
setStringProperty(java.lang.String, java.lang.String, java.lang.String),
Provider.store()
public void load()
throws ProviderException
loadProperties.Provider.load(),
loadProperties(java.lang.String)public long getRefreshTime()
If provider content is expected to change very infrequently, this method can return some value so that the provider's content is not fetched every time the front page is drawn, thereby saving significant processing time.
Provider.getRefreshTime()public java.lang.String getBackgroundColor()
Provider.getBackgroundColor()public java.util.ResourceBundle getResourceBundle(java.lang.String component)
component - ResourceBundle name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||