Oracle® Fusion Middleware .NET API Reference for Identity Connector Framework
12c (12.2.1.3.0) E81433-01
|
Attributes Accessor convenience methods for accessing attributes. More...
Public Member Functions | |
ConnectorAttributesAccessor (ICollection< ConnectorAttribute > attrs) | |
ConnectorAttribute | Find (String name) |
Find the named attribute More... | |
Name | GetName () |
Get the Name attribute from the set of attributes. More... | |
bool | GetEnabled (bool dflt) |
Return the enabled status of the account. More... | |
GuardedString | GetPassword () |
Get the password as a GuardeString More... | |
IList< Object > | FindList (String name) |
Return a list of attributes More... | |
IList< String > | FindStringList (String name) |
Return the multivalued attribute as a list of strings. More... | |
bool | HasAttribute (String name) |
Determines if the set as the attribute specified. More... | |
String | FindString (String name) |
Get the string value from the specified (single-valued) attribute. More... | |
int | FindInteger (String name) |
Get the integer value from the specified (single-valued) attribute. More... | |
long | FindLong (String name) |
Get the long value from the specified (single-valued) attribute. More... | |
DateTime | FindDateTime (String name) |
Get the date value from the specified (single-valued) attribute that contains a long. More... | |
double | FindDouble (String name) |
Get the integer value from the specified (single-valued) attribute. More... | |
bool | FindBoolean (String name) |
Get the boolean value from the specified (single-valued) attribute. More... | |
Attributes Accessor convenience methods for accessing attributes.
This class wraps a set of attributes to make lookup faster than the ConnectorAttributeUtil.Find(String, ICollection{ConnectorAttribute}) method, since that method must re-create the map each time.
<author>Warren Strange</author>
ConnectorAttribute Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.Find | ( | String | name | ) |
Find the named attribute
name | - the attribute name to search for |
bool Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindBoolean | ( | String | name | ) |
Get the boolean value from the specified (single-valued) attribute.
name | Attribute from which to retrieve the boolean value. |
InvalidCastException | iff the object in the attribute is not an Boolean. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued). |
DateTime Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindDateTime | ( | String | name | ) |
Get the date value from the specified (single-valued) attribute that contains a long.
name | Attribute from which to retrieve the date value. |
InvalidCastException | iff the object in the attribute is not an long. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued). |
double Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindDouble | ( | String | name | ) |
Get the integer value from the specified (single-valued) attribute.
name | Attribute from which to retrieve the integer value. |
InvalidCastException | iff the object in the attribute is not an integer. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued).. |
int Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindInteger | ( | String | name | ) |
Get the integer value from the specified (single-valued) attribute.
name | Attribute from which to retrieve the long value. |
InvalidCastException | iff the object in the attribute is not an long. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued). |
IList<Object> Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindList | ( | String | name | ) |
Return a list of attributes
name | - name of attribute to search for. |
long Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindLong | ( | String | name | ) |
Get the long value from the specified (single-valued) attribute.
name | Attribute from which to retrieve the long value. |
InvalidCastException | iff the object in the attribute is not an long. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued). |
String Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindString | ( | String | name | ) |
Get the string value from the specified (single-valued) attribute.
name | Attribute from which to retrieve the long value. |
InvalidCastException | iff the object in the attribute is not an long. |
ArgumentException | iff the attribute is a multi-valued (rather than single-valued). |
IList<String> Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.FindStringList | ( | String | name | ) |
Return the multivalued attribute as a list of strings.
This will throw a ClassCastException if the underlying attribute list is not of type String.
name | the name of the attribute to search for |
bool Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.GetEnabled | ( | bool | dflt | ) |
Return the enabled status of the account.
If the ENABLE operational attribute is present, it's value takes precedence over the current value. If it is missing, the currentlyEnabled status is returned instead.
dflt | the default state if enable is not found. |
Name Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.GetName | ( | ) |
GuardedString Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.GetPassword | ( | ) |
Get the password as a GuardeString
bool Org.IdentityConnectors.Framework.Common.Objects.ConnectorAttributesAccessor.HasAttribute | ( | String | name | ) |
Determines if the set as the attribute specified.
name | attribute name |