@StableMinor(version="10.1", 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()
Returns the attributes.
|
String |
getChannelId() |
String |
getEmail() |
String |
getFirstName() |
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.
|
int |
getType() |
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)
public String getEmail()
public void setEmail(String email)
public String getFirstName()
public void setFirstName(String firstName)
public String getId()
public void setId(String id)
public String getLastName()
public void setLastName(String lastName)
public String getLogin()
public void setLogin(String login)
public String getMiddleName()
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.public String getFullName()
public Date getLastLogin()
null
if this user never logged in.Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.