SAP NetWeaver '04

com.sapportals.wcm.repository
Interface IInternalLinkResource

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.framework_api.jar]
public interface IInternalLinkResource

Extended interface for internal link resources.

Two types of links are supported:

1) static links behave like symbolic links in POSIX: there is no live connection to the link target, links may be relative and may point to non-existing targets.

2) dynamic links can only be created for an existing target resource, and "follow" this target resource automatically upon MOVE/RENAME, and disappear when the target is deleted or moved to a different target repository. Note that in general, dynamic links do not work across repository boundaries.

Copyright (c) SAP AG 2002-2004


Method Summary
 IResource getTargetResource()
          Gets the link target.
 RID getTargetRID()
          Gets the link target.
 boolean isDynamic()
           
 boolean isPermanent()
           
 void setTargetRID(RID target)
          Sets the link target.
 

Method Detail

getTargetResource

public IResource getTargetResource()
                            throws ResourceException
Gets the link target.

Note: this information may be non-live.

Returns:
the link target resource (or null when it does not exist)
Throws:
ResourceException - Exception raised in failure situation

getTargetRID

public RID getTargetRID()
                 throws ResourceException
Gets the link target.

Note: this information may be non-live.

Returns:
the RID of the link target (or null when it does not exist)
Throws:
ResourceException - Exception raised in failure situation

setTargetRID

public void setTargetRID(RID target)
                  throws ResourceException
Sets the link target.
Parameters:
target - targetRID to be set
Throws:
ResourceException - Exception raised in failure situation

isDynamic

public boolean isDynamic()
                  throws ResourceException
Returns:
whether the link is dynamic or static
Throws:
ResourceException - Exception raised in failure situation

isPermanent

public boolean isPermanent()
                    throws ResourceException
Returns:
whether the redirection is permanent (equivalent to HTTP status 301) or not (302)
Throws:
ResourceException - Exception raised in failure situation

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.