|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.rfadapter.DataPack
com.sapportals.wcm.rfadapter.LinkDataPack
public final class LinkDataPack
combines all information needed to create an internal or external link in an
ICollection. This class is immutable. If the target resource is
itself a link, the data pack will use the IResource.getTargetResource()
method to retrieve the target of that link. This target will then be used as
target for the newly created link. This is only applicable, if the link to
be created is of LinkType.INTERNAL
| Constructor Summary | |
|---|---|
LinkDataPack(IPropertyMap properties,
IResource target)
convinience constructor to create a link of type LinkType.INTERNAL. |
|
LinkDataPack(String name,
IPropertyMap properties,
IResource target)
convinience constructor to create a link of type LinkType.INTERNAL. |
|
LinkDataPack(String name,
IPropertyMap properties,
LinkType type,
URL target,
IResourceContext context)
standard constructor for this class. |
|
| Method Summary | |
|---|---|
DataPack |
add(IProperty property)
creates a new DataPack object that is a 1:1 copy of this instance but with the given parameter as additional property. |
boolean |
generateDisplayNameProperty()
returns false if it is an LinkType.INTERNAL
For these internal links, the default link generation must not create a
displayname property, if the target has a displayname, because the link should show
its targets displayname as displayname. |
DataPack |
modify(IProperty property)
creates a new DataPack object that is a 1:1 copy of this instance but with the given parameter as additional or modified property. |
URL |
target()
|
LinkType |
type()
|
| Methods inherited from class com.sapportals.wcm.rfadapter.DataPack |
|---|
addProperty, modifyProperty, name, properties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkDataPack(String name,
IPropertyMap properties,
LinkType type,
URL target,
IResourceContext context)
name - the name the link should have, must not be nullproperties - properties to be set for the link, might be nulltype - specifies if a link to an object within the repository framework
LinkType.INTERNAL or to an object outside the framework,
LinkType.EXTERNAL, should be created. Must not be nulltarget - the adress of the object the link should point at. Must not be null
public LinkDataPack(String name,
IPropertyMap properties,
IResource target)
throws ResourceException
LinkType.INTERNAL. The
needed URL object will be created using the given target's RID
name - the name the link should have, must not be nullproperties - properties to be set for the link, might be nulltarget - the IResource the link should point at, msut not be null
ResourceException, - if the target's RID is not retrievable
ResourceException
public LinkDataPack(IPropertyMap properties,
IResource target)
throws ResourceException
LinkType.INTERNAL. The
needed URL object will be created using the given target's RID,
the name of the link will be the name of the target
properties - properties to be set for the link, might be nulltarget - the IResource the link should point at, msut not be null
ResourceException, - if the target's RID is not retrievable
ResourceException| Method Detail |
|---|
public boolean generateDisplayNameProperty()
false if it is an LinkType.INTERNAL
For these internal links, the default link generation must not create a
displayname property, if the target has a displayname, because the link should show
its targets displayname as displayname. For external links, a displayname
property is wanted, because the external link cannot be used as a displayname-provider.
generateDisplayNameProperty in class DataPacktrue.public LinkType type()
public URL target()
public DataPack modify(IProperty property)
DataPacknull, all values
will be equal.
modify in class DataPackproperty - the property to modify for the new datapack, might be null
public DataPack add(IProperty property)
DataPacknull, all values
will be equal.
add in class DataPackproperty - the property to add for the new datapack, might be null
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||