lumis.portal.principal
Class PrincipalConfig

Package class diagram package PrincipalConfig
java.lang.Object
  extended by 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

Field Summary
static int TYPE_GROUP
           
static int TYPE_USER
           
 
Constructor Summary
PrincipalConfig(GroupConfig groupConfig)
           
PrincipalConfig(java.lang.String id, java.lang.String shortId, java.lang.String name, int type, int subType, java.lang.String channelId)
           
PrincipalConfig(UserConfig userConfig)
           
 
Method Summary
 PrincipalConfig clone()
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getChannelId()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 java.lang.String getShortId()
           
 int getSubType()
           
 int getType()
           
 int hashCode()
           
 void setChannelId(java.lang.String channelId)
           
 void setName(java.lang.String name)
           
 void setShortId(java.lang.String shortId)
           
 void setSubType(int subType)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

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)
Method Detail

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.