ktrinad Posted September 5, 2006 Share Posted September 5, 2006 By: mardaraj - mardaraj jasperserver API for logging an user 2006-07-05 05:06i have a application.and in this application i am fetching reports of an user of jasperserver. so, i want to know whats the API are jasperserver using for a user to login. also give me the idea whats the API using to fetch report of an user. thanks Mardaraj By: Sherman Wood - sgwood RE: jasperserver API for logging an user 2006-07-05 06:25 We use the Acegi Security framework for authentication and authorization. Acegi can be configured to authenticate against a variety of authentication sources, such as LDAP. We also have a default authentication source that uses an internal database. You can configure the object level security in JI to allow users access only to the reports and other resources that are relevant for their roles, or down to the individual user level. You can set the security for folders or individual reports, say. The various browser UIs in the system call the repository API: repositoryService.loadResourcesList repositoryService.getAllFolders repositoryService.getSubFolders The lists of results are filtered to show only what objects the user has access to. The report browser wporks this way. Sherman JasperSoft By: mardaraj - mardaraj RE: jasperserver API for logging an user 2006-07-05 23:22thank u Sherman, your answer is some thing high level. i am not getting about that. in code level to login for an user is ---- UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, password); setDetails(request, authRequest); request.getSession().setAttribute("ACEGI_SECURITY_LAST_USERNAME", username); return getAuthenticationManager().authenticate(authRequest); now tell me for fetching report of an user in code level and in which jar i will get this. i want some idea.its urgent plz help me. with regards Mardaraj By: Sherman Wood - sgwood RE: jasperserver API for logging an user 2006-07-06 06:00In the new release, there is an example in RepositoryAction (war-jar). List pathFolders = getPathFolders(folderURI); List folders = repository.getSubFolders(null, folderURI); FilterCriteria reportUnitCriteria = FilterCriteria.createFilter(ReportUnit.class); reportUnitCriteria.addFilterElement(FilterCriteria.createParentFolderFilter(folderURI)); List reportUnits = repository.loadResourcesList(reportUnitCriteria); The list of reports that are available for the logged in user will be in the reportUnits variable. Sherman JasperSoft By: spoorthi - spoo_anu RE: Isolating Jasper Server from MySQL 2006-07-22 00:32Dear All, This is shivaraj here ,my problem is.. At the time of jasper server installation i want to isolate mysql database from Jasper server. is there any new jasper server installable is available ? If u have any solution will u plz let me know at spoo_anu@rediffmail.com with thank and regards SHIVARAJ By: T Kavanagh - tkavanagh RE: jasperserver API for logging an user 2006-07-26 13:24Shivaraj, There is not a way to have no interaction with the mysql database if you use the installer. The installer will attempt to connect to a database in order to create and populate the jasperserver database. However, this is the only database affected. Alternatively, you can use the jasperintelligence-1.0.1-bin.zip which is a "stand-alone" war archive. You can use this in tomcat or jboss and then all of the database setup is done "by hand" using the instructions found in the doc jasperintelligence-WarFile-install-guide.pdf. -Tony Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now