Style Intelligence v12.0

inetsoft.sree.security
Class IdentityInfo

java.lang.Object
  extended by inetsoft.sree.security.IdentityInfo
All Implemented Interfaces:
inetsoft.sree.internal.HttpXMLSerializable, inetsoft.util.XMLSerializable

public class IdentityInfo
extends Object
implements inetsoft.sree.internal.HttpXMLSerializable

This class defines the identity info.


Constructor Summary
IdentityInfo()
          Construct.
IdentityInfo(inetsoft.uql.util.Identity identity)
          Construct.
 
Method Summary
 void addMember(String[] member)
           
 String byteDecode(String encString)
          Convert the encoded string to the original unencoded string.
 String byteEncode(String source)
          Encode non-ascii characters to unicode enclosed in '[]'.
 String getAlias()
          Get alias.
 inetsoft.uql.util.Identity getIdentity()
          Get identity of the info.
 String[][] getMembers()
          Get members of the identity.
 String getName()
          Get name.
 String[] getRoles()
          Get roles assigned to the identity.
 int getType()
          Get type.
 boolean isActive()
          Get active.
 boolean isEditable()
          Check if this identity is editable or not.
 boolean isEncoding()
          Check if this object should encoded when writing.
 void parseXML(Element elem)
          Parse xml element representation.
 void setEditable(boolean editable)
          Set this identity is editable.
 void setEncoding(boolean encoding)
          Set encoding flag.
 void writeXML(PrintWriter writer)
          Write xml element representation to a print writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityInfo

public IdentityInfo()
Construct.


IdentityInfo

public IdentityInfo(inetsoft.uql.util.Identity identity)
Construct.

Method Detail

getName

public String getName()
Get name.


getType

public int getType()
Get type.


isActive

public boolean isActive()
Get active.


getAlias

public String getAlias()
Get alias.


getRoles

public String[] getRoles()
Get roles assigned to the identity.


getMembers

public String[][] getMembers()
Get members of the identity.


getIdentity

public inetsoft.uql.util.Identity getIdentity()
Get identity of the info.


writeXML

public void writeXML(PrintWriter writer)
Write xml element representation to a print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the specified print writer.

parseXML

public void parseXML(Element elem)
              throws Exception
Parse xml element representation.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element representation.
Throws:
Exception

byteEncode

public String byteEncode(String source)
Encode non-ascii characters to unicode enclosed in '[]'.

Specified by:
byteEncode in interface inetsoft.sree.internal.HttpXMLSerializable
Parameters:
source - source string.
Returns:
encoded string.

byteDecode

public String byteDecode(String encString)
Convert the encoded string to the original unencoded string.

Specified by:
byteDecode in interface inetsoft.sree.internal.HttpXMLSerializable
Parameters:
encString - a string encoded using the byteEncode method.
Returns:
original string.

isEncoding

public boolean isEncoding()
Check if this object should encoded when writing.

Specified by:
isEncoding in interface inetsoft.sree.internal.HttpXMLSerializable
Returns:
true if should encoded, false otherwise.

setEncoding

public void setEncoding(boolean encoding)
Set encoding flag.

Specified by:
setEncoding in interface inetsoft.sree.internal.HttpXMLSerializable
Parameters:
encoding - true to encode.

setEditable

public void setEditable(boolean editable)
Set this identity is editable.


isEditable

public boolean isEditable()
Check if this identity is editable or not.


addMember

public void addMember(String[] member)

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.