|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPrincipalMetaData
This interface provides methods to
| Field Summary | |
|---|---|
static int |
IPRINCIPAL
|
static int |
IPRINCIPALSET
|
static String |
PARENT_ATTRIBUTE
|
static String |
PARENT_NAMESPACE
|
static String |
VERSIONSTRING
|
| Method Summary | |
|---|---|
String[] |
getAttribute(String namespace,
String name)
Generic get method to access additional attributes. |
String[] |
getAttributeNames(String namespace)
Gets the names of all attributes contained in the given namespace, or null if that namespace does
not exist. |
String[] |
getAttributeNamespaces()
Gets all non-null namespaces defined for this user. |
String |
getAttributeType(String namespace,
String attributeName)
Gets the type of the attribute. |
byte[] |
getBinaryAttribute(String namespace,
String name)
Generic get method to access additional attributes. |
String |
getDescription(Locale locale)
Returns the title of the IPrincipal object which is described by this IPrincipalMetaData object. |
int |
getPrincipalType()
Gets the semantic type of the described IPrincipal object, e.g. |
String |
getPrincipalTypeIdentifier()
Gets the principal type identifier of the described IPrincipal object. |
String |
getTitle(Locale locale)
Returns the title of the IPrincipal object which is described by this IPrincipalMetaData object. |
boolean |
setAttribute(String namespace,
String name,
String[] values)
Generic method to associate arbitrary text data with a IPrincipalMetaData object. |
boolean |
setBinaryAttribute(String namespace,
String name,
byte[] value)
Generic method to associate arbitrary binary data with a IPrincipalMetaData object. |
void |
setDescription(String description,
Locale locale)
Sets the description for the given locale. |
void |
setTitle(String title,
Locale locale)
Sets the title for the given locale. |
| Field Detail |
|---|
static final String VERSIONSTRING
static final int IPRINCIPAL
static final int IPRINCIPALSET
static final String PARENT_NAMESPACE
static final String PARENT_ATTRIBUTE
| Method Detail |
|---|
String getTitle(Locale locale)
locale - the locale
String getDescription(Locale locale)
locale - the locale
void setTitle(String title,
Locale locale)
title - the title or nulllocale - the locale
void setDescription(String description,
Locale locale)
description - the description or nulllocale - the localeString getPrincipalTypeIdentifier()
principal type identifier of the described IPrincipal object.
For details about the principal type identifier see IPrincipalFactory.newPrincipal(String)
principal type identifierint getPrincipalType()
boolean setAttribute(String namespace,
String name,
String[] values)
true if values is
different from the attribute's previous values, false
otherwise.
Namespace and name can have up to 255 characters. Each value
can have up to 255 characters.
namespace - namespace of the attribute to set (max. 255 characters).name - name of the attribute (max. 255 characters)values - values of the attribute (each max. 255 characters)
UMRuntimeException - if either namespace
or name is not supported
boolean setBinaryAttribute(String namespace,
String name,
byte[] value)
true if values is
different from the attribute's previous values, false
otherwise.
Namespace and name can have up to 255 characters.
namespace - namespace of the attribute to set (max. 255 characters).name - name of the attribute (max. 255 characters)value - byte array of values of the attribute
UMRuntimeException - if either namespace
or name is not supported
String getAttributeType(String namespace,
String attributeName)
IPrincipal.STRING_TYPE if the
attribute has the type String, or IPrincipal.BYTE_TYPE if it is a
binary attribute.
Returns null if the attribute is not available.
String[] getAttributeNames(String namespace)
namespace, or null if that namespace does
not exist. If namespace does exists but contains no
attributes, an empty array will be returned.
To retrieve the names of all attributes that are in no
distinct namespace, call this method with the parameter
null
namespace - namespace or null
namespace or nullString[] getAttributeNamespaces()
null exists, it is
not returned as an element in the array. Applications which need to
access the namespace null must check for its existence and
the contained attributes explicitly via getAttributeNames(null).
String[] getAttribute(String namespace,
String name)
null. Each attribute can have multiple String
values.
namespace - namespace the attribute is in (may be
null)name - name of the attribute
null if
this namespace or attribute within this namespace does not exist
byte[] getBinaryAttribute(String namespace,
String name)
null.
namespace - namespace the attribute is in (may be
null)name - name of the attribute
null if
this namespace or attribute within this namespace does not exist| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] com.sap.security.api.sda
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||