Package de.elo.ix.client
Class UserInfo
java.lang.Object
byps.BValueClass
de.elo.ix.client.ValueClass
de.elo.ix.client.UserInfo
- All Implemented Interfaces:
Serializable
Data class containing the user information data for the user logged in to the Index server. User information includes ID, name, rights, parent, etc.
Copyright: Copyright (c) 2004
Organisation: ELO Digital Office GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe user can activate this roles.protected String
User description.protected int
User rights.protected int
Second bitset of user rights.protected int[]
The groups the user is a member of.protected String
GUIDprotected int
User identifierprotected boolean
The flag for a group which will not be removed by LDAP replication.protected int[]
Deprecated.protected String
Last login timestamp (in timezone UTC).Reserved (LDAP user properties).protected String
User nameprotected int[]
Organisation unit IDs.protected String
The package name of UserInfoprotected int
User ID of the users parent (users adminstrator).protected String
User passwordprotected SessionInfo[]
The currently active tickets for the userprotected int
ID of the users superior.protected String
Timestamp The format is JJJJ.MM.DD.hh.mm.ssprotected String
Timestamp of this object's last export by the replication.protected int
User type.protected String[]
Reserved (Additional user properties).protected String
Workspace related data.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Copies user information.static boolean
compareLdapPropertiesMap
(Map<String, String> pi, Map<String, String> pk, Map<String, String> differentMembers) Compare maps of LDAP properties.compareToUserDirectoryStatus
(UserInfo o, Set<Integer> ignoreGroups) Compare this object with an object received from a UserDirectory.boolean
getDesc()
int
getFlags()
int
int[]
getGuid()
int
getId()
int[]
getName()
int[]
int
getPwd()
int
int
getType()
String[]
boolean
Compare flags, group IDs and organisation unit IDs.int
hashCode()
boolean
boolean
EIX-2557, EIX-3943: Prüfe, dass der Benutzer im LDAP gesperrt wurde.static boolean
ldapAttributeEquals
(String value1, String value2) EIX-3971: Vergleiche 2 LDAP Eigenschaft-Werte miteinander.void
setAvailableRoles
(List<UserName> availableRoles) void
void
setFlags
(int flags) void
setFlags2
(int flags2) void
setGroupList
(int[] groupList) void
void
setId
(int id) void
setInternalUser
(boolean internalUser) void
setKeylist
(int[] keylist) void
void
setLdapProperties
(Map<String, String> ldapProperties) void
void
setOrgUnitIds
(int[] orgUnitIds) void
setPackageName
(String packageName) void
setParent
(int parent) void
void
setSessions
(SessionInfo[] sessions) void
setSuperiorId
(int superiorId) void
void
setTStampSync
(String tStampSync) void
setType
(int type) void
setUserProps
(String[] userProps) void
setWorkspaceInfo
(String workspaceInfo) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
desc
User description. -
flags
protected int flagsUser rights. Possible values are combinations ofAccessC.FLAG_*
constants.- See Also:
-
groupList
protected int[] groupListThe groups the user is a member of.It contains all groups the user inherits the rights because of active substitutions (groups which are set in
Substitution.groupsToInheritRights
).- See Also:
-
id
protected int idUser identifier -
keylist
Deprecated.User keys. Array of key access rights. Each item is a combination of the access constantsAccessC.LUR_*
. The key ID corresponds to the index of the key access item in the key array. A user owns a key, if at least one access constant is included in the key item. Keys do not distinguish betweenLUR_WRTE
andLUR_LIST
:LUR_WRITE
impliesLUR_LIST
and v.v.- See Also:
-
name
User name -
parent
protected int parentUser ID of the users parent (users adminstrator). -
pwd
User password -
sessions
The currently active tickets for the user -
type
protected int typeUser type.TYPE_USER
for user,TYPE_GROUP
for group.- See Also:
-
userProps
Reserved (Additional user properties). Index this array with constants named PROP_* in class UserInfoC.- See Also:
-
ldapProperties
Reserved (LDAP user properties). Keys of this map named LDAP_PROP_* in class UserInfoC. All keys are lower case. Mandatory properties - For user: objectGUID, distinguishedName, displayName, sAMAccountName und UserPrincipalName - For group: objectGUID, distinguishedName, name und sAMAccountName- Since:
- 9.00.040.005
-
guid
GUID- Since:
- 7.00.000.012
-
tStamp
Timestamp The format is JJJJ.MM.DD.hh.mm.ss- Since:
- 7.00.000.013
-
lastLoginIso
Last login timestamp (in timezone UTC). This value is read-only and undefined for groups. Only the date part is valid.- Since:
- 7.00.040.011
-
superiorId
protected int superiorIdID of the users superior. If the user does not have a superior, this value is equal toid
.- Since:
- 7.00.040.017
-
flags2
protected int flags2Second bitset of user rights.- Since:
- 7.00.040.017
- See Also:
-
orgUnitIds
protected int[] orgUnitIdsOrganisation unit IDs. A user or group can be assigned to at most one organization unit. But due to its group membership a user or group can actually belong to a list of organization units. When writing this UserInfo object, only the first organization unit in the array is taken into account. In order to remove the relationship, set an empty array.- Since:
- 9.00.000.009
-
tStampSync
Timestamp of this object's last export by the replication.- Since:
- 12.01.001.000
-
availableRoles
The user can activate this roles.- Since:
- 20.00.000.003
-
packageName
The package name of UserInfo- Since:
- 20.00.000.009
-
internalUser
protected boolean internalUserThe flag for a group which will not be removed by LDAP replication.- Since:
- 21.00.000.018
-
workspaceInfo
Workspace related data.- Since:
- 21.02.000.017
-
-
Constructor Details
-
UserInfo
public UserInfo()Constructor -
UserInfo
Constructor with initiatisation.- Parameters:
id
- User IDname
- User name
-
UserInfo
Copies user information.- Parameters:
rhs
- User information to copy from.
-
-
Method Details
-
assign
Copies user information.- Parameters:
rhs
- User information to copy from.
-
getDesc
-
setDesc
-
getFlags
public int getFlags() -
setFlags
public void setFlags(int flags) -
getGroupList
public int[] getGroupList() -
setGroupList
public void setGroupList(int[] groupList) -
getId
public int getId() -
setId
public void setId(int id) -
getKeylist
public int[] getKeylist() -
setKeylist
public void setKeylist(int[] keylist) -
getName
-
setName
-
getParent
public int getParent() -
setParent
public void setParent(int parent) -
getPwd
-
setPwd
-
getSessions
-
setSessions
-
getType
public int getType() -
setType
public void setType(int type) -
getUserProps
-
setUserProps
-
getGuid
-
setGuid
-
getTStamp
-
setTStamp
-
getTStampSync
-
setTStampSync
-
getLastLoginIso
-
setLastLoginIso
-
getSuperiorId
public int getSuperiorId() -
setSuperiorId
public void setSuperiorId(int superiorId) -
getFlags2
public int getFlags2() -
setFlags2
public void setFlags2(int flags2) -
toString
-
hashCode
public int hashCode() -
equals
-
getOrgUnitIds
public int[] getOrgUnitIds() -
setOrgUnitIds
public void setOrgUnitIds(int[] orgUnitIds) -
getLdapProperties
-
setLdapProperties
-
getAvailableRoles
-
setAvailableRoles
-
getPackageName
-
setPackageName
-
isInternalUser
public boolean isInternalUser() -
setInternalUser
public void setInternalUser(boolean internalUser) -
compareToUserDirectoryStatus
Compare this object with an object received from a UserDirectory.- Parameters:
o
- Object from UserDirectoryignoreGroups
- Groups to ignore- Returns:
- Map of different members and their values.
-
ldapAttributeEquals
EIX-3971: Vergleiche 2 LDAP Eigenschaft-Werte miteinander.- Parameters:
value1
-value2
-- Returns:
- true, wenn value1 = value2, sonst false.
-
compareLdapPropertiesMap
public static boolean compareLdapPropertiesMap(Map<String, String> pi, Map<String, String> pk, Map<String, String> differentMembers) Compare maps of LDAP properties. Loops over entries of pk and adds the keys that are missing or have different associated values to differentMembers.- Parameters:
pi
- first mappk
- second mapdifferentMembers
- Different values- Returns:
- true, if the two LDAP properties are the same.
-
hasEqualPermissions
Compare flags, group IDs and organisation unit IDs.- Parameters:
ui
- Other UserInfo- Returns:
- true, if permissions are equal
-
getWorkspaceInfo
-
setWorkspaceInfo
-
isLdapBlocked
public boolean isLdapBlocked()EIX-2557, EIX-3943: Prüfe, dass der Benutzer im LDAP gesperrt wurde.- Returns:
- true, wenn der Benuzer gesperrt wurde.
-