Skip to content

Commit

Permalink
import refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
clhedrick committed Jan 29, 2011
1 parent 132c2f4 commit e2275b1
Show file tree
Hide file tree
Showing 222 changed files with 21,085 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lessonbuilder/DIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

#hbm/target/sakai-lessonbuildertool-hbm-1.0.jar tomcat/shared/lib/sakai-lessonbuildertool-hbm-1.0.jar
#tool/target/sakai-lessonbuildertool-tool-1.0.war to tomcat/webapps/sakai-lessonbuildertool-tool.war
#components/target/sakai-lessonbuildertool-components-1.0.war into tomcat/components/sakai-lessonbuildertool-components

tar cf dist.tar -C hbm/target sakai-lessonbuildertool-hbm-1.0.jar -C ../../tool/target sakai-lessonbuildertool-tool-1.0.war -C ../../components/target sakai-lessonbuildertool-components-1.0.war

3 changes: 3 additions & 0 deletions lessonbuilder/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Froumchooserproducer
forumentity
jforumentity
68 changes: 68 additions & 0 deletions lessonbuilder/NOTES
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
JforumEntity implements LessonEntity

in service
registerJforum(JforumEntity)
service.getJforum().getentity...
user can check whether getJforum returns null

call sequences:
ForumEntity.getEntity()

init {
JforumEntity jforumEntity = service.getJforum();
}
if (jforumEntity != null)
jforumEntity.getEntity()


class LessonEntity
Object actual
int type; actual underlying Sakai type
String reference
static boolean addEntityControl(String ref, String siteId, String groupId) throws IOException {
static boolean removeEntityControl(String ref, String siteId, String groupId) throws IOException {
static LessonEntity getEntity(ref)
String getTitle
String getUrl
Date getDueDate
static LessonSubmission getSubmission(ref, user);
static List<LessonEntity> getEntitiesInSite(siteid);

class LessonSubmission
Object actual
int type; actual underlying Sakai type
boolean isAvailable; i.e. was it fully submitted
boolean isComplete(item); meets requirements




GroupPermissionsService.java

private static boolean addAssignmentControl(String ref, String siteId, String groupId) throws IOException {
private static boolean removeAssignmentControl(String ref, String siteId, String groupId) throws IOException {
wire into
addControl, removeControl

LessonBuilderEntityProducer

given ref, look up item and find title

SimplePageBean.java

public int getAssignmentTypeOfGrade(String ref) {
given ref, lookup item and find title and due date
given ref, lookup submission for user
submission exists, grade available, grade sufficient;
simplest ui would to pass the ref and user and ask if assignment is complete

picker
get all items in site
get title
get URL so they can preview it

ShowPageProducer.java
given ref, find type of grade
given ref, find URL to take


Loading

0 comments on commit e2275b1

Please sign in to comment.