@StableMinor(version="12.0", sinceVersion="4.0") public class UserConfig extends Object implements ICloneableCacheEntry
Modifier and Type | Field and Description |
---|---|
static String |
USER_ADMINISTRATOR_ID |
static String |
USER_FRAMEWORKCLOCK_ID |
static String |
USER_GUEST_ID |
static String |
USER_PAGECACHE_ID |
static String |
USER_SYSTEM_ID |
static int |
USER_TYPE_COMMON |
static int |
USER_TYPE_FRAMEWORK |
Constructor and Description |
---|
UserConfig() |
Modifier and Type | Method and Description |
---|---|
UserConfig |
clone() |
Map<String,String> |
getAttributes()
Deprecated.
Since 11.0.0 replaced by
getCustomAttributes() due to the inclusion of the
possibility of attributes having values of different types. For backwards compatibility, this map reflects the
map returned by getCustomAttributes() but converts values to/from String according to the attribute
type. |
String |
getChannelId() |
Map<String,Object> |
getCustomAttributes()
Deprecated.
since 12.0.0 replaced by
#getCustomAttributesMap() . Unlike #getCustomAttributesMap() , this
map returns only one value for a given attribute, even if it has more values. To work with multiple values, use #getCustomAttributesMap() instead. |
String |
getEmail()
|
String |
getFirstName()
|
String |
getFriendlyId()
Returns the friendly identifier of this user.
|
String |
getFullName()
|
String |
getId() |
Date |
getLastLogin()
Returns the date and time of last login for this user.
|
String |
getLastName()
|
String |
getLogin() |
String |
getMiddleName()
|
String |
getOrigin()
Returns the origin of this user.
|
String |
getPassword() |
String |
getProfileImageHref()
Returns the href of this user profile image.
|
IUserPropertiesReadOnly |
getProperties()
|
IUserProperties |
getTrustedProperties()
Returns this user's trusted properties.
|
int |
getType() |
IUserProperties |
getUntrustedProperties()
Returns this user's untrusted properties.
|
long |
getVisitorId()
Returns the visitor identifier of this user.
|
boolean |
isDisabled() |
boolean |
isMultiSession() |
boolean |
isPortalLogin()
Indicates if this user may be logged in normally by the portal's
default authenticator.
|
void |
setChannelId(String channelId) |
void |
setDisabled(boolean disabled) |
void |
setEmail(String email)
|
void |
setFirstName(String firstName)
|
void |
setId(String id) |
void |
setLastName(String lastName)
|
void |
setLogin(String login) |
void |
setMiddleName(String middleName)
|
void |
setMultiSession(boolean multiSession) |
void |
setOrigin(String origin)
Sets the origin for this user.
|
void |
setPassword(String password) |
void |
setPortalLogin(boolean portalLogin)
Sets if this user may be logged in normally by the portal's
default authenticator.
|
void |
setProfileImage(InputStream imageStream,
String mimeType)
Sets the profile image of the given user.
|
void |
setType(int type) |
public static final String USER_ADMINISTRATOR_ID
public static final String USER_GUEST_ID
public static final String USER_FRAMEWORKCLOCK_ID
public static final String USER_PAGECACHE_ID
public static final String USER_SYSTEM_ID
public static final int USER_TYPE_COMMON
public static final int USER_TYPE_FRAMEWORK
public UserConfig clone()
clone
in interface ICloneableCacheEntry
clone
in class Object
public boolean isPortalLogin()
Users whose passwords are authenticated externally and should not use the password in the portal database must have this attribute set to false to prevent from being authenticated against the password stored in the portal database.
public void setPortalLogin(boolean portalLogin)
portalLogin
- the value to set.isPortalLogin()
public String getOrigin()
null
indicates the user
was added normally.public void setOrigin(String origin)
origin
- the origin to set.getOrigin()
public boolean isDisabled()
public void setDisabled(boolean disabled)
@Deprecated public String getEmail()
@Deprecated public void setEmail(String email)
@Deprecated public String getFirstName()
@Deprecated public void setFirstName(String firstName)
public String getId()
public void setId(String id)
@Deprecated public String getLastName()
@Deprecated public void setLastName(String lastName)
public String getLogin()
public void setLogin(String login)
@Deprecated public String getMiddleName()
@Deprecated public void setMiddleName(String middleName)
public boolean isMultiSession()
public void setMultiSession(boolean multiSession)
public String getPassword()
public void setPassword(String password)
public int getType()
public void setType(int type)
public String getChannelId()
public void setChannelId(String channelId)
public String getProfileImageHref()
public void setProfileImage(InputStream imageStream, String mimeType) throws PortalException
imageStream
- an input stream of the image to set, or null
if the
current profile image, if any, is to be deleted. This stream
will be consumed but not closed by this method.mimeType
- the MIME type of the image. This parameter is ignored if
imageStream
is null
.IllegalArgumentException
- if the image stream
parameter is not
null
and the mime type
parameter is
null
.PortalException
- if other error occur.@Deprecated public String getFullName()
public Date getLastLogin()
null
if this user never logged in.@Deprecated public Map<String,String> getAttributes()
getCustomAttributes()
due to the inclusion of the
possibility of attributes having values of different types. For backwards compatibility, this map reflects the
map returned by getCustomAttributes()
but converts values to/from String according to the attribute
type.@Deprecated public Map<String,Object> getCustomAttributes()
#getCustomAttributesMap()
. Unlike #getCustomAttributesMap()
, this
map returns only one value for a given attribute, even if it has more values. To work with multiple values, use #getCustomAttributesMap()
instead.IUserManager.update(lumis.portal.authentication.SessionConfig, UserConfig, ITransaction)
is called, like
other user properties.public long getVisitorId()
IllegalStateException
- if this user was not persisted or obtained using IUserManager
, so its
visitor identifier was not generated, or if this user is the special guest user.public String getFriendlyId()
public IUserProperties getTrustedProperties()
getUntrustedProperties()
,
getProperties()
public IUserProperties getUntrustedProperties()
getTrustedProperties()
,
getProperties()
public IUserPropertiesReadOnly getProperties()
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.