com.sap.portal.contenttagging

Class ResultsFormat

java.lang.Object
  extended by com.sap.portal.contenttagging.ResultsFormat

public class ResultsFormat
extends Object

The class that represents the format of the search results returned by the Content Tagging service.

The service returns the results as a map between:

The results can be grouped in two ways:

For example, if the expression is "categoryA/*" then the map may look like:

  Case 1, GROUP_BY_CONTENT:

  Key: "portal_content/ControlCenter/RoleA/Views/iView1"
  Value: Set which contains:
                        "categoryA/subCategoryB"
                        "categoryA/subCategoryD"
                        "categoryA/subCategoryE"
  Key: "portal_content/ControlCenter/RoleA/Views/iView2"
  Value: Set which contains:
                        "categoryA/subCategoryB"
                        "categoryA/subCategoryC"
                        "categoryA/subCategoryE"
 
  Case 2, GROUP_BY_DOMAIN_VALUE:

  Key: "categoryA/subCategoryB"
  Value: Set which contains:
                        "portal_content/ControlCenter/RoleA/Views/iView1"
                        "portal_content/ControlCenter/RoleA/Views/iView2"
  Key: "categoryA/subCategoryC"
  Value: Set which contains:
                        "portal_content/ControlCenter/RoleA/Views/iView2"
  Key: "categoryA/subCategoryD"
  Value: Set which contains:
                        "portal_content/ControlCenter/RoleA/Views/iView1"
  Key: "categoryA/subCategoryE"
  Value: Set which contains:
                        "portal_content/ControlCenter/RoleA/Views/iView1"
                        "portal_content/ControlCenter/RoleA/Views/iView2"
 

By default, the results are grouped by the found content.


Field Summary
static ResultsFormat GROUP_BY_CONTENT
          A constant that represents grouping by content.
static ResultsFormat GROUP_BY_DOMAIN_VALUE
          A constant that represents grouping by domain values.
static ResultsFormat GROUP_DEFAULT
          A constant that represents the default format of results, which is grouping by content.
 
Method Summary
 int getId()
          Gets the integer value for the result format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_BY_CONTENT

public static final ResultsFormat GROUP_BY_CONTENT
A constant that represents grouping by content.

Used as a parameter for IContentTaggingService methods.


GROUP_BY_DOMAIN_VALUE

public static final ResultsFormat GROUP_BY_DOMAIN_VALUE
A constant that represents grouping by domain values.

Used as a parameter for IContentTaggingService methods.


GROUP_DEFAULT

public static final ResultsFormat GROUP_DEFAULT
A constant that represents the default format of results, which is grouping by content.

Used when no other format is specified.

Method Detail

getId

public int getId()
Gets the integer value for the result format.

Returns:
the integer value for the result format
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice