|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.BaseChannel
org.jasig.portal.channels.adminnav.provider.ListModel
@Deprecated public class ListModel
This channel provides a flat list of urls (links) to other channels using the channel functional names. When selected these links cause that channel to be rendered in focused mode. This implementation supports both static and dynamic registration. Dynamic registration takes place any time via calls to addLink(). The set of static links is defined in /properties/adminNav.xml. Their locale specific text is loaded from /properties/adminNav.properties or a suitable derivative for a specific locale. CHeader channel presents the "Channel Admin" link which brings this channel into focused mode when selected. That link will only render if this channel has registered links that point to channels for which the current user has authorization. Similarly, when this channel renders, it only presents those links to channels for which the current user has authorization. Localization of link labels is supported through instances of ILabelResolver passed in at link registration time.
| Field Summary |
|---|
| Fields inherited from class org.jasig.portal.channels.BaseChannel |
|---|
log, runtimeData, staticData |
| Fields inherited from interface org.jasig.portal.ICacheable |
|---|
CHANNEL_CACHE_KEY_INSTANCE_SCOPE, CHANNEL_CACHE_KEY_SCOPE_PARAM_NAME, CHANNEL_CACHE_KEY_SYSTEM_SCOPE |
| Constructor Summary | |
|---|---|
ListModel()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addLink(String fname,
String labelId,
ILabelResolver resolver,
Map parameters)
Deprecated. Add a link to the channel indicated by the passed in functional name to the list of links located in the admin navigation list. |
boolean |
canAccess(IAuthorizationPrincipal ap)
Deprecated. Returns true if the user represented by the passed-in authorization principal returns has access to any of the channels pointed to by registered links. |
ChannelCacheKey |
generateKey()
Deprecated. Return the reused cache key. |
boolean |
isCacheValid(Object validity)
Deprecated. The validity object used in our cache key is the locale used to generate the XML for the channel. |
void |
renderXML(ContentHandler out)
Deprecated. Render the links. |
void |
setRuntimeData(ChannelRuntimeData rd)
Deprecated. Checks to see if the rendering document needs to be updated for the user's locale. |
void |
setStaticData(ChannelStaticData sd)
Deprecated. Passes ChannelStaticData to the channel. |
| Methods inherited from class org.jasig.portal.channels.BaseChannel |
|---|
getRuntimeProperties, receiveEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.IChannel |
|---|
getRuntimeProperties, receiveEvent |
| Constructor Detail |
|---|
public ListModel()
| Method Detail |
|---|
public boolean canAccess(IAuthorizationPrincipal ap)
canAccess in interface INavigationModel
public void addLink(String fname,
String labelId,
ILabelResolver resolver,
Map parameters)
addLink in interface ILinkRegistrarfname - the functional name of a published channel. This must not be
null and must correspond to the functional name of an already
published channel.labelId - the test that should show in the UI for this link. This must
not be null.parameters - additional query parameter name/value pairs to be appended to
the URL if needed for the link. This value can be null if no
additional parameters are needed.public ChannelCacheKey generateKey()
generateKey in interface ICacheablepublic boolean isCacheValid(Object validity)
isCacheValid in interface ICacheable
public void setStaticData(ChannelStaticData sd)
throws PortalException
IChannel
setStaticData in interface IChannelsetStaticData in class BaseChannelsd - channel static data
PortalExceptionChannelStaticData
public void setRuntimeData(ChannelRuntimeData rd)
throws PortalException
setRuntimeData in interface IChannelsetRuntimeData in class BaseChannelrd - channel runtime data
PortalExceptionChannelRuntimeData
public void renderXML(ContentHandler out)
throws PortalException
renderXML in interface IChannelrenderXML in class BaseChannelout - stream that handles output
PortalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||