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)
          Return the SecurityContext of specified resource.
 

Method Detail

getSecurityContext

SecurityContext getSecurityContext(java.lang.String realmName,
                                   java.lang.String userName,
                                   java.lang.String resource,
                                   int versionNumber)
Return the SecurityContext of specified resource.

Parameters:
realmName - the realm name of current active realm of server.
userName - the user name, for a shedule task it means submitter,for advance run task it means login user.
resource - the resource of server, now it is only limited to report resource in server for example: "/SampleReports/CustomerAnalysis.cls"
versionNumber - the version number of resource.
Returns:
the SecurityContext of specify resource.