AnsweredAssumed Answered

Getting  access denied ("blackboard.persist.PersistPermission" "gradableitem" "create")

Question asked by my0055371 on May 9, 2016
Latest reply on May 10, 2016 by Alberto Ruiz

Hi,

I'm trying to create a GradeableItem with the folowing code:

GradableItem gi = new GradableItem();
gi.setCourseId(courseId);
gi.setCourseContentId(content.getId());
gi.setDisplayTitle(multipart.getParameter("title"));
gi.setTitle(multipart.getParameter("title"));
gi.setScorable(true);
gi.setPoints(100);
gi.setVisibleInBook(true);
gi.setVisibleToStudents(true);
GradableItemManager giManager = GradebookManagerFactory.getGradableItemManager();
giManager.persistGradebookItem(gi);

 

but keep getting -  access denied ("blackboard.persist.PersistPermission" "gradableitem" "create")

 

working with configured permission on the bb-menifest.xml :

 

<permissions>
  <permission type="persist" name="*" actions="create,modify,delete,persist"/>
  <permission type="attribute" name="user.*" actions="get,set"/>
  <permission type="attribute" name="user.authinfo" actions="get,set"/>
  <permission type="attribute" name="user.personalinfo" actions="get,set" />
  <permission type="java.io.FilePermission" name="&amp;lt;&amp;lt;ALL FILES&amp;gt;&amp;gt;" actions="read,write,delete,execute"/>
  <permission type="persist" name="OutcomeDefinition" actions="create,modify,delete"/>
  <permission type="persist" name="Content" actions="create,modify,delete"/>
  <permission type="java.util.PropertyPermission"  name="*" actions="read,write"/>
  <permission type="javax.management.MBeanPermission" name="*" actions="registerMBean,unregisterMBean"/>
  <permission type="socket" name="*" actions="listen,connect,resolve" />
  <permission type="runtime" name="javax.servlet.jsp.jstl"/>
  <permission type="runtime" name="accessClassInPackage.*"/>
  <permission type="runtime" name="accessDeclaredMembers"/>
  <permission type="runtime" name ="preferences"/>
  <permission type="blackboard.platform.blti.BasicLTIPermission" name="wiscrowd.appspot.com" actions="sendroles,sendemail,sendname"/>
  <permission type="blackboard.platform.blti.BasicLTIPermission" name="www.imsglobal.org" actions="sendroles,sendemail,sendname"/>
  <permission type="blackboard.platform.blti.BasicLTIPermission" name="dr-chuck.com" actions="sendroles,sendemail,sendname"/>
  <permission type="blackboard.platform.blti.BasicLTIPermission" name="localhost" actions="sendroles,sendemail,sendname"/>
  <permission type="blackboard.platform.blti.BasicLTIPermission" name="54.242.225.150" actions="sendroles,sendemail,sendname"/>
</permissions>

 

Outcomes