jet.server.api
Interface SecurityContextFactory


public interface SecurityContextFactory

SeucurityContextFactory is an interface that is used to help you implement security context.


Method Summary
 SecurityContext getSecurityContext(java.lang.String realmName, java.lang.String userName, java.lang.String resource, int versionNumber)
          Returns the SecurityContext of specified resource, for example, /SampleReports/CustomerAnalysis.cls.
 

Method Detail

getSecurityContext

SecurityContext getSecurityContext(java.lang.String realmName,
                                   java.lang.String userName,
                                   java.lang.String resource,
                                   int versionNumber)
Returns the SecurityContext of specified resource, for example, /SampleReports/CustomerAnalysis.cls.

Parameters:
realmName - the name of current active realm of the server.
userName - the user name, for a scheduled task it means submitter, for advance run task it means login user.
resource - the resource of the server, now it is only limited to report resources in the server
versionNumber - the version number of the resource.
Returns:
the SecurityContext of the specified resource.