org.kuali.student.lum.lu.ui.course.server.gwt
Class CourseDataService

java.lang.Object
  extended by org.kuali.student.common.ui.server.gwt.AbstractDataService
      extended by org.kuali.student.lum.lu.ui.course.server.gwt.CourseDataService
All Implemented Interfaces:
DataService

public class CourseDataService
extends AbstractDataService


Field Summary
private  CourseService courseService
           
private static String DEFAULT_METADATA_STATE
           
(package private) static Logger LOG
           
private  LuService luService
           
private static long serialVersionUID
           
 
Constructor Summary
CourseDataService()
           
 
Method Summary
private  String calculateCourseCode(String subjectArea, String suffixNumber)
          This method calculates code for course and cross listed course.
protected  CourseInfo calculateCourseDerivedFields(CourseInfo courseInfo)
          This calculates and sets fields on course object that are derived from other course object fields.
protected  boolean checkDocumentLevelPermissions()
           
protected  Object get(String id)
          Implement this method to make to make service call to get DTO object.
protected  String getDefaultMetaDataState()
           
protected  String getDefaultWorkflowDocumentType()
           
protected  Class<?> getDtoClass()
          Implement this method to return the type of the dto object.
 Boolean isLatestVersion(String versionIndId)
           
protected  Object save(Object dto, Map<String,Object> properties)
          Implement this method to make a service call to get DTO object.
 void setCourseService(CourseService courseService)
           
 void setLuService(LuService luService)
           
protected  List<ValidationResultInfo> validate(Object dto)
          Implement this method to make a service call to get DTO object.
 
Methods inherited from class org.kuali.student.common.ui.server.gwt.AbstractDataService
_saveData, getData, getDefaultFilterProperties, getMetadata, getPermissionService, getProposalService, getTransformationManager, isAuthorized, saveData, setPermissionService, setProposalService, setTransformationManager, validateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LOG

static final Logger LOG

DEFAULT_METADATA_STATE

private static final String DEFAULT_METADATA_STATE
See Also:
Constant Field Values

courseService

private CourseService courseService

luService

private LuService luService
Constructor Detail

CourseDataService

public CourseDataService()
Method Detail

get

protected Object get(String id)
              throws Exception
Description copied from class: AbstractDataService
Implement this method to make to make service call to get DTO object. The method is called by the get(Data) method before it invokes transformationManager to convert DTO to a Data map

Specified by:
get in class AbstractDataService
Parameters:
id - DTO id
Returns:
the dto retrieved by calling the appropriate service method
Throws:
Exception

save

protected Object save(Object dto,
                      Map<String,Object> properties)
               throws Exception
Description copied from class: AbstractDataService
Implement this method to make a service call to get DTO object. The method is called by the save(Data) method after it invokes transformationManager to convert Data map to DTO

Specified by:
save in class AbstractDataService
Returns:
the persisted dto object
Throws:
Exception

validate

protected List<ValidationResultInfo> validate(Object dto)
                                       throws Exception
Description copied from class: AbstractDataService
Implement this method to make a service call to get DTO object. The method is called in the save(data) method before calling the save(dto,properties) method to validate the data

Specified by:
validate in class AbstractDataService
Returns:
Throws:
Exception

getDefaultMetaDataState

protected String getDefaultMetaDataState()
Specified by:
getDefaultMetaDataState in class AbstractDataService

getDefaultWorkflowDocumentType

protected String getDefaultWorkflowDocumentType()
Specified by:
getDefaultWorkflowDocumentType in class AbstractDataService

checkDocumentLevelPermissions

protected boolean checkDocumentLevelPermissions()
Overrides:
checkDocumentLevelPermissions in class AbstractDataService

getDtoClass

protected Class<?> getDtoClass()
Description copied from class: AbstractDataService
Implement this method to return the type of the dto object.

Specified by:
getDtoClass in class AbstractDataService
Returns:
The object type returned and expected by the get & save dto methods

setCourseService

public void setCourseService(CourseService courseService)

setLuService

public void setLuService(LuService luService)

calculateCourseDerivedFields

protected CourseInfo calculateCourseDerivedFields(CourseInfo courseInfo)
This calculates and sets fields on course object that are derived from other course object fields.


calculateCourseCode

private String calculateCourseCode(String subjectArea,
                                   String suffixNumber)
This method calculates code for course and cross listed course.

Parameters:
subjectArea -
suffixNumber -
Returns:

isLatestVersion

public Boolean isLatestVersion(String versionIndId)
                        throws Exception
Throws:
Exception


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.