Package com.webmethods.sc.directory
Interface IDirectoryPrincipal
- All Superinterfaces:
IDirectoryObject
- All Known Subinterfaces:
IDirectoryGroup
,IDirectoryRole
,IDirectoryUser
Base interface for all directory principal object: users, groups and roles
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Well known attribute names for the principal attribute providers -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionReturns all principal attributes aggregated from all defined principal attribute providers for this principal typegetAttribute
(String attributeName) Returns principal attribute value.Returns directory service principal belongs to.getDN()
Unique DN for this directory principalgetEmail()
Get the email attribute for this principalgetName()
Get the name of this directory principal, meaning the identifying attribute.int
getType()
default IURI
getURI()
Returns uri for this principalMethods inherited from interface com.webmethods.sc.directory.IDirectoryObject
getDirectorySession, getID
-
Field Details
-
TYPE_USER
static final int TYPE_USER- See Also:
-
TYPE_GROUP
static final int TYPE_GROUP- See Also:
-
TYPE_ROLE
static final int TYPE_ROLE- See Also:
-
-
Method Details
-
getDirectoryService
Returns directory service principal belongs to. This call is not valid forIDirectoryRole
and will return null in this case- Returns:
- directory service.
- Throws:
DirectoryException
-
getDN
Unique DN for this directory principal- Returns:
- the principal's dn
- Throws:
DirectoryException
-
getType
- Returns:
- a
IDirSystem#TYPE_USER
orIDirSystem#TYPE_GROUP
orIDirSystem#TYPE_ROLE
- Throws:
DirectoryException
-
getName
Get the name of this directory principal, meaning the identifying attribute. No assumption should be made about which attribute is returned- Returns:
- a readable name for this directory principal
- Throws:
DirectoryException
-
getEmail
Get the email attribute for this principal- Returns:
- the value of the email attribute, or null if no value exists
- Throws:
DirectoryException
-
getAttribute
Returns principal attribute value. This will lookup an attribute across all directory attributes providers for this principal type- Parameters:
attributeName
-- Returns:
- attribute value or null
- Throws:
DirectoryException
-
getAllAttributes
Returns all principal attributes aggregated from all defined principal attribute providers for this principal type- Returns:
- Throws:
DirectoryException
-
getURI
Returns uri for this principal- Returns:
- the uri or null if it could not be determined
- Throws:
DirectoryException
-