org.apache.jetspeed.om.page.impl
Class LinkImpl

java.lang.Object
  extended by org.apache.jetspeed.om.page.impl.BaseElementImpl
      extended by org.apache.jetspeed.page.document.impl.NodeImpl
          extended by org.apache.jetspeed.page.document.impl.DocumentImpl
              extended by org.apache.jetspeed.om.page.impl.LinkImpl
All Implemented Interfaces:
SecuredResource, BaseElement, Document, Link, Node

public class LinkImpl
extends DocumentImpl
implements Link

LinkImpl

Version:
$Id$
Author:
Randy Watler

Field Summary
 
Fields inherited from interface org.apache.jetspeed.om.page.Link
DOCUMENT_TYPE
 
Fields inherited from interface org.apache.jetspeed.page.document.Node
PATH_SEPARATOR, PATH_SEPARATOR_CHAR
 
Constructor Summary
LinkImpl()
           
 
Method Summary
 java.lang.String getSkin()
          Returns the name of the skin associated to this link
 java.lang.String getTarget()
           
 java.lang.String getType()
           getType
 java.lang.String getUrl()
           getUrl
 boolean grantViewActionAccess()
          grantViewActionAccess
 PageMetadataImpl newPageMetadata(java.util.Collection fields)
          newPageMetadata Construct page manager specific metadata implementation.
 void setSkin(java.lang.String skin)
          Defines the skin for this link.
 void setTarget(java.lang.String target)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class org.apache.jetspeed.page.document.impl.DocumentImpl
getTitle, getVersion, isDirty, setDirty, setVersion
 
Methods inherited from class org.apache.jetspeed.page.document.impl.NodeImpl
checkConstraints, checkPermissions, defaultTitleFromName, getCanonicalNodePath, getEffectivePageSecurity, getLogicalPermissionPath, getMetadata, getName, getPageMetadata, getParent, getPath, getPhysicalPermissionPath, getShortTitle, getTitle, isHidden, setHidden, setName, setParent, setPath
 
Methods inherited from class org.apache.jetspeed.om.page.impl.BaseElementImpl
checkAccess, checkConstraints, checkPermissions, checkPermissions, equals, getConstraintsEnabled, getId, getPermissionsEnabled, getSecurityConstraints, getShortTitle, hashCode, newSecurityConstraint, newSecurityConstraints, resetCachedSecurityConstraints, setConstraintsEnabled, setPermissionsEnabled, setSecurityConstraints, setShortTitle, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.page.Document
getVersion, isDirty, setDirty, setVersion
 
Methods inherited from interface org.apache.jetspeed.page.document.Node
getMetadata, getName, getParent, getPath, getShortTitle, getTitle, isHidden, setHidden, setParent, setPath
 
Methods inherited from interface org.apache.jetspeed.om.page.BaseElement
getId, getShortTitle, getTitle, setShortTitle, setTitle
 
Methods inherited from interface org.apache.jetspeed.om.common.SecuredResource
checkAccess, checkConstraints, checkPermissions, getConstraintsEnabled, getPermissionsEnabled, getSecurityConstraints, newSecurityConstraint, newSecurityConstraints, setSecurityConstraints
 

Constructor Detail

LinkImpl

public LinkImpl()
Method Detail

newPageMetadata

public PageMetadataImpl newPageMetadata(java.util.Collection fields)
Description copied from class: NodeImpl
newPageMetadata Construct page manager specific metadata implementation.

Overrides:
newPageMetadata in class NodeImpl
Parameters:
fields - mutable fields collection
Returns:
page metadata

grantViewActionAccess

public boolean grantViewActionAccess()
Description copied from class: BaseElementImpl
grantViewActionAccess

Overrides:
grantViewActionAccess in class BaseElementImpl
Returns:
granted access for view action

getUrl

public java.lang.String getUrl()
Description copied from interface: Node

getUrl

Specified by:
getUrl in interface Node
Overrides:
getUrl in class NodeImpl
Returns:

setUrl

public void setUrl(java.lang.String url)
Specified by:
setUrl in interface Link
Parameters:
url - The url to set.

getSkin

public java.lang.String getSkin()
Description copied from interface: Link
Returns the name of the skin associated to this link

Specified by:
getSkin in interface Link

setSkin

public void setSkin(java.lang.String skin)
Description copied from interface: Link
Defines the skin for this link. This skin should be known by the portal.

Specified by:
setSkin in interface Link
Parameters:
skin - the name of the new skin applied to this link

getTarget

public java.lang.String getTarget()
Specified by:
getTarget in interface Link
Returns:
Returns the target.

setTarget

public void setTarget(java.lang.String target)
Specified by:
setTarget in interface Link
Parameters:
target - The target to set.

getType

public java.lang.String getType()
Description copied from interface: Node

getType

Specified by:
getType in interface Node
Specified by:
getType in class NodeImpl
Returns:


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.