org.kuali.student.lum.lu.assembly
Class CluSetManagementAssembler

java.lang.Object
  extended by org.kuali.student.core.assembly.old.BaseAssembler<Data,Void>
      extended by org.kuali.student.lum.lu.assembly.CluSetManagementAssembler
All Implemented Interfaces:
Assembler<Data,Void>

@Transactional(rollbackFor=java.lang.Throwable.class)
public class CluSetManagementAssembler
extends BaseAssembler<Data,Void>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.student.core.assembly.old.BaseAssembler
BaseAssembler.Permission
 
Field Summary
static String ACTIVITY_RELATION_TYPE
           
static String CLUSET_DATA_TYPE
           
static String FORMAT_LU_TYPE
           
static String FORMAT_RELATION_TYPE
           
static String JOINT_RELATION_TYPE
           
(package private)  Logger LOG
           
private  LuService luService
           
private  MetadataServiceImpl metadataService
           
static String PROPOSAL_REFERENCE_TYPE
           
static String PROPOSAL_TYPE_CREATE_COURSE
           
 
Fields inherited from class org.kuali.student.core.assembly.old.BaseAssembler
permissionService
 
Constructor Summary
CluSetManagementAssembler()
           
 
Method Summary
private  void addToCluIds(Data clusData, List<String> cluIds)
           
 Data assemble(Void input)
           
 Void disassemble(Data input)
           
 Data get(String id)
           
 CluSetInfo getCluSetInfo(String cluSetId)
           
protected  String getDataType()
          This method should return the data type of the implementing assembler
 Metadata getDefaultMetadata()
           
protected  String getDocumentPropertyName()
          This method should return the root document property name
protected  String getDtoName()
          This method should return the DTO name of the implementing assembler
 LuService getLuService()
           
private  List<String> getMembershipQuerySearchResult(MembershipQueryInfo query)
           
 MetadataServiceImpl getMetadataService()
           
protected  AttributeSet getQualification(String idType, String id)
          This method should return the qualification name for the document type
 String richTextToString(RichTextInfo richTextInfo)
           
 SaveResult<Data> save(Data input)
           
private  SaveResult<Data> saveCluSet(Data input)
           
 void setLuService(LuService luService)
           
 void setMetadataService(MetadataServiceImpl metadataService)
           
private  void setWrapperCluSetInfoValues(CluSetInfo wrapperCluSet, CluSetInfo cluSetInfo)
           
private  CluSetHelper toCluSetHelper(CluSetInfo cluSetInfo)
           
private  CluSetInfo toCluSetInfo(CluSetHelper cluSetHelper)
           
private  MembershipQueryInfo toMembershipQueryInfo(CluSetRangeHelper cluSetRangeHelper)
           
 MetaInfo toMetaInfo(MetaInfoHelper metaInfoHelper)
           
 MetaInfoHelper toMetaInfoHelper(MetaInfo metaInfo)
           
private  RichTextInfo toRichTextInfo(String text)
           
private  void upWrap(CluSetInfo cluSetInfo)
           
private  void wrap(CluSetInfo cluSetInfo)
           
 
Methods inherited from class org.kuali.student.core.assembly.old.BaseAssembler
applyPermissionsToMetadata, checkDocumentLevelPermissions, getFieldAccessPermissions, getMetadata, hasValidationErrors, setMetadataService, setPermissionService, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.student.core.assembly.old.Assembler
validate
 

Field Detail

LOG

final Logger LOG

JOINT_RELATION_TYPE

public static final String JOINT_RELATION_TYPE
See Also:
Constant Field Values

PROPOSAL_TYPE_CREATE_COURSE

public static final String PROPOSAL_TYPE_CREATE_COURSE
See Also:
Constant Field Values

FORMAT_LU_TYPE

public static final String FORMAT_LU_TYPE
See Also:
Constant Field Values

FORMAT_RELATION_TYPE

public static final String FORMAT_RELATION_TYPE
See Also:
Constant Field Values

ACTIVITY_RELATION_TYPE

public static final String ACTIVITY_RELATION_TYPE
See Also:
Constant Field Values

PROPOSAL_REFERENCE_TYPE

