Style Intelligence v12.0

inetsoft.sree.security
Class SRIdentityFinder

java.lang.Object
  extended by inetsoft.sree.security.SRIdentityFinder
All Implemented Interfaces:
inetsoft.uql.util.XIdentityFinder

public class SRIdentityFinder
extends Object
implements inetsoft.uql.util.XIdentityFinder

SRIdentityFinder, the finder in sree module for identities like User, Group, Role, etc.


Constructor Summary
SRIdentityFinder()
           
 
Method Summary
 XPrincipal create(inetsoft.uql.util.Identity id)
          Create principal for the specified identity.
 String[] getGroups(inetsoft.uql.util.Identity identity)
          Get the groups for the identity.
 String[] getRoles(inetsoft.uql.util.Identity identity)
          Get the roles for the identity.
 String[] getUserGroups(Principal user)
          Get the groups for the user identified by the specified Principal.
 String[] getUserRoles(Principal user)
          Get the roles for the user identified by the specified Principal.
 String[] getUsers()
          Get all the users.
 boolean isParentGroup(inetsoft.uql.util.Identity identity, String group)
          Return the specified group is the parent group of the identity.
 boolean isParentGroup(inetsoft.uql.util.Identity identity, String group, SecurityProvider provider)
          Return the specified group is the parent group of the identity.
 boolean isSecurityExisting()
          Check whether security exists.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRIdentityFinder

public SRIdentityFinder()
Method Detail

getUserRoles

public String[] getUserRoles(Principal user)
Get the roles for the user identified by the specified Principal.

Specified by:
getUserRoles in interface inetsoft.uql.util.XIdentityFinder
Parameters:
user - a Principal object that identifies the user.
Returns:
an array of role names.

getRoles

public String[] getRoles(inetsoft.uql.util.Identity identity)
Get the roles for the identity.


getUserGroups

public String[] getUserGroups(Principal user)
Get the groups for the user identified by the specified Principal.

Specified by:
getUserGroups in interface inetsoft.uql.util.XIdentityFinder
Parameters:
user - a Principal object that identifies the user.
Returns:
an array of group names.

isParentGroup

public boolean isParentGroup(inetsoft.uql.util.Identity identity,
                             String group)
Return the specified group is the parent group of the identity.


isParentGroup

public boolean isParentGroup(inetsoft.uql.util.Identity identity,
                             String group,
                             SecurityProvider provider)
Return the specified group is the parent group of the identity.


getGroups

public String[] getGroups(inetsoft.uql.util.Identity identity)
Get the groups for the identity.


getUsers

public String[] getUsers()
Get all the users.

Specified by:
getUsers in interface inetsoft.uql.util.XIdentityFinder

create

public XPrincipal create(inetsoft.uql.util.Identity id)
Create principal for the specified identity.

Specified by:
create in interface inetsoft.uql.util.XIdentityFinder

isSecurityExisting

public boolean isSecurityExisting()
Check whether security exists.

Specified by:
isSecurityExisting in interface inetsoft.uql.util.XIdentityFinder

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