public interface IDirectoryPrincipal extends IDirectoryObject
Modifier and Type | Interface and Description |
---|---|
static class |
IDirectoryPrincipal.ATTR_NAMES
Well known attribute names for the principal attribute providers
|
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_GROUP |
static int |
TYPE_ROLE |
static int |
TYPE_USER |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAllAttributes()
Returns all principal attributes aggregated from all defined principal attribute providers
for this principal type
|
Object |
getAttribute(String attributeName)
Returns principal attribute value.
|
IDirectoryService |
getDirectoryService()
Returns directory service principal belongs to.
|
String |
getDN()
Unique DN for this directory principal
|
String |
getEmail()
Get the email attribute for this principal
|
String |
getName()
Get the name of this directory principal, meaning the identifying attribute.
|
int |
getType() |
default IURI |
getURI()
Returns uri for this principal
|
getDirectorySession, getID
static final int TYPE_USER
static final int TYPE_GROUP
static final int TYPE_ROLE
IDirectoryService getDirectoryService() throws DirectoryException
IDirectoryRole
and will
return null in this caseDirectoryException
String getDN() throws DirectoryException
DirectoryException
int getType() throws DirectoryException
IDirSystem#TYPE_USER
or IDirSystem#TYPE_GROUP
or IDirSystem#TYPE_ROLE
DirectoryException
String getName() throws DirectoryException
DirectoryException
String getEmail() throws DirectoryException
DirectoryException
Object getAttribute(String attributeName) throws DirectoryException
attributeName
- DirectoryException
Map<String,Object> getAllAttributes() throws DirectoryException
DirectoryException
default IURI getURI() throws DirectoryException
DirectoryException