Interface IDirPrincipal
- All Superinterfaces:
IView
,Serializable
An IDirPrincipal will expose a common set of attributes as well as any registered
namespaces exposed by any registered IPrincipalAttributeProfiles for this type
-
Field Summary
Fields inherited from interface com.webmethods.portal.service.view.IView
PROP_DESCRIPTION, PROP_NAME, PROP_TYPE, PROP_URI
-
Method Summary
Modifier and TypeMethodDescriptionget theIThingID
associated with this IDir Principal.The principal's directory service nameget theIThingID
for theIDirService
associated with this principalThe directory uri differs from what is returned byIView.getURI()
.getDN()
The principal's dngetEmail()
Get the email attribute for this principalgetName()
Get the name of this directory principal, meaning the identifying attribute.int
getType()
default boolean
Get the directoryServiceEnabled attribute for this principaldefault boolean
Methods inherited from interface com.webmethods.portal.service.view.IView
getProperties, getProperty, getPropertyNames, getURI
-
Method Details
-
getDirectoryURI
The directory uri differs from what is returned byIView.getURI()
. The directory uri has the principal's dn encoded into it, where the other uri has the metadata service's thingid encoded into it.- Returns:
- Throws:
PortalException
-
getDirectoryPrincipalID
get theIThingID
associated with this IDir Principal. Note, this may return null, if the user hasn't yet been initialized by the metadata store. In that case you should callIDirServiceBizPolicy.initializePrincipal(com.webmethods.portal.bizPolicy.IContext, com.webmethods.portal.system.IURI)
- Returns:
- thing id of this principal
- Throws:
PortalException
-
getDirectoryServiceThingID
get theIThingID
for theIDirService
associated with this principal- Returns:
- thingid (or null for Roles) for this principal
- Throws:
PortalException
-
getDirectoryServiceName
The principal's directory service name- Returns:
- the principal's directory service name
- Throws:
PortalException
-
getDN
The principal's dn- Returns:
- the principal's dn
- Throws:
PortalException
-
getType
- Returns:
- a
IDirConstants.TYPE_USER
orIDirConstants.TYPE_GROUP
orIDirConstants.TYPE_ROLE
- Throws:
PortalException
-
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:
PortalException
-
getEmail
Get the email attribute for this principal- Returns:
- the value of the email attribute, or null if no value exists
- Throws:
PortalException
-
isDirectoryServiceEnabled
Get the directoryServiceEnabled attribute for this principal- Returns:
- if the directory service is enabled or not
- Throws:
PortalException
-
isInitialized
- Throws:
PortalException
-