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

java.lang.Object
  extended by org.kuali.student.lum.lu.ui.course.server.gwt.CopyCourseServiceImpl

@Transactional(noRollbackFor=DoesNotExistException.class,
               rollbackFor=java.lang.Throwable.class)
public class CopyCourseServiceImpl
extends Object


Field Summary
private  DataService courseDataService
           
private  DataService courseProposalDataService
           
private  CourseService courseService
           
private  String defaultDocumentType
           
private  String defaultState
           
private  List<String> ignoreProperties
           
(package private) static Logger LOG
           
private  LuService luService
           
private  ProposalService proposalService
           
private  StatementService statementService
           
 
Constructor Summary
CopyCourseServiceImpl()
           
 
Method Summary
private  void clearStatementTreeViewIds(List<StatementTreeViewInfo> statementTreeViews, String newState, LuService luService)
           
private  void clearStatementTreeViewIdsRecursively(StatementTreeViewInfo statementTreeView, String newState, LuService luService)
          Clears out ids recursively and also copies adhock clusets
private  CourseInfo copyCourse(String originalCluId)
           
private  CourseInfo copyCourse(String originalCluId, String newCluId, String newState, List<String> ignoreProperties, StatementService statementService, LuService luService, CourseService courseService)
           
private  ProposalInfo copyProposal(String originalProposalId)
           
private  void copyStatements(String originalCluId, String newCluId, String newState, StatementService statementService, LuService luService, CourseService courseService)
           
 DataSaveResult createCopyCourse(String originalCluId)
           
 DataSaveResult createCopyCourseProposal(String originalProposalId)
           
private  void resetIds(CourseInfo course)
           
private  void resetLoRecursively(LoDisplayInfo lo)
           
 void setCourseDataService(DataService courseDataService)
           
 void setCourseProposalDataService(DataService courseProposalDataService)
           
 void setCourseService(CourseService courseService)
           
 void setDefaultDocumentType(String defaultDocumentType)
           
 void setDefaultState(String defaultState)
           
 void setIgnoreProperties(List<String> ignoreProperties)
           
 void setLuService(LuService luService)
           
 void setProposalService(ProposalService proposalService)
           
 void setStatementService(StatementService statementService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

static final Logger LOG

courseDataService

private DataService courseDataService

courseProposalDataService

private DataService courseProposalDataService

courseService

private CourseService courseService

luService

private LuService luService

statementService

private StatementService statementService

proposalService

private ProposalService proposalService

defaultDocumentType

private String defaultDocumentType

defaultState

private String defaultState

ignoreProperties

private List<String> ignoreProperties
Constructor Detail

CopyCourseServiceImpl

public CopyCourseServiceImpl()
Method Detail

createCopyCourse

public DataSaveResult createCopyCourse(String originalCluId)
                                throws Exception
Throws:
Exception

createCopyCourseProposal

public DataSaveResult createCopyCourseProposal(String originalProposalId)
                                        throws Exception
Throws:
Exception

copyCourse

private CourseInfo copyCourse(String originalCluId)
                       throws Exception
Throws:
Exception

copyProposal

private ProposalInfo copyProposal(String originalProposalId)
                           throws Exception
Throws:
Exception

resetIds

private void resetIds(CourseInfo course)

resetLoRecursively

private void resetLoRecursively(LoDisplayInfo lo)

clearStatementTreeViewIds

private void clearStatementTreeViewIds(List<StatementTreeViewInfo> statementTreeViews,
                                       String newState,
                                       LuService luService)
                                throws OperationFailedException
Throws:
OperationFailedException

clearStatementTreeViewIdsRecursively

private void clearStatementTreeViewIdsRecursively(StatementTreeViewInfo statementTreeView,
                                                  String newState,
                                                  LuService luService)
                                           throws OperationFailedException
Clears out ids recursively and also copies adhock clusets

Parameters:
statementTreeView -
luService -
Throws:
OperationFailedException

copyStatements

private void copyStatements(String originalCluId,
                            String newCluId,
                            String newState,
                            StatementService statementService,
                            LuService luService,
                            CourseService courseService)
                     throws OperationFailedException,
                            DoesNotExistException,
                            InvalidParameterException,
                            MissingParameterException,
                            PermissionDeniedException,
                            DataValidationErrorException
Throws:
OperationFailedException
DoesNotExistException
InvalidParameterException
MissingParameterException
PermissionDeniedException
DataValidationErrorException

copyCourse

private CourseInfo copyCourse(String originalCluId,
                              String newCluId,
                              String newState,
                              List<String> ignoreProperties,
                              StatementService statementService,
                              LuService luService,
                              CourseService courseService)
                       throws DoesNotExistException,
                              InvalidParameterException,
                              MissingParameterException,
                              OperationFailedException,
                              PermissionDeniedException,
                              AlreadyExistsException,
                              DataValidationErrorException,
                              VersionMismatchException,
                              CircularRelationshipException,
                              DependentObjectsExistException,
                              UnsupportedActionException
Throws:
DoesNotExistException
InvalidParameterException
MissingParameterException
OperationFailedException
PermissionDeniedException
AlreadyExistsException
DataValidationErrorException
VersionMismatchException
CircularRelationshipException
DependentObjectsExistException
UnsupportedActionException

setCourseService

public void setCourseService(CourseService courseService)

setLuService

public void setLuService(LuService luService)

setStatementService

public void setStatementService(StatementService statementService)

setProposalService

public void setProposalService(ProposalService proposalService)

setCourseDataService

public void setCourseDataService(DataService courseDataService)

setCourseProposalDataService

public void setCourseProposalDataService(DataService courseProposalDataService)

setDefaultDocumentType

public void setDefaultDocumentType(String defaultDocumentType)

setDefaultState

public void setDefaultState(String defaultState)

setIgnoreProperties

public void setIgnoreProperties(List<String> ignoreProperties)


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