|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.itim.dataservices.model.DirectoryEntry
com.ibm.itim.dataservices.model.DirectoryObject
com.ibm.itim.dataservices.model.domain.Account
public class Account
Value Object class that holds the attribute information of an account in the data model.
AccountEntity
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
ACCOUNT_ATTR_ACCESS_LAST_CERTIFIED_DATE
String constant for the last certified date attribute name for accesses. |
static java.lang.String |
ACCOUNT_ATTR_ACCESS_RECERTIFICATION_LAST_ACTION
String constant for the last recertification action (for suspend, mark) attribute name for accesses. |
static java.lang.String |
ACCOUNT_ATTR_ACCESS_RECERTIFICATION_LAST_ACTION_DATE
String constant for the last recertification action date attribute name for accesses. |
static java.lang.String |
ACCOUNT_ATTR_COMPLIANCE
String constant for the comliance attribute name. |
static java.lang.String |
ACCOUNT_ATTR_CREATION_DATE
String constant for the creation date attribute name. |
static java.lang.String |
ACCOUNT_ATTR_CRED_CATALOG
String constant for the credential catalog attribute for accounts. |
static java.lang.String |
ACCOUNT_ATTR_HISTORICAL_PASSWORD
String constant for the historical password attribute name. |
static java.lang.String |
ACCOUNT_ATTR_HOST_SERVICE
Deprecated. |
static java.lang.String |
ACCOUNT_ATTR_LAST_ACCESS_DATE
String constant for last access time attribute name. |
static java.lang.String |
ACCOUNT_ATTR_LAST_CERTIFIED_DATE
String constant for the last certified date attribute name. |
static java.lang.String |
ACCOUNT_ATTR_LAST_RECERTIFICATION_ACTION
String constant for the last recertification action (for suspend, mark) attribute name. |
static java.lang.String |
ACCOUNT_ATTR_LAST_RECERTIFICATION_ACTION_DATE
String constant for the last recertification action date attribute name. |
static java.lang.String |
ACCOUNT_ATTR_OWNERSHIP_TYPE
String constant for the ownershiptype attribute for accounts. |
static java.lang.String |
ACCOUNT_ATTR_PASSWORD
String constant for the password attribute name. |
static java.lang.String |
ACCOUNT_ATTR_PASSWORD_LAST_CHANGED
String constant for the last password changed date attribute name. |
static java.lang.String |
ACCOUNT_ATTR_PERSON
Deprecated. |
static java.lang.String |
ACCOUNT_ATTR_SERVICE
Deprecated. |
static java.lang.String |
ACCOUNT_ATTR_STATUS
String constant for the status attribute name. |
static java.lang.String |
ACCOUNT_ATTR_STATUS_LAST_CHANGED_DATE
String constant for last status change date attribute name. |
static java.lang.String |
ACCOUNT_ATTR_USERID
String constant for the user id attribute name. |
static int |
ACTIVE_STATUS
Int constant indicating the active status. |
static java.lang.String |
CERTIFIED
The account is certified. |
static java.lang.String |
CERTIFIED_ADMIN
The account is certified by an administrator. |
static int |
COMPLIANCE_UNKNOWN
Int constant indicating the account's compliance is unknown. |
static int |
COMPLIANT
Int constant indicating the account is compliant. |
static int |
CONSTRAINT_VIOLATION
Int constant indicating the account has a constraint violation (not compliant with policies). |
static int |
INACTIVE_STATUS
Int constant indicating the inactive, or suspended, status. |
static java.lang.String |
REJECTED_MARK
The account is rejected with regards to being certified and is marked. |
static java.lang.String |
REJECTED_SUSPEND
The account is rejected with regards to being certified and is suspended. |
static int |
SYSTEM_ACCOUNT
This constant indicates the account is system account. |
static int |
UNAUTHORIZED
Int constant indicating the account is not authorized (not compliant with policies). |
static int |
USER_ACCOUNT
This constant indicates the account is user account. |
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObject |
---|
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE, ATTR_URI, DESCRIPTION, NAME |
Fields inherited from interface com.ibm.itim.util.Sortable |
---|
ATTR_NAME |
Constructor Summary | |
---|---|
Account()
Default empty constructor |
|
Account(Account source)
Copy Constructor Reference copy is used for Java object except for String and other primary types |
|
Account(java.lang.String profileName)
Constructs object with profile. |
|
Account(java.lang.String profileName,
AttributeValues attributes)
Deprecated. Use Account(String profileName) and setAttributes(attributes) instead |
Method Summary | |
---|---|
void |
addHistoricalPassword(PasswordHistoryItem pwd)
Add a historical password for the account. |
void |
cleanAccessRecertificationAttributes(java.lang.String[] accessIDs)
This method can be used to clean the recertification related information of the accesses that are no longer assigned to this account. |
void |
cleanGroupRecertificationAttributes(java.lang.String[] groupAttributeNames)
Deprecated. This method will work fine only when the account stores the entire group dn (access id) in the attributes passed as parameter. Otherwise all recertification related data will get removed. Use cleanAccessRecertificationAttributes(String[]) method. |
int |
getAccountType()
Returns the type of the account. |
int |
getCompliance()
Returns the compliance of the account. |
static java.lang.String |
getComplianceAsString(int compliance)
Returns a string describing the specified compliance value. |
java.util.Date |
getCreationDate()
Returns the date and time the account was created. |
DistinguishedName |
getCredentialDN()
Returns the account's credential DN. |
java.util.Date |
getDatePasswordLastChanged()
Returns the date and time the user's password was last changed. |
java.util.List<PasswordHistoryItem> |
getHistoricalPasswords()
Gets set of historical passwords for the account. |
java.util.Date |
getLastAccessedDate()
Gets the date the account was last accessed. |
java.util.Date |
getLastCertifiedDate()
Returns the date and time the the account was last certified. |
java.util.Date |
getLastCertifiedDate(java.lang.String accessName)
Returns the date and time the access was last certified. |
java.lang.String |
getLastRecertificationAction()
Returns the last account recertification action for this account. |
java.lang.String |
getLastRecertificationAction(java.lang.String accessName)
Returns the last account recertification action for this access. |
java.util.Date |
getLastRecertificationActionDate()
Returns the date and time the last recertification action was recorded on this account. |
java.util.Date |
getLastRecertificationActionDate(java.lang.String accessName)
Returns the date and time the recertification action was last recorded for the given access. |
java.util.Date |
getLastStatusChangeDate()
Returns the date and time the the account's status was last changed. |
DistinguishedName |
getOwnerDN()
Returns the account's owner DN. |
java.lang.String |
getOwnershipType()
Returns the ownership type of the account. |
byte[] |
getPassword()
Returns the password of the account. |
DistinguishedName |
getServiceDN()
Returns the account's service DN. |
int |
getStatus()
Returns the status of the account. |
java.lang.String |
getUserId()
Returns the userid of the account. |
boolean |
isAnyAccessRecertificationDataPresent()
Determines whether any access recertification related data is present or not on the account object. |
boolean |
isEnroleAccount()
Deprecated. |
boolean |
isSuspended()
Determines whether the account has been suspended. |
void |
recertificationCertify()
Certifies the account per a recetification. |
void |
recertificationCertifyAccess(java.lang.String access)
Certifies the account access per a recetification. |
void |
recertificationCertifyAdmin()
Certifies the account per a recetification. |
void |
recertificationCertifyAdminAccess(java.lang.String access)
Certifies the account access per a recetification. |
void |
recertificationMark()
Marks the account per a recetification. |
void |
recertificationMarkAccess(java.lang.String access)
Marks the account access per a recetification. |
void |
recertificationSuspend()
Suspends the account per a recetification. |
void |
restore()
Restores the account, changing its status to ACTIVE_STATUS. |
void |
setAccountType(int accountType)
Sets the type of the account. |
void |
setCompliance(int compliance)
Sets the compliance of the account. |
void |
setHistoricalPasswords(java.util.List hisPasswords)
Set a new historical password for the account. |
void |
setLastAccessedDate(java.util.Date lastAccessDate)
Sets the date the account was last accessed. |
void |
setLastCertifiedDate(java.util.Date certifiedDate)
Records the last certified date for the account. |
void |
setLastCertifiedDate(java.lang.String accessName,
java.util.Date certifiedDate)
Records the last certified date for the given access name. |
void |
setLastRecertificationAction(java.lang.String action)
Records the last certified action for the account. |
void |
setLastRecertificationAction(java.lang.String accessName,
java.lang.String action)
Records the last certified action for the access. |
void |
setLastRecertificationActionDate(java.util.Date actionDate)
Records the last certified date for the account. |
void |
setLastRecertificationActionDate(java.lang.String accessName,
java.util.Date actionDate)
Records the date the last recertification action was recorded for the given access name. |
void |
setLastStatusChangeDate(java.util.Date changeDate)
Changes the date and time the account's status was last changed. |
void |
setPassword(byte[] newPassword)
Sets the new password of the account. |
void |
setPasswordLastChanged(java.util.Date changeDate)
Changes the date and time the account's password was last changed. |
void |
suspend()
Suspends the account, changing its status to INACTIVE_STATUS. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
updateLastCertifiedDate()
Updates the date and time the account was last certified to now. |
void |
updatePasswordLastChanged()
Updates the date and time the user's password was last changed. |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObject |
---|
addAttribute, addAttributeValues, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getName, getNameAttribute, getOldMappedAttributes, getProfileName, getRawAttributes, getSortValue, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN |
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryEntry |
---|
clearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACCOUNT_ATTR_HOST_SERVICE
public static final java.lang.String ACCOUNT_ATTR_PERSON
public static final java.lang.String ACCOUNT_ATTR_SERVICE
public static final java.lang.String ACCOUNT_ATTR_STATUS
public static final java.lang.String ACCOUNT_ATTR_COMPLIANCE
public static final java.lang.String ACCOUNT_ATTR_USERID
public static final java.lang.String ACCOUNT_ATTR_PASSWORD
public static final java.lang.String ACCOUNT_ATTR_HISTORICAL_PASSWORD
public static final java.lang.String ACCOUNT_ATTR_LAST_ACCESS_DATE
public static final java.lang.String ACCOUNT_ATTR_PASSWORD_LAST_CHANGED
public static final java.lang.String ACCOUNT_ATTR_CREATION_DATE
public static final java.lang.String ACCOUNT_ATTR_STATUS_LAST_CHANGED_DATE
public static final java.lang.String ACCOUNT_ATTR_LAST_CERTIFIED_DATE
public static final java.lang.String ACCOUNT_ATTR_LAST_RECERTIFICATION_ACTION
public static final java.lang.String ACCOUNT_ATTR_LAST_RECERTIFICATION_ACTION_DATE
public static final java.lang.String ACCOUNT_ATTR_ACCESS_LAST_CERTIFIED_DATE
public static final java.lang.String ACCOUNT_ATTR_ACCESS_RECERTIFICATION_LAST_ACTION
public static final java.lang.String ACCOUNT_ATTR_ACCESS_RECERTIFICATION_LAST_ACTION_DATE
public static final java.lang.String ACCOUNT_ATTR_OWNERSHIP_TYPE
public static final java.lang.String ACCOUNT_ATTR_CRED_CATALOG
public static final int ACTIVE_STATUS
public static final int INACTIVE_STATUS
public static final int COMPLIANCE_UNKNOWN
public static final int COMPLIANT
public static final int UNAUTHORIZED
public static final int CONSTRAINT_VIOLATION
public static final java.lang.String CERTIFIED
public static final java.lang.String CERTIFIED_ADMIN
public static final java.lang.String REJECTED_MARK
public static final int USER_ACCOUNT
public static final int SYSTEM_ACCOUNT
public static final java.lang.String REJECTED_SUSPEND
Constructor Detail |
---|
public Account()
public Account(java.lang.String profileName, AttributeValues attributes)
profileName
- Name of the profile (NTAccount, Exchange Account,
etc.) identifying the type of this account as listed in
Configuration > Entities within the IBM Tivoli Idenitity Manager UI.attributes
- AttributeValues holding the attributes of the account.public Account(java.lang.String profileName)
profileName
- Name of the profile (NTAccount, Exchange Account,
etc.) identifying the type of this account as listed in
Configuration > Entities within the IBM Tivoli Idenitity Manager UI.public Account(Account source)
Method Detail |
---|
public void addHistoricalPassword(PasswordHistoryItem pwd)
pwd
- binary representation of the historical password.public java.util.Date getDatePasswordLastChanged()
public java.util.List<PasswordHistoryItem> getHistoricalPasswords()
public void setHistoricalPasswords(java.util.List hisPasswords)
hisPasswords
- A set of new historical password for the account.public java.util.Date getLastAccessedDate()
public void setLastAccessedDate(java.util.Date lastAccessDate)
lastAccessDate
- Date of last access.public boolean isEnroleAccount()
public boolean isSuspended()
public DistinguishedName getOwnerDN()
public byte[] getPassword()
public void setPassword(byte[] newPassword)
newPassword
- byte[] holding new hashed password.public DistinguishedName getServiceDN()
public int getStatus()
public java.lang.String getUserId()
public void suspend()
public void restore()
public int getCompliance()
public int getAccountType()
USER_ACCOUNT
SYSTEM_ACCOUNT
.public java.lang.String getOwnershipType()
public void setAccountType(int accountType)
accountType
- an integer number represents the type of the account.
The following values are already defined:
USER_ACCOUNT
SYSTEM_ACCOUNT
.public static java.lang.String getComplianceAsString(int compliance)
public void setCompliance(int compliance)
compliance
- Enumerated int, COMPLIANCE_UNKNOWN, COMPLIANT,
UNAUTHORIZED, or CONSTRAINT_VIOLATION.public void updatePasswordLastChanged()
public void setPasswordLastChanged(java.util.Date changeDate)
changeDate
- Date holding the date and time the password was changed.public java.util.Date getCreationDate()
public DistinguishedName getCredentialDN()
public java.util.Date getLastStatusChangeDate()
public void setLastCertifiedDate(java.util.Date certifiedDate)
certifiedDate
- Date holding the date and time the account was certified.public void setLastCertifiedDate(java.lang.String accessName, java.util.Date certifiedDate)
accessName
- String holding the access name. Cannot be empty/null or this method does nothing.certifiedDate
- Date holding the date and time the access was certified.public void setLastRecertificationActionDate(java.lang.String accessName, java.util.Date actionDate)
accessName
- String holding the access name. Cannot be empty/null or this method does nothing.actionDate
- Date holding the date and time the last action was recorded.public java.util.Date getLastCertifiedDate()
public java.util.Date getLastCertifiedDate(java.lang.String accessName)
public java.util.Date getLastRecertificationActionDate(java.lang.String accessName)
accessName
- Name of the access or group.
public void updateLastCertifiedDate()
public void recertificationCertify()
public void recertificationCertifyAccess(java.lang.String access)
public void recertificationCertifyAdmin()
public void recertificationCertifyAdminAccess(java.lang.String access)
public void recertificationMark()
public void recertificationMarkAccess(java.lang.String access)
public void recertificationSuspend()
public void setLastRecertificationAction(java.lang.String action)
action
- String constant holding the last recertification action.public void setLastRecertificationActionDate(java.util.Date actionDate)
actionDate
- Date holding the date and time the last recertification action was recorded.public void setLastRecertificationAction(java.lang.String accessName, java.lang.String action)
accessName
- String holding the access name. Cannot be empty/null or this method does nothing.action
- String constant holding the last recertification action for this access.public java.lang.String getLastRecertificationAction()
public java.util.Date getLastRecertificationActionDate()
public java.lang.String getLastRecertificationAction(java.lang.String accessName)
accessName
- String holding the access name.
public void setLastStatusChangeDate(java.util.Date changeDate)
changeDate
- Date holding the date and time the account's status was last changed.public void cleanGroupRecertificationAttributes(java.lang.String[] groupAttributeNames)
groupAttributeNames
- account attributes containing group values.public java.lang.String toString()
toString
in class DirectoryObject
public void cleanAccessRecertificationAttributes(java.lang.String[] accessIDs)
accessIDs
- array containing access Ids of the accesses defined
on the groups that this account belongs to.public boolean isAnyAccessRecertificationDataPresent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |