Style Intelligence v12.0

inetsoft.sree
Class UserEnv

java.lang.Object
  extended by inetsoft.sree.UserEnv

public class UserEnv
extends Object

User properties class. Properties file is saved in sreeUserData directory under sree.home, where a property file is created per user.


Constructor Summary
UserEnv()
           
 
Method Summary
static inetsoft.util.Catalog.CatalogGetter getCatalogGetter()
          Get catalog getter.
static Map getProperties(Principal user)
          Get all properties defined for the user.
static Object getProperty(Principal user, String name)
          Get a property for a user.
static Object getProperty(Principal user, String name, Object def)
          Get a property for a user.
static inetsoft.util.Catalog getReportCatalog(Principal user)
          Get report catalog of a user.
static inetsoft.util.Catalog getViewerCatalog(Principal user)
          Get catalog of a user for viewer localization.
static void save(Principal user, Map prop)
          Save user properties.
static void setProperty(Principal user, String name, Object val)
          Set a property for a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserEnv

public UserEnv()
Method Detail

getCatalogGetter

public static inetsoft.util.Catalog.CatalogGetter getCatalogGetter()
Get catalog getter.


getProperty

public static Object getProperty(Principal user,
                                 String name)
Get a property for a user.


getProperty

public static Object getProperty(Principal user,
                                 String name,
                                 Object def)
Get a property for a user.


setProperty

public static void setProperty(Principal user,
                               String name,
                               Object val)
Set a property for a user.


getProperties

public static Map getProperties(Principal user)
Get all properties defined for the user.


getViewerCatalog

public static inetsoft.util.Catalog getViewerCatalog(Principal user)
Get catalog of a user for viewer localization.

Parameters:
user - the specified user.
Returns:
viewer catalog of the specified user.

getReportCatalog

public static inetsoft.util.Catalog getReportCatalog(Principal user)
Get report catalog of a user.

Parameters:
user - the specified user.
Returns:
report catalog of the specified user.

save

public static void save(Principal user,
                        Map prop)
                 throws Exception
Save user properties.

Throws:
Exception

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