Package lumis.portal.principal
Class PrincipalConfig
- java.lang.Object
-
- lumis.portal.principal.PrincipalConfig
-
- All Implemented Interfaces:
Cloneable
,Principal
,ICacheEntry
,ICloneableCacheEntry
- Direct Known Subclasses:
PrincipalDataType.Data
@StableMinor(version="14.1", sinceVersion="4.0") public class PrincipalConfig extends Object implements ICloneableCacheEntry, Principal
A portal principal object. May represent an user or a group.- Since:
- 4.0.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_GROUP
static int
TYPE_USER
static int
TYPE_USER_SEGMENTATION
The user segmentation principal type.
-
Constructor Summary
Constructors Constructor Description PrincipalConfig(String id, String shortId, String name, int type, int subType, String channelId)
PrincipalConfig(GroupConfig groupConfig)
PrincipalConfig(UserConfig userConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrincipalConfig
clone()
boolean
equals(Object obj)
String
getChannelId()
String
getId()
String
getName()
String
getProfileImageHref()
Get principal profile image href.String
getShortId()
int
getSubType()
int
getType()
int
hashCode()
void
setChannelId(String channelId)
void
setName(String name)
void
setShortId(String shortId)
void
setSubType(int subType)
void
setType(int type)
String
toString()
-
-
-
Field Detail
-
TYPE_USER
public static final int TYPE_USER
- See Also:
- Constant Field Values
-
TYPE_GROUP
public static final int TYPE_GROUP
- See Also:
- Constant Field Values
-
TYPE_USER_SEGMENTATION
public static final int TYPE_USER_SEGMENTATION
The user segmentation principal type.- Since:
- 11.2.0
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrincipalConfig
public PrincipalConfig(String id, String shortId, String name, int type, int subType, String channelId)
-
PrincipalConfig
public PrincipalConfig(UserConfig userConfig)
-
PrincipalConfig
public PrincipalConfig(GroupConfig groupConfig)
-
-
Method Detail
-
getId
public String getId()
- Returns:
- Returns the id.
-
getName
public String getName()
-
setName
public void setName(String name)
-
getShortId
public String getShortId()
- Returns:
- Returns the shortId.
-
setShortId
public void setShortId(String shortId)
-
getSubType
public int getSubType()
- Parameters:
sybType
- The sybType to set.
-
setSubType
public void setSubType(int subType)
-
getType
public int getType()
- Parameters:
type
- The type to set.
-
setType
public void setType(int type)
-
getChannelId
public String getChannelId()
- Returns:
- Returns the channelId.
-
setChannelId
public void setChannelId(String channelId)
-
clone
public PrincipalConfig clone() throws CloneNotSupportedException
- Specified by:
clone
in interfaceICloneableCacheEntry
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
toString
public String toString()
-
getProfileImageHref
public String getProfileImageHref()
Get principal profile image href.- Returns:
- this principal profile image href.
- Since:
- 8.0.0
-
-