diff --git a/assignment/impl/pom.xml b/assignment/impl/pom.xml
index fb82035a8675..c38a094c8364 100644
--- a/assignment/impl/pom.xml
+++ b/assignment/impl/pom.xml
@@ -217,16 +217,16 @@
test
- org.sakaiproject.basiclti
- basiclti-api
+ org.sakaiproject.lti
+ lti-api
- org.sakaiproject.basiclti
- basiclti-util
+ org.sakaiproject.lti
+ lti-util
- org.sakaiproject.basiclti
- basiclti-common
+ org.sakaiproject.lti
+ lti-common
${sakai.version}
diff --git a/assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java b/assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java
index 192b02cb78b6..e9781bfd333b 100644
--- a/assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java
+++ b/assignment/impl/src/java/org/sakaiproject/assignment/impl/AssignmentServiceImpl.java
@@ -104,7 +104,7 @@
import org.sakaiproject.authz.api.Member;
import org.sakaiproject.authz.api.SecurityAdvisor;
import org.sakaiproject.authz.api.SecurityService;
-import org.sakaiproject.basiclti.util.SakaiBLTIUtil;
+import org.sakaiproject.lti.util.SakaiLTIUtil;
import org.sakaiproject.calendar.api.Calendar;
import org.sakaiproject.calendar.api.CalendarEvent;
import org.sakaiproject.calendar.api.CalendarService;
@@ -4253,7 +4253,7 @@ public Map transferCopyEntities(String fromContext, String toCon
// If there is a LTI launch associated with this copy it over
if ( oAssignment.getContentId() != null ) {
Long contentKey = oAssignment.getContentId().longValue();
- Object retval = SakaiBLTIUtil.copyLTIContent(contentKey, toContext, fromContext);
+ Object retval = SakaiLTIUtil.copyLTIContent(contentKey, toContext, fromContext);
if ( retval instanceof Long ) {
nAssignment.setContentId(((Long) retval).intValue());
// If something went wrong, we can't be an LTI submission in the new site
diff --git a/assignment/tool/pom.xml b/assignment/tool/pom.xml
index 91de5744cf4f..6f7fffc233d5 100644
--- a/assignment/tool/pom.xml
+++ b/assignment/tool/pom.xml
@@ -92,17 +92,17 @@
sakai-velocity-tool
- org.sakaiproject.basiclti
- basiclti-api
+ org.sakaiproject.lti
+ lti-api
- org.sakaiproject.basiclti
- basiclti-common
+ org.sakaiproject.lti
+ lti-common
${project.version}
- org.sakaiproject.basiclti
- basiclti-util
+ org.sakaiproject.lti
+ lti-util
org.apache.commons
diff --git a/assignment/tool/src/java/org/sakaiproject/assignment/entityproviders/AssignmentEntityProvider.java b/assignment/tool/src/java/org/sakaiproject/assignment/entityproviders/AssignmentEntityProvider.java
index 9415ce0b13b6..41e80979a9d9 100644
--- a/assignment/tool/src/java/org/sakaiproject/assignment/entityproviders/AssignmentEntityProvider.java
+++ b/assignment/tool/src/java/org/sakaiproject/assignment/entityproviders/AssignmentEntityProvider.java
@@ -689,7 +689,7 @@ private Map submissionToMap(Set activeSubmitters, Assign
if ( content != null ) {
String contentItem = StringUtils.trimToEmpty((String) content.get(LTIService.LTI_CONTENTITEM));
// Instead of parsing, the JSON we just look for a simple existance of the submission review entry
- // Delegate the complex understanding of the launch to SakaiBLTIUtil
+ // Delegate the complex understanding of the launch to SakaiLTIUtil
// TODO: Eventually, Sakai's LTIService will implement a submissionReview checkbox and we should check for that here
boolean submissionReviewAvailable = contentItem.indexOf("\"submissionReview\"") > 0;
@@ -1098,7 +1098,7 @@ public ActionReturn getGradableForSite(EntityView view , Map par
ltiSubmissionLaunch = "/access/lti/site/" + siteId + "/content:" + contentKey + "?for_user=" + submitter.get("id");
// Instead of parsing, the JSON we just look for a simple existance of the submission review entry
- // Delegate the complex understanding of the launch to SakaiBLTIUtil
+ // Delegate the complex understanding of the launch to SakaiLTIUtil
if ( contentItem.indexOf("\"submissionReview\"") > 0 ) {
ltiSubmissionLaunch = ltiSubmissionLaunch + "&message_type=content_review";
}
diff --git a/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java b/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
index 6dfe1ec3f73e..cf70d32e14eb 100644
--- a/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
+++ b/assignment/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
@@ -165,7 +165,7 @@
import org.sakaiproject.authz.api.Role;
import org.sakaiproject.authz.api.SecurityAdvisor;
import org.sakaiproject.authz.api.SecurityService;
-import org.tsugi.basiclti.BasicLTIUtil;
+import org.tsugi.lti.LTIUtil;
import org.tsugi.lti13.LTICustomVars;
import org.tsugi.lti13.DeepLinkResponse;
import org.tsugi.lti13.LTI13Util;
@@ -256,7 +256,7 @@
import org.sakaiproject.util.comparator.AlphaNumericComparator;
import org.sakaiproject.util.comparator.UserSortNameComparator;
import org.sakaiproject.lti.api.LTIService;
-import org.sakaiproject.basiclti.util.SakaiBLTIUtil;
+import org.sakaiproject.lti.util.SakaiLTIUtil;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
@@ -1998,12 +1998,12 @@ private String build_view_external_tool_launch_context(VelocityPortlet portlet,
}
// Ignore the Content Item - use the value in the assignment if tool allows
- context.put("newpage", Boolean.valueOf(SakaiBLTIUtil.getNewpage(tool, null, newpage)));
- context.put("height",SakaiBLTIUtil.getFrameHeight(tool, content, "1200px"));
+ context.put("newpage", Boolean.valueOf(SakaiLTIUtil.getNewpage(tool, null, newpage)));
+ context.put("height",SakaiLTIUtil.getFrameHeight(tool, content, "1200px"));
context.put("browser-feature-allow", String.join(";", serverConfigurationService.getStrings("browser.feature.allow")));
// Copy title, description, and dates from Assignment to content if mis-match
- int protect = SakaiBLTIUtil.getInt(content.get(LTIService.LTI_PROTECT));
+ int protect = SakaiLTIUtil.getInt(content.get(LTIService.LTI_PROTECT));
String assignmentTitle = StringUtils.trimToEmpty(assignment.getTitle());
String assignmentDesc = StringUtils.trimToEmpty(assignment.getInstructions());
Instant visibleDate = assignment.getVisibleDate();
@@ -2021,7 +2021,7 @@ private String build_view_external_tool_launch_context(VelocityPortlet portlet,
String placement_secret = StringUtils.trimToNull((String) content.get(LTIService.LTI_PLACEMENTSECRET));
String content_settings = (String) content.get(LTIService.LTI_SETTINGS);
- JSONObject content_json = BasicLTIUtil.parseJSONObject(content_settings);
+ JSONObject content_json = LTIUtil.parseJSONObject(content_settings);
String contentVisibleDate = StringUtils.trimToEmpty((String) content_json.get(DeepLinkResponse.RESOURCELINK_AVAILABLE_STARTDATETIME));
String contentOpenDate = StringUtils.trimToEmpty((String) content_json.get(DeepLinkResponse.RESOURCELINK_SUBMISSION_STARTDATETIME));
String contentDueDate = StringUtils.trimToEmpty((String) content_json.get(DeepLinkResponse.RESOURCELINK_SUBMISSION_ENDDATETIME));
@@ -2045,7 +2045,7 @@ private String build_view_external_tool_launch_context(VelocityPortlet portlet,
content_json.put(LTIService.LTI_DESCRIPTION, assignmentDesc);
content_json.put(LTIService.LTI_PROTECT, new Integer(1));
- // Copy assignment specific custom parameter substitutions to pass into SakaiBLTIUtil
+ // Copy assignment specific custom parameter substitutions to pass into SakaiLTIUtil
content_json.put(DeepLinkResponse.RESOURCELINK_AVAILABLE_STARTDATETIME, assignmentVisibleDate);
content_json.put(DeepLinkResponse.RESOURCELINK_SUBMISSION_STARTDATETIME, assignmentOpenDate);
content_json.put(DeepLinkResponse.RESOURCELINK_AVAILABLE_ENDDATETIME, assignmentDueDate);
@@ -2061,8 +2061,8 @@ private String build_view_external_tool_launch_context(VelocityPortlet portlet,
}
// Unlock this assignment for one launch...
- String launch_code_key = SakaiBLTIUtil.getLaunchCodeKey(content);
- String launch_code = SakaiBLTIUtil.getLaunchCode(content);
+ String launch_code_key = SakaiLTIUtil.getLaunchCodeKey(content);
+ String launch_code = SakaiLTIUtil.getLaunchCode(content);
if ( launch_code_key != null && launch_code != null ) {
Session session = sessionManager.getCurrentSession();
session.setAttribute(launch_code_key, launch_code);
@@ -3634,7 +3634,7 @@ protected void setAssignmentFormContext(SessionState state, Context context) {
}
Placement placement = toolManager.getCurrentPlacement();
- // String contentReturn = SakaiBLTIUtil.getOurServerUrl() + "/portal/tool/" + placement.getId() +
+ // String contentReturn = SakaiLTIUtil.getOurServerUrl() + "/portal/tool/" + placement.getId() +
String contentReturn = serverConfigurationService.getToolUrl() + "/" + placement.getId()
+ "/sakai.lti.admin.helper.helper"
+ "?panel=AssignmentsMain"
@@ -10343,7 +10343,7 @@ public void doEdit_assignment(RunData data) {
Map tool = ltiService.getTool(toolKey, site.getId());
String toolTitle = (String) tool.get(LTIService.LTI_TITLE);
state.setAttribute(NEW_ASSIGNMENT_CONTENT_TITLE, toolTitle);
- Long toolNewpage = SakaiBLTIUtil.getLong(tool.get(LTIService.LTI_NEWPAGE));
+ Long toolNewpage = SakaiLTIUtil.getLong(tool.get(LTIService.LTI_NEWPAGE));
state.setAttribute(NEW_ASSIGNMENT_CONTENT_TOOL_NEWPAGE, toolNewpage);
}
} catch(org.sakaiproject.exception.IdUnusedException e ) {
diff --git a/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_new_edit_assignment.vm b/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_new_edit_assignment.vm
index db6ce03b555b..aa4bc1964faf 100644
--- a/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_new_edit_assignment.vm
+++ b/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_new_edit_assignment.vm
@@ -579,7 +579,7 @@
-
+