Skip to content

Commit

Permalink
initial checkin for 2.2
Browse files Browse the repository at this point in the history
git-svn-id: https://source.sakaiproject.org/svn/postem/trunk@9486 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
Jarrod Lannan committed May 15, 2006
1 parent 5eec4e9 commit b1a8d33
Show file tree
Hide file tree
Showing 66 changed files with 1,492 additions and 2,158 deletions.
47 changes: 47 additions & 0 deletions postem/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#Mon May 15 13:53:03 EDT 2006
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
org.eclipse.jdt.core.compiler.problem.deprecation=warning
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
50 changes: 50 additions & 0 deletions postem/components/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<pomVersion>3</pomVersion>
<extend>../../master/project.xml</extend>
<name>sakai-postem-pack</name>
<groupId>sakaiproject</groupId>
<id>sakai-postem-pack</id>
<currentVersion>${sakai.version}</currentVersion>
<organization>
<name>Sakai Project</name>
<url>http://sakaiproject.org/</url>
</organization>
<inceptionYear>2004</inceptionYear>

<properties>
<deploy.type>components</deploy.type>
</properties>

<dependencies>

<dependency>
<groupId>sakaiproject</groupId>
<artifactId>sakai-postem-api</artifactId>
<version>${sakai.version}</version>
</dependency>

<dependency>
<groupId>sakaiproject</groupId>
<artifactId>sakai-postem-impl</artifactId>
<version>${sakai.version}</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>

</dependencies>

<build>
<sourceDirectory>src/java</sourceDirectory>
<resources>
<resource>
<directory>src/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>

</project>
31 changes: 31 additions & 0 deletions postem/components/src/webapp/WEB-INF/components.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>

<bean id="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappingsImpl.postem" class="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappingsImpl">
<property name="mappingResources">
<list>
<value>org/sakaiproject/component/app/postem/data/GradebookImpl.hbm.xml</value>
<value>org/sakaiproject/component/app/postem/data/StudentGradesImpl.hbm.xml</value>
</list>
</property>
</bean>

<bean id="org.sakaiproject.api.app.postem.data.GradebookManager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager" />
</property>
<property name="target">
<bean class="org.sakaiproject.component.app.postem.GradebookManagerImpl" singleton="true">
<property name="sessionFactory">
<ref bean="org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory" />
</property>
</bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
</beans>
13 changes: 3 additions & 10 deletions postem/postem-api/project.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/home/rduhon/xslt/project.xsl.xml"?>
<project>
<pomVersion>3</pomVersion>
<extend>../../master/project.xml</extend>
<name>Sakai Postem API</name>
<name>sakai-postem-api</name>
<groupId>sakaiproject</groupId>
<id>sakai-postem-api</id>
<currentVersion>${sakai.version}</currentVersion>
<organization>
<name>Indiana University</name>
<name>Sakai Project</name>
<url>http://sakaiproject.org/</url>
</organization>
<inceptionYear>2003</inceptionYear>
<inceptionYear>2004</inceptionYear>

<properties>
<deploy.type>jar</deploy.type>
<deploy.target>shared</deploy.target>
</properties>

<dependencies>

<dependency>
<groupId>sakaiproject</groupId>
<artifactId>sakai-legacy-service</artifactId>
<version>${sakai.version}</version>
</dependency>

</dependencies>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,30 @@
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/

package org.sakaiproject.api.app.postem.data;

import java.sql.Timestamp;
import java.util.*;
import java.util.zip.DataFormatException;
import java.util.List;
import java.util.Set;
import java.util.TreeMap;

public interface Gradebook {
public String getTitle();
Expand All @@ -22,7 +44,7 @@ public interface Gradebook {
public void setLastUpdater(String lastUpdater);

public String getUpdatedDateTime();

public Timestamp getLastUpdated();

public void setLastUpdated(Timestamp lastUpdated);
Expand All @@ -46,41 +68,41 @@ public interface Gradebook {
public Long getId();

public void setId(Long id);

public Boolean getReleased();

public void setReleased(Boolean released);

public String getHeadingsRow();

public TreeMap getStudentMap();

public boolean hasStudent(String username);

public boolean getHasGrades();

public boolean getHasTemplate();

public boolean getRelease();

public void setRelease(boolean release);

public Boolean getReleaseStatistics();

public void setReleaseStatistics(Boolean releaseStatistics);

public boolean getReleaseStats();

public void setReleaseStats(boolean releaseStats);

public String getProperWidth(int column);

public List getRawData(int column);

public List getAggregateData(int column) throws Exception;
//public Map getTotals(int column);

// public Map getTotals(int column);

public StudentGrades studentGrades(String username);

}
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/

package org.sakaiproject.api.app.postem.data;

import java.util.List;
Expand All @@ -22,7 +43,7 @@ public Gradebook getGradebookByTitleAndContext(final String title,
public SortedSet getGradebooksByContext(String context);

public SortedSet getReleasedGradebooksByContext(final String context);

public SortedSet getStudentGradesForGradebook(final Gradebook gradebook);

public void saveGradebook(Gradebook gradebook);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/

package org.sakaiproject.api.app.postem.data;

import java.sql.Timestamp;
Expand All @@ -15,7 +36,7 @@ public interface StudentGrades {
public List getGrades();

public void setGrades(List grades);

public String getCheckDateTime();

public Timestamp getLastChecked();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
*
* Licensed under the Educational Community License, Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl1.php
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/

package org.sakaiproject.api.app.postem.data;

public interface Template {
Expand Down
Loading

0 comments on commit b1a8d33

Please sign in to comment.