lumis.portal.principal
Class PrincipalConfig

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

Field Summary
static int TYPE_GROUP
           
static int TYPE_USER
           
 
Constructor Summary
PrincipalConfig(GroupConfig groupConfig)
           
PrincipalConfig(String id, String shortId, String name, int type, int subType, String channelId)
           
PrincipalConfig(UserConfig userConfig)
           
 
Method Summary
 PrincipalConfig clone()
           
 boolean equals(Object obj)
           
 String getChannelId()
           
 String getId()
           
 String getName()
           
 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()
           
 
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(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()
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.