com.sap.portal.pcm.admin
Interface IAttributeSet
- All Superinterfaces:
- IAttributes, IMutableAttributes
- All Known Subinterfaces:
- IApplicationPage, IiView, ILayout, IPage, ISystem
public interface IAttributeSet
- extends IMutableAttributes
The interface that provides methods to work with object attributes.
This interface extends IMutableAttributes and adds two methods: save() and validate().
All get/put/delete methods of attributes and
meta attributes are defined in IMutableAttributes
and IAttributes.
Attributes have an ID and a value that is either a String (non-null)
or a translatable text that requires a locale when setting and getting.
Design considerations
The attributes describing an object fall into two categories
- data
- metadata (data describing the data), such as:
- Value type
- Allowed values
- Inheritance
- User-friendly (translatable) label
There are two types of attributes and meta-attributes:
- String: Attributes with non-translatable values, such as folder location
- Text: Multilingual attributes, such as name and description
String attribute values (and meta-attributes) are never defined or obtained with a locale.
Text attribute values always are defined and obtained with a locale.
Technically, it is possible to have metadata attributes without the underlying data attribute.
Implementation considerations
For implementations on top of the PCD, in order to keep the persistency traffic as small as possible
and to keep the delta link mechanism meaningful,
it is important that a save() send only actual modifications to the
persistency, not a full dump of the current state. This makes it necessary to
collect all changes (and not only the resulting state) so that these changes can
be translated into modification items that are sent to the persistency.
Therefore, never use the putAttribute() methods with a value that is already assigned
to that attribute, since this creates a modification that "breaks" the delta link, unless you want
to create a modification (and break the delta link).
When an object is defined as read-only, the modification methods
throw UnsupportedOperationException.
|
Method Summary |
void |
save()
Updates the persistency with all changes. |
void |
validate()
Performs consistency checks on the current set of attributes. |
save
void save()
throws ValidationException,
IOException
- Updates the persistency with all changes.
It is recommended to run consistency checks using the validate() method, before saving.
- Throws:
ValidationException - if an error occurs due to consistency problems
IOException - if the save fails
validate
void validate()
throws ValidationException
- Performs consistency checks on the current set of attributes.
This method should be invoked before saving to persistency.
- Throws:
ValidationException - if consistency is not given
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcm/admin/public/api
|
api
|
EP-PIN
|
[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