Show TOC Start of Content Area

Background documentation Category Service and Assignment  Locate the document in its SAP Library structure

Use

With the entity services CategoryService and CategoryAssignment, you can model hierarchical folder structures and determine which entity services can have classification hierarchies, respectively.

Features

Category Service

With the category service, you can distinguish between categories and folders that are organized in a hierarchical manner. You can create several categories in parallel, where each category contains its own hierarchy and the category itself serves as root folder in the hierarchy.

You can assign one or more categories to each entity service that should be classifiable. This is done on the entity service level.

Single folders of the corresponding hierarchies can be assigned to entity service instances. There are no restrictions regarding the assignment of folders to entity service instances. This means that a folder can also be assigned to an instance although the parent and child folders have already been assigned to the same instance.

The entity service category service (CategoryService) has a folder; each consisting of a name and a description. It also contains two query (findBy)-methods for the attributes name and isRoot.

Other entity services can have a relation to the category service and by using this relation, one or more folders of the hierarchical structure can be assigned to an instance of this entity service. In other words, the instance can be put into one or more folders of the hierarchical structure.

Category Service

Attribute Name

Cardinality

Type

Options

name

1..1

com.sap.caf.core.longText

 

Mandatory, language dependent

 

description

 

0..1

com.sap.caf.core.longText

Language dependent

 

parent

 

0..1

Reference to CategoryService

 

children

 

0..n

Reference to CategoryService    

 

isRoot

1..1

com.sap.caf.core.boolean

mandatory

root

 

0..1

Reference to CategoryService

Holds a reference to the root folder category for this instance.

isLeaf

0..1

Boolean

 

 

Category Assignment

You can use the entity service category assignment (CategoryAssignment) to store category assignments associated with an entity service. In using this information, you can use the configurable user interface (UI) pattern Classification Assignment to determine which hierarchies can be classified on a specific entity service.

For more information, see Classification Assignment.

You must define two query (findBy) methods on the attributes entityName and category to retrieve all categories that are assigned to one entity service and all corresponding services contained in specified category.

Category Assignment

Attribute Name

Cardinality

Type

Options

entityName

1..1

com.sap.caf.core.longText

Mandatory

 

category

1..1

Reference to CategoryService

Mandatory

mandatory

1..1

com.sap.caf.core.boolen

Indicates if a user has to assign at least one category to an instance in the classification pattern.

                 

See also:

Classification Application Service Operations

           

 

 

End of Content Area