net.sourceforge.blogentis.plugins.base
Class AbstractNavigationExtension.AbstractLink

java.lang.Object
  extended bynet.sourceforge.blogentis.plugins.base.AbstractNavigationExtension.AbstractLink
All Implemented Interfaces:
ILinkTo
Direct Known Subclasses:
AbstractNavigationExtension.LinkToTemplate, UserNavigationExtension.EditPost, UserNavigationExtension.LogInOut
Enclosing class:
AbstractNavigationExtension

protected abstract static class AbstractNavigationExtension.AbstractLink
extends java.lang.Object
implements ILinkTo


Field Summary
protected  AbstractNavigationExtension.Authenticator au
           
protected  java.lang.String label
           
 
Constructor Summary
AbstractNavigationExtension.AbstractLink(java.lang.String name, AbstractNavigationExtension.Authenticator a)
           
 
Method Summary
 java.lang.String getLabel()
          Get this links label.
 boolean isAuthorized(BlogRunData data)
          Check if this links target is accessible with the current requests credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.blogentis.plugins.base.ILinkTo
getLink, isCurrentPage
 

Field Detail

au

protected AbstractNavigationExtension.Authenticator au

label

protected java.lang.String label
Constructor Detail

AbstractNavigationExtension.AbstractLink

public AbstractNavigationExtension.AbstractLink(java.lang.String name,
                                                AbstractNavigationExtension.Authenticator a)
Method Detail

getLabel

public java.lang.String getLabel()
Description copied from interface: ILinkTo
Get this links label. TODO: provide i18n support?

Specified by:
getLabel in interface ILinkTo
Returns:
the label for this link.

isAuthorized

public boolean isAuthorized(BlogRunData data)
Description copied from interface: ILinkTo
Check if this links target is accessible with the current requests credentials.

Specified by:
isAuthorized in interface ILinkTo
Parameters:
data - The current request
Returns:
true if the target page is viewable with the current credentials.


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.