com.sap.portal.pcm.relateditem

Class RelatedItemType

java.lang.Object
  extended by com.sap.portal.pcm.relateditem.RelatedItemType
All Implemented Interfaces:
Serializable

public class RelatedItemType
extends Object
implements Serializable

The class that represents and defines the types of related items.
Related items are represented by the interface IRelatedItemEntity.
The following types of related items are available:

The strings for each related type are as follows:

See Also:
Serialized Form

Field Summary
static RelatedItemType DYNAMIC_NAVIGATION
          Creates a Dynamic Navigation type.
static RelatedItemType RELATED_LINKS
          Creates a Related Links type.
static RelatedItemType TARGET_COMPONENTS
          Creates a Drag&Relate Targets type.
 
Method Summary
 boolean equals(RelatedItemType type)
          Compares two RelatedItemType objects.
 boolean equals(String type)
          Checks whether this object is of the specified type.
static RelatedItemType fromString(String type)
          Creates a RelatedItemType object from a string.
 String getSuffix()
          For internal use.
 String toString()
          Gets the type of the related item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RELATED_LINKS

public static final RelatedItemType RELATED_LINKS
Creates a Related Links type.


TARGET_COMPONENTS

public static final RelatedItemType TARGET_COMPONENTS
Creates a Drag&Relate Targets type.


DYNAMIC_NAVIGATION

public static final RelatedItemType DYNAMIC_NAVIGATION
Creates a Dynamic Navigation type.

Method Detail

toString

public String toString()
Gets the type of the related item.

Overrides:
toString in class Object
Returns:
the type of the related item

equals

public boolean equals(RelatedItemType type)
Compares two RelatedItemType objects.

Parameters:
type - the RelatedItemType object to which to compare this RelatedItemType object
Returns:
true if the objects are equal, false if they are not equal

equals

public boolean equals(String type)
Checks whether this object is of the specified type.

Parameters:
type - the name of the related item to compare
Returns:
true if the related item names are the same, false if they are different

fromString

public static RelatedItemType fromString(String type)
Creates a RelatedItemType object from a string.

Parameters:
type - the type of related item to create
Returns:
a related item type

getSuffix

public String getSuffix()
For internal use. Mainly used for backwards compatibility when disabling a related item. The suffix is used to identify the type of the related item. The suffixes are: RL = RelatedLinks, TC = TargetComponents, DYN = DynamicNavigation.

Returns:
a suffix
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2015 SAP AG Complete Copyright Notice