public static final String PROPOSAL_REFERENCE_TYPE
See Also:
Constant Field Values

CLUSET_DATA_TYPE

public static final String CLUSET_DATA_TYPE
See Also:
Constant Field Values

luService

private LuService luService

metadataService

private MetadataServiceImpl metadataService
Constructor Detail

CluSetManagementAssembler

public CluSetManagementAssembler()
Method Detail

getMetadataService

public MetadataServiceImpl getMetadataService()

setMetadataService

public void setMetadataService(MetadataServiceImpl metadataService)

get

public Data get(String id)
         throws AssemblyException
Throws:
AssemblyException

getCluSetInfo

public CluSetInfo getCluSetInfo(String cluSetId)
                         throws Exception
Throws:
Exception

toMetaInfoHelper

public MetaInfoHelper toMetaInfoHelper(MetaInfo metaInfo)

toMetaInfo

public MetaInfo toMetaInfo(MetaInfoHelper metaInfoHelper)

richTextToString

public String richTextToString(RichTextInfo richTextInfo)

save

public SaveResult<Data> save(Data input)
                      throws AssemblyException
Throws:
AssemblyException

upWrap

private void upWrap(CluSetInfo cluSetInfo)
             throws AssemblyException
Throws:
AssemblyException

wrap

private void wrap(CluSetInfo cluSetInfo)
           throws AssemblyException
Throws:
AssemblyException

setWrapperCluSetInfoValues

private void setWrapperCluSetInfoValues(CluSetInfo wrapperCluSet,
                                        CluSetInfo cluSetInfo)

saveCluSet

private SaveResult<Data> saveCluSet(Data input)
                             throws AssemblyException
Throws:
AssemblyException

getMembershipQuerySearchResult

private List<String> getMembershipQuerySearchResult(MembershipQueryInfo query)
                                             throws MissingParameterException
Throws:
MissingParameterException

toCluSetHelper

private CluSetHelper toCluSetHelper(CluSetInfo cluSetInfo)
                             throws Exception
Throws:
Exception

addToCluIds

private void addToCluIds(Data clusData,
                         List<String> cluIds)

toCluSetInfo

private CluSetInfo toCluSetInfo(CluSetHelper cluSetHelper)

toMembershipQueryInfo

private MembershipQueryInfo toMembershipQueryInfo(CluSetRangeHelper cluSetRangeHelper)

toRichTextInfo

private RichTextInfo toRichTextInfo(String text)

assemble

public Data assemble(Void input)
              throws AssemblyException
Throws:
AssemblyException

disassemble

public Void disassemble(Data input)
                 throws AssemblyException
Throws:
AssemblyException

getLuService

public LuService getLuService()

setLuService

public void setLuService(LuService luService)

getDataType

protected String getDataType()
Description copied from class: BaseAssembler
This method should return the data type of the implementing assembler

Specified by:
getDataType in class BaseAssembler<Data,Void>
Returns:
the data type, i.e. "CreditCourseProposal" from the CreditCourseProposalAssembler

getDefaultMetadata

public Metadata getDefaultMetadata()
Specified by:
getDefaultMetadata in interface Assembler<Data,Void>
Overrides:
getDefaultMetadata in class BaseAssembler<Data,Void>

getDocumentPropertyName

protected String getDocumentPropertyName()
Description copied from class: BaseAssembler
This method should return the root document property name

Specified by:
getDocumentPropertyName in class BaseAssembler<Data,Void>
Returns:
the document property name, i.e. "course" from the CreditCourseProposalAssembler

getDtoName

protected String getDtoName()
Description copied from class: BaseAssembler
This method should return the DTO name of the implementing assembler

Specified by:
getDtoName in class BaseAssembler<Data,Void>
Returns:
the DTO name, i.e. "kuali.lu.type.CreditCourse" from the CreditCourseProposalAssembler

getQualification

protected AttributeSet getQualification(String idType,
                                        String id)
Description copied from class: BaseAssembler
This method should return the qualification name for the document type

Specified by:
getQualification in class BaseAssembler<Data,Void>
Returns:
the qualifications in at AttributeSet


Copyright © 2010 The Kuali Foundation. All rights reserved.