Jump to content
We've recently updated our Privacy Statement, available here ×

ankurcpatel

Members
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by ankurcpatel

  1. Hi, I wrote a static method in a new custom class which accepts a Resource object (the base class of all JS objects such as report units, saved input control values, topics, ad hoc reports, folders, scheduled report output, etc...) and sets the permissions on that object. Look in the JS documentation - namely the JasperServer Ultimate Guide - under the section for "Object Permissions API" for some example code. Permissions can be set on a object in two ways - role-based and user-based. You specify which one in your call to the method setPermissionRecipient in the ObjectPermission class. You'll see this in the documentation. Calling setPermissionMask allows you to specify the permission you want to set. The values you can enter here are: 0 for NO_ACCESS 2 for READ_ONLY 18 for READ_DELETE 30 for READ_WRITE_DELETE 1 for ADMINISTER These values are listed in one the objPermissionToRole.jsp and objPermissionToUser.jsp files in the project After you write your method, you will need to find the integration points within the code base for each resource type. In other words, you will need to look for where each of the resource types are being saved or copied and then call your custom method to change the default permissions. Hope this helps...
  2. Hi Paul, I am facing the same problem as you are. Did you find a solution to this problem? Any help you can provide would be most helpful. Thank you, Ankur
  3. I have extended the JS base code in my own customizations project to alter the default behavior for saving report options. My implementation has the same requirement as the original author's organization where only the creating user and superusers should only have access to their own saved objects.
  4. I am new to the Jasper community and have been tasked with building and maintaining JasperServer at our company. I have build the source code successfully on Windows and Linux environments and am ready to forge ahead with customizations. Before I do, I have a couple questions I hope the community can help me with. 1) Has anyone successfully imported the code base to Eclipse? I have tried importing the code as a normal Web project and as a Spring project, but there are quite a few errors. If you have imported your project properly into Eclipse, could you reply with detailed directions to be successful? 2) How are you maintaining your code base? I have unzipped the files into my own <js-src> folder, but this directory structure seems tedious to navigate. I would prefer maintaining a directory structure mirrored to the tomcat structure, but then I lose the ability to use the buildomatic scripts. Thanks!
×
×
  • Create New...