lumis.portal.principal
Class PrincipalConfig
java.lang.Object
lumis.portal.principal.PrincipalConfig
- All Implemented Interfaces:
- java.lang.Cloneable, java.security.Principal, ICacheEntry, ICloneableCacheEntry
- Direct Known Subclasses:
- PrincipalDataType.Data
@StableMinor(version="6.1",
sinceVersion="4.0")
public class PrincipalConfig
- extends java.lang.Object
- implements ICloneableCacheEntry, java.security.Principal
A portal principal object. May represent an user or a group.
- Since:
- 4.0.0
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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(java.lang.String id,
java.lang.String shortId,
java.lang.String name,
int type,
int subType,
java.lang.String channelId)
PrincipalConfig
public PrincipalConfig(UserConfig userConfig)
PrincipalConfig
public PrincipalConfig(GroupConfig groupConfig)
getId
public java.lang.String getId()
- Returns:
- Returns the id.
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
getShortId
public java.lang.String getShortId()
- Returns:
- Returns the shortId.
setShortId
public void setShortId(java.lang.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 java.lang.String getChannelId()
- Returns:
- Returns the channelId.
setChannelId
public void setChannelId(java.lang.String channelId)
clone
public PrincipalConfig clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface ICloneableCacheEntry
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
Lumisportal 6.1.0.111014 - Copyright © 2001-2007, Lumis. All Rights Reserved.