Skip to content

Commit

Permalink
Remove redundant interfaces in cmprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Schauer committed Jun 15, 2015
1 parent 2cc935a commit 7372ae6
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 178 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.List;
import java.util.Map;

import org.sakaiproject.cmprovider.api.AcademicSessionEntityProvider;
import org.sakaiproject.cmprovider.api.data.AcademicSessionData;
import org.sakaiproject.cmprovider.api.data.util.DateUtils;
import org.sakaiproject.coursemanagement.api.AcademicSession;
Expand All @@ -21,10 +20,10 @@
*
* @author Christopher Schauer
*/
public class AcademicSessionEntityProviderImpl extends AbstractCmEntityProvider implements AcademicSessionEntityProvider {
public class AcademicSessionEntityProvider extends AbstractCmEntityProvider {

public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-academic-session";
}

public Object getSampleEntity() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;

import org.sakaiproject.cmprovider.api.CanonicalCourseEntityProvider;
import org.sakaiproject.cmprovider.api.data.CanonicalCourseData;
import org.sakaiproject.coursemanagement.api.CanonicalCourse;
import org.sakaiproject.entitybroker.EntityReference;
Expand All @@ -14,9 +13,9 @@
*
* @author Christopher Schauer
*/
public class CanonicalCourseEntityProviderImpl extends AbstractCmEntityProvider implements CanonicalCourseEntityProvider {
public class CanonicalCourseEntityProvider extends AbstractCmEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-canonical-course";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;

import org.sakaiproject.cmprovider.api.CourseOfferingEntityProvider;
import org.sakaiproject.cmprovider.api.data.CourseOfferingData;
import org.sakaiproject.cmprovider.api.data.MembershipData;
import org.sakaiproject.cmprovider.api.data.util.DateUtils;
Expand All @@ -17,9 +16,9 @@
*
* @author Christopher Schauer
*/
public class CourseOfferingEntityProviderImpl extends AbstractContainerEntityProvider implements CourseOfferingEntityProvider {
public class CourseOfferingEntityProvider extends AbstractContainerEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-course-offering";
}

public Object getSampleEntity() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;

import org.sakaiproject.cmprovider.api.CourseSetEntityProvider;
import org.sakaiproject.cmprovider.api.data.CourseSetData;
import org.sakaiproject.cmprovider.api.data.MembershipData;
import org.sakaiproject.coursemanagement.api.CourseSet;
Expand All @@ -17,9 +16,9 @@
*
* @author Christopher Schauer
*/
public class CourseSetEntityProviderImpl extends AbstractContainerEntityProvider implements CourseSetEntityProvider {
public class CourseSetEntityProvider extends AbstractContainerEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-course-set";
}

public List getEntities(EntityReference ref, Search search) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.sakaiproject.authz.api.AuthzGroup;
import org.sakaiproject.authz.api.AuthzPermissionException;
import org.sakaiproject.authz.api.GroupNotDefinedException;
import org.sakaiproject.cmprovider.api.EnrollmentEntityProvider;
import org.sakaiproject.cmprovider.api.data.EnrollmentData;
import org.sakaiproject.cmprovider.api.data.util.DateUtils;
import org.sakaiproject.coursemanagement.api.Enrollment;
Expand All @@ -21,9 +20,9 @@
*
* @author Christopher Schauer
*/
public class EnrollmentEntityProviderImpl extends AbstractCmEntityProvider implements EnrollmentEntityProvider {
public class EnrollmentEntityProvider extends AbstractCmEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-enrollment";
}

public Object getSampleEntity() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.sakaiproject.authz.api.AuthzGroup;
import org.sakaiproject.authz.api.AuthzPermissionException;
import org.sakaiproject.authz.api.GroupNotDefinedException;
import org.sakaiproject.cmprovider.api.EnrollmentSetEntityProvider;
import org.sakaiproject.cmprovider.api.data.EnrollmentSetData;
import org.sakaiproject.coursemanagement.api.EnrollmentSet;
import org.sakaiproject.coursemanagement.impl.EnrollmentSetCmImpl;
Expand All @@ -21,9 +20,9 @@
*
* @author Christopher Schauer
*/
public class EnrollmentSetEntityProviderImpl extends AbstractCmEntityProvider implements EnrollmentSetEntityProvider {
public class EnrollmentSetEntityProvider extends AbstractCmEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-enrollment-set";
}

public Object getSampleEntity() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;

import org.sakaiproject.cmprovider.api.SectionCategoryEntityProvider;
import org.sakaiproject.cmprovider.api.data.SectionCategoryData;
import org.sakaiproject.coursemanagement.api.SectionCategory;
import org.sakaiproject.entitybroker.EntityReference;
Expand All @@ -14,9 +13,9 @@
*
* @author Christopher Schauer
*/
public class SectionCategoryEntityProviderImpl extends AbstractCmEntityProvider implements SectionCategoryEntityProvider {
public class SectionCategoryEntityProvider extends AbstractCmEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-section-category";
}

public Object getSampleEntity() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import java.util.List;

import org.sakaiproject.cmprovider.api.SectionEntityProvider;
import org.sakaiproject.cmprovider.api.data.MembershipData;
import org.sakaiproject.cmprovider.api.data.SectionData;
import org.sakaiproject.coursemanagement.api.Section;
Expand All @@ -15,9 +14,9 @@
*
* @author Christopher Schauer
*/
public class SectionEntityProviderImpl extends AbstractContainerEntityProvider implements SectionEntityProvider {
public class SectionEntityProvider extends AbstractContainerEntityProvider {
public String getEntityPrefix() {
return ENTITY_PREFIX;
return "cm-section";
}

public Object getSampleEntity() {
Expand Down
35 changes: 16 additions & 19 deletions cmprovider/pack/src/webapp/WEB-INF/components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,27 @@
<property name="hibernateService" ref="hibernateService" />
</bean>

<bean id="org.sakaiproject.cmprovider.api.AcademicSessionEntityProvider"
class="org.sakaiproject.cmprovider.AcademicSessionEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.AcademicSessionEntityProvider"
class="org.sakaiproject.cmprovider.AcademicSessionEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.CanonicalCourseEntityProvider"
class="org.sakaiproject.cmprovider.CanonicalCourseEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.CanonicalCourseEntityProvider"
class="org.sakaiproject.cmprovider.CanonicalCourseEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.CourseOfferingEntityProvider"
class="org.sakaiproject.cmprovider.CourseOfferingEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.CourseOfferingEntityProvider"
class="org.sakaiproject.cmprovider.CourseOfferingEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.CourseSetEntityProvider"
class="org.sakaiproject.cmprovider.CourseSetEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.CourseSetEntityProvider"
class="org.sakaiproject.cmprovider.CourseSetEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.EnrollmentEntityProvider"
class="org.sakaiproject.cmprovider.EnrollmentEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.EnrollmentEntityProvider"
class="org.sakaiproject.cmprovider.EnrollmentEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.EnrollmentSetEntityProvider"
class="org.sakaiproject.cmprovider.EnrollmentSetEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.EnrollmentSetEntityProvider"
class="org.sakaiproject.cmprovider.EnrollmentSetEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.SectionEntityProvider"
class="org.sakaiproject.cmprovider.SectionEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.SectionEntityProvider"
class="org.sakaiproject.cmprovider.SectionEntityProvider" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.SectionCategoryEntityProvider"
class="org.sakaiproject.cmprovider.SectionCategoryEntityProviderImpl" parent="AbstractCmEntityProvider" />

<bean id="org.sakaiproject.cmprovider.api.MeetingEntityProvider"
class="org.sakaiproject.cmprovider.MeetingEntityProviderImpl" parent="AbstractCmEntityProvider" />
<bean id="org.sakaiproject.cmprovider.SectionCategoryEntityProvider"
class="org.sakaiproject.cmprovider.SectionCategoryEntityProvider" parent="AbstractCmEntityProvider" />
</beans>

0 comments on commit 7372ae6

Please sign in to comment.