|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provides methods to
| Field Summary | |
static int |
IPRINCIPAL
|
static int |
IPRINCIPALSET
|
static java.lang.String |
VERSIONSTRING
|
| Method Summary | |
java.lang.String[] |
getAttribute(java.lang.String namespace,
java.lang.String name)
Generic get method to access additional attributes. |
java.lang.String[] |
getAttributeNames(java.lang.String namespace)
Gets the names of all attributes contained in the given namespace, or null if that namespace does
not exist. |
java.lang.String[] |
getAttributeNamespaces()
Gets all non-null namespaces defined for this user. |
java.lang.String |
getAttributeType(java.lang.String namespace,
java.lang.String attributeName)
Gets the type of the attribute. |
byte[] |
getBinaryAttribute(java.lang.String namespace,
java.lang.String name)
Generic get method to access additional attributes. |
java.lang.String |
getDescription(java.util.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. |
java.lang.String |
getPrincipalTypeIdentifier()
Gets the principal type identifier of the described IPrincipal object. |
java.lang.String |
getTitle(java.util.Locale locale)
Returns the title of the IPrincipal object which is described by this IPrincipalMetaData object. |
boolean |
setAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.String[] values)
Generic method to associate arbitrary text data with a IPrincipalMetaData object. |
boolean |
setBinaryAttribute(java.lang.String namespace,
java.lang.String name,
byte[] value)
Generic method to associate arbitrary binary data with a IPrincipalMetaData object. |
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the description for the given locale. |
void |
setTitle(java.lang.String title,
java.util.Locale locale)
Sets the title for the given locale. |
| Field Detail |
public static final java.lang.String VERSIONSTRING
public static final int IPRINCIPAL
public static final int IPRINCIPALSET
| Method Detail |
public java.lang.String getTitle(java.util.Locale locale)
locale - the localepublic java.lang.String getDescription(java.util.Locale locale)
locale - the locale
public void setTitle(java.lang.String title,
java.util.Locale locale)
title - the title or nulllocale - the locale
public void setDescription(java.lang.String description,
java.util.Locale locale)
description - the description or nulllocale - the localepublic java.lang.String getPrincipalTypeIdentifier()
principal type identifier of the described IPrincipal object.
For details about the principal type identifier see IPrincipalFactory.newPrincipal(String)principal type identifierpublic int getPrincipalType()
public boolean setAttribute(java.lang.String namespace,
java.lang.String name,
java.lang.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
public boolean setBinaryAttribute(java.lang.String namespace,
java.lang.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 attributeUMRuntimeException - if either namespace
or name is not supported
public java.lang.String getAttributeType(java.lang.String namespace,
java.lang.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.public java.lang.String[] getAttributeNames(java.lang.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
nullnamespace - namespace or nullnamespace or nullpublic java.lang.String[] 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).
public java.lang.String[] getAttribute(java.lang.String namespace,
java.lang.String name)
null. Each attribute can have multiple String
values.namespace - namespace the attribute is in (may be
null)name - name of the attributenull if
this namespace or attribute within this namespace does not exist
public byte[] getBinaryAttribute(java.lang.String namespace,
java.lang.String name)
null.namespace - namespace the attribute is in (may be
null)name - name of the attributenull if
this namespace or attribute within this namespace does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||