Package oracle.iam.provisioning.vo
Class Account
java.lang.Object
oracle.iam.provisioning.vo.Account
- All Implemented Interfaces:
Serializable
This class represents the account provisioned to user.
This value object represents an entry in OIU table and meta-data related to ApplicationInstance.
It contains AccountData that hold Parent and Child data associated to the account.
- Since:
- 11.1.2.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
An enumeration which represents the Account Type. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThis constructor will be used internally by provisioning engine when an account is already provisioned.Account
(String accountKey, String processInstanceKey, String userKey, RiskSummary riskSummary) This constructor will be used internally by provisioning engine when an account is already provisioned.Account
(ApplicationInstance appInstance, AccountData accountData) ' * This constructor can be used to form an Account value object while provisioning an account to user. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntitlementGrants
(EntitlementInstance entitlementGrant) This method is used to get the the AccountData value object, containing both parent and child data.This method is used to get the unique name of the account.This method is used to get an account id (OIU_KEY).This method returns the status of an account.This methid is used to set the account type of an account.This method is used to get the ApplicationInstance value object associated to an account.getEntitlementGrants
(String attributeName) Deprecated.Deprecated.This method is used to get the Policy Key (OIU.POL_KEY) associated to an account.This method is used to get the Process Instance Key (OIU_KEY) associated to an account.Deprecated.This method gets the date on which an account is provisioned.This method is used to get request key of (OIU.REQUEST_KEY) of an account.This method is used to get the key of the user to whom account is provisioned.boolean
boolean
Checks if account is a service account.void
setAccountData
(AccountData accountData) This method is used to set AccountData value object.void
setAccountDescriptiveField
(String accountDescriptiveField) This method is used to set the unique name of the account.void
setAccountID
(String accountKey) This method is used to set AccountID of an Accountvoid
setAccountInstanceID
(String accountKey) This method is used to set account id (OIU.KEY).void
setAccountPasswordEncrypted
(boolean accountPasswordEncrypted) void
setAccountStatus
(String accountStatus) This method sets the status of an accountvoid
setAccountType
(Account.ACCOUNT_TYPE accountType) This method is used to set AccountType.void
setAppInstance
(ApplicationInstance appInstance) This method is used to set the ApplicationInstance value object associated to an account.void
setEntitlementGrants
(List<EntitlementInstance> entitlementGrants) void
setInapplicableAccountAction
(String inapplicableAccountAction) Deprecated.void
setPolicyBased
(String policyBased) Deprecated.void
setPolicyKey
(String policyKey) This method is used to set the Policy Key (OIU.POL_KEY) associated to an account.void
setProcessInstanceKey
(String processInstanceKey) This method is used to set the Process Instance Key (OIU_KEY) associated to an account.void
setProvisionedBy
(String provisionedBy) void
setProvisionedByMechanism
(String provisionedByMechanism) Deprecated.void
setProvisionedOnDate
(Date provisionedOnDate) This method is used to set the date on which account is provisioned.void
setRequestKey
(String requestKey) This method is used to get request key of (OIU.REQUEST_KEY) of an account.void
setRoleRequestKey
(String roleRequestKey) void
setServiceAccount
(boolean isServiceAccount) This method sets if an account is a service account.void
setUserKey
(String userKey) This method is used to set the key of the user to whom account is provisioned.void
setValidFromDate
(Date validFromDate) void
setValidToDate
(Date validToDate)
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Account
' * This constructor can be used to form an Account value object while provisioning an account to user.- Parameters:
appInstance
- - ApplicationInstance value object. The ApplicationInstance value object can be retrieved using one of the find method of ApplicationInstanceServiceaccountData
- - An AccountData value object. This value object contains ParentData and ChildData of an Account- See Also:
-
Account
This constructor will be used internally by provisioning engine when an account is already provisioned. AccountData and ApplicationInstance metadata will then be associated to this value object. If one wants to work with already provisioned account, refer to APIs provided in oracle.iam.provisioning.api.ProvisioningService to retrieve Account value object.- Parameters:
accountKey
- - AccountID (OIU_KEY) of an accountprocessInstanceKey
- - ProcessInstance Key (ORC_KEY) of an accountuserKey
- - User Key (USR_KEY) of an account.
-
Account
public Account(String accountKey, String processInstanceKey, String userKey, RiskSummary riskSummary) This constructor will be used internally by provisioning engine when an account is already provisioned. AccountData and ApplicationInstance metadata will then be associated to this value object. If one wants to work with already provisioned account, refer to APIs provided in oracle.iam.provisioning.api.ProvisioningService to retrieve Account value object.- Parameters:
accountKey
- - AccountID (OIU_KEY) of an accountprocessInstanceKey
- - ProcessInstance Key (ORC_KEY) of an accountuserKey
- - User Key (USR_KEY) of an account.riskSummary
- - Risk Summary of an account
-
-
Method Details
-
getValidFromDate
-
setValidFromDate
-
getValidToDate
-
setValidToDate
-
isAccountPasswordEncrypted
public boolean isAccountPasswordEncrypted() -
setAccountPasswordEncrypted
public void setAccountPasswordEncrypted(boolean accountPasswordEncrypted) -
getRoleRequestKey
-
setRoleRequestKey
-
getAccountID
This method is used to get an account id (OIU_KEY).- Returns:
- AccountID (OIU_KEY) of an account
-
setAccountInstanceID
This method is used to set account id (OIU.KEY).- Parameters:
accountKey
- AccountID (OIU_KEY) of an account.
-
getUserKey
This method is used to get the key of the user to whom account is provisioned.- Returns:
- User Key (USR_KEY) of an account.
-
setUserKey
This method is used to set the key of the user to whom account is provisioned.- Parameters:
userKey
- User Key (USR_KEY) of an account.
-
getAppInstance
This method is used to get the ApplicationInstance value object associated to an account.- Returns:
- ApplicationInstance value object associated to an account
-
setAppInstance
This method is used to set the ApplicationInstance value object associated to an account.- Parameters:
appInstance
- ApplicationInstance value object of an account.
-
getProcessInstanceKey
This method is used to get the Process Instance Key (OIU_KEY) associated to an account.- Returns:
- Process Instance Key (ORC_KEY) associated with an account.
-
setProcessInstanceKey
This method is used to set the Process Instance Key (OIU_KEY) associated to an account.- Parameters:
processInstanceKey
- Process Instance Key (ORC_KEY) of an account.
-
getPolicyKey
This method is used to get the Policy Key (OIU.POL_KEY) associated to an account.- Returns:
- Policy Key (POL_KEY) associated with an account if account is provisioned via Access Policy
-
setPolicyKey
This method is used to set the Policy Key (OIU.POL_KEY) associated to an account.- Parameters:
policyKey
- Access Policy Key (POL_KEY) of an account if account is getting provisioned via Access Policy.
-
getAccountDescriptiveField
This method is used to get the unique name of the account.- Returns:
- If the property AccountName = true is set in the process form associated with ApplicationInstance (via Resource Object, Process Definition), then the value returned is same as the value of the field on which this property is set. Otherwise, the value returned by this method is the value set in ORC_TOS_INSTANCE_KEY i.e Account Descriptive Field.
-
setAccountDescriptiveField
This method is used to set the unique name of the account.- Parameters:
accountDescriptiveField
- If the property AccountName = true is set in the process form associated with ApplicationInstance (via Resource Object, Process Definition), then the value returned is same as the value of the field on which this property is set. Otherwise, the value returned by this method is the value set in ORC_TOS_INSTANCE_KEY i.e Account Descriptive Field.
-
getAccountData
This method is used to get the the AccountData value object, containing both parent and child data.- Returns:
- The AccountData value object containg parent and child data.
- See Also:
-
setAccountData
This method is used to set AccountData value object.- Parameters:
accountData
- The AccountData value object
-
setAccountID
This method is used to set AccountID of an Account- Parameters:
accountKey
- This is an AccountID (OIU_KEY) of an account.
-
getAccountType
This methid is used to set the account type of an account.- Returns:
- This is type (OIU_TYPE) of an account.
-
setAccountType
This method is used to set AccountType. It can have one of the following values. - primary - The very first account of an application instance that is in provisioned status is marked as primary. Entitlments can be associated only to primary account during provisioning. If they need to be associated with other type of account (like other), then one needs to modify account. - secondery - additional type for future/customization. Not in use out-of-the-box. - admin - - additional type for future/customization. Not in use out-of-the-box. - other - If user already has a primary account, rest of the accounts will be defaulted to other - serviceaccount - If Account is marked as a service account. Note that service account can not be primary account. - unknown - If account is in provisioning status.- Parameters:
accountType
-
-
getRequestKey
This method is used to get request key of (OIU.REQUEST_KEY) of an account. Request Key gets associated to account only at the time of Provision operation. Subsequent Enable, Disable, Revoke operations on the same account does not change the request key associated to an account.- Returns:
- Request Key (REQUEST_KEY) associated to an account.
-
setRequestKey
This method is used to get request key of (OIU.REQUEST_KEY) of an account. Request Key gets associated to account only at the time of Provision operation. Subsequent Enable, Disable, Revoke operations on the same account does not change the request key associated to an account.- Parameters:
requestKey
- Request Key to be associated to an account.
-
isServiceAccount
public boolean isServiceAccount()Checks if account is a service account. Entitlements can not be associated to a service account.- Returns:
- true if account is a service account, else returns false.
-
setServiceAccount
public void setServiceAccount(boolean isServiceAccount) This method sets if an account is a service account.- Parameters:
isServiceAccount
- Marks if account is a service account.
-
getAccountStatus
This method returns the status of an account. Out of the box, the account status can be Provisioned, Provisioning, Enabled, Disabled, Revoked.- Returns:
- account status (OIU_STATUS)
-
setAccountStatus
This method sets the status of an account- Parameters:
accountStatus
- account status (OIU_STATUS)
-
getProvisionedOnDate
This method gets the date on which an account is provisioned.- Returns:
- The date on which an account is provisioned.
-
setProvisionedOnDate
This method is used to set the date on which account is provisioned.- Parameters:
provisionedOnDate
- The date on which an account is provisioned.
-
getPolicyBased
Deprecated.- Returns:
-
setPolicyBased
Deprecated. -
getInapplicableAccountAction
Deprecated.- Returns:
-
setInapplicableAccountAction
Deprecated. -
getProvisionedByMechanism
Deprecated.- Returns:
-
setProvisionedByMechanism
Deprecated. -
getGrantInformation
-
getRiskSummary
-
getNormalizedData
-
getProvisionedBy
-
setProvisionedBy
-
getEntitlementGrants
-
getEntitlementGrants
-
setEntitlementGrants
-
addEntitlementGrants
-