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="5.5",
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
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
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)
getId
public String getId()
- Returns:
- Returns the id.
getName
public String getName()
- Specified by:
getName
in interface Principal
- Returns:
- Returns the name.
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 interface ICloneableCacheEntry
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Principal
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Principal
- Overrides:
equals
in class Object
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
Lumisportal 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.