Package org.openiam.idm.srvc.user.domain
Class UserEntity
- java.lang.Object
-
- org.openiam.base.domain.KeyEntity
-
- org.openiam.idm.srvc.user.domain.UserEntity
-
- All Implemented Interfaces:
Serializable
,BaseIdentity
,GraphIdAware
@Entity public class UserEntity extends KeyEntity implements GraphIdAware
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MetadataTypeEntity
subType
protected MetadataTypeEntity
type
protected Set<UserKey>
userKeys
protected Set<UserSshKeyEntity>
userSshKeys
-
Constructor Summary
Constructors Constructor Description UserEntity()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openiam.base.BaseIdentity
getId, setId
-
Methods inherited from interface org.openiam.graph.model.GraphIdAware
getGraphId
-
-
-
-
Field Detail
-
type
protected MetadataTypeEntity type
-
userSshKeys
protected Set<UserSshKeyEntity> userSshKeys
-
subType
protected MetadataTypeEntity subType
-
-
Method Detail
-
getPrimaryAccount
public UserToUserMembershipXrefEntity getPrimaryAccount()
-
setPrimaryAccount
public void setPrimaryAccount(UserToUserMembershipXrefEntity primaryAccount)
-
getDisplayName
public String getDisplayName()
-
getEmail
@Deprecated public String getEmail()
Deprecated.
-
getDefaultPhone
public PhoneEntity getDefaultPhone()
-
getOTPPhone
public PhoneEntity getOTPPhone()
-
getDefaultAddress
public AddressEntity getDefaultAddress()
-
getDefaultEmailAddress
public EmailAddressEntity getDefaultEmailAddress()
-
addAddress
public void addAddress(AddressEntity address)
-
addPhone
public void addPhone(PhoneEntity phone)
-
addLogin
public void addLogin(LoginEntity loginEntity)
-
getLoginByManagedSystemId
public LoginEntity getLoginByManagedSystemId(String managedSystemId)
-
getLoginByPrincipal
public LoginEntity getLoginByPrincipal(String login)
-
removeUserAttribute
public void removeUserAttribute(String id)
-
getGroup
public UserToGroupMembershipXrefEntity getGroup(String groupId)
-
removeGroup
public void removeGroup(GroupEntity entity)
-
addGroup
public void addGroup(GroupEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
getRole
public UserToRoleMembershipXrefEntity getRole(String roleId)
-
removeRole
public void removeRole(RoleEntity entity)
-
addRole
public void addRole(RoleEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
getAffiliation
public UserToOrganizationMembershipXrefEntity getAffiliation(String organizationId)
-
removeAffiliation
public void removeAffiliation(OrganizationEntity entity)
-
addAffiliation
public void addAffiliation(OrganizationEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
getResource
public UserToResourceMembershipXrefEntity getResource(String resourceId)
-
removeResource
public void removeResource(ResourceEntity entity)
-
addResource
public void addResource(ResourceEntity entity, Collection<AccessRightEntity> rights, Date startDate, Date endDate)
-
updateUser
public void updateUser(UserEntity newUser)
-
-