org.kuali.student.common.service.impl
Class BaseAssembler

java.lang.Object
  extended by org.kuali.student.common.service.impl.BaseAssembler
Direct Known Subclasses:
AtpAssembler, CommentServiceAssembler, DocumentServiceAssembler, LearningObjectiveServiceAssembler, LrcServiceAssembler, LuServiceAssembler, OrganizationAssembler, ProposalAssembler, StatementAssembler, StatementTreeViewAssembler

public class BaseAssembler
extends Object


Field Summary
(package private) static Logger logger
           
 
Constructor Summary
BaseAssembler()
           
 
Method Summary
static Map<String,String> toAttributeMap(List<? extends Attribute<?>> attributes)
           
static
<A extends Attribute<O>,O extends AttributeOwner<A>>
List<A>
toGenericAttributes(Class<A> attributeClass, Map<String,String> attributeMap, O owner, CrudDao dao)
           
static
<T extends TypeInfo,S extends Type<?>>
T
toGenericTypeInfo(Class<T> typeInfoClass, S typeEntity)
           
static
<T extends TypeInfo,S extends Type<?>>
List<T>
toGenericTypeInfoList(Class<T> typeInfoClass, List<S> typeEntities)
           
static List<String> toGenericTypeKeyList(List<? extends Type<?>> typeEntities)
           
protected static MetaInfo toMetaInfo(MetaEntity metaEntity)
           
protected static MetaInfo toMetaInfo(Meta meta, Long versionInd)
           
static
<T extends RichText>
T
toRichText(Class<T> richTextClass, RichTextInfo richTextInfo)
           
static RichTextInfo toRichTextInfo(RichText entity)
           
static VersionInfo toVersionInfo(Version version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final Logger logger
Constructor Detail

BaseAssembler

public BaseAssembler()
Method Detail

toAttributeMap

public static Map<String,String> toAttributeMap(List<? extends Attribute<?>> attributes)

toGenericAttributes

public static <A extends Attribute<O>,O extends AttributeOwner<A>> List<A> toGenericAttributes(Class<A> attributeClass,
                                                                                               Map<String,String> attributeMap,
                                                                                               O owner,
                                                                                               CrudDao dao)
                                                        throws InvalidParameterException
Throws:
InvalidParameterException

toGenericTypeInfo

public static <T extends TypeInfo,S extends Type<?>> T toGenericTypeInfo(Class<T> typeInfoClass,
                                                                         S typeEntity)
Type Parameters:
T - TypeInfo class
S - Type Class
Parameters:
typeInfoClass - the class of the resulting typeInfo object
typeEntity - the typeEntity to copy from
Returns:
a new TypeInfo

toGenericTypeInfoList

public static <T extends TypeInfo,S extends Type<?>> List<T> toGenericTypeInfoList(Class<T> typeInfoClass,
                                                                                   List<S> typeEntities)

toGenericTypeKeyList

public static List<String> toGenericTypeKeyList(List<? extends Type<?>> typeEntities)

toMetaInfo

protected static MetaInfo toMetaInfo(MetaEntity metaEntity)

toMetaInfo

protected static MetaInfo toMetaInfo(Meta meta,
                                     Long versionInd)

toRichText

public static <T extends RichText> T toRichText(Class<T> richTextClass,
                                                RichTextInfo richTextInfo)

toRichTextInfo

public static RichTextInfo toRichTextInfo(RichText entity)

toVersionInfo

public static VersionInfo toVersionInfo(Version version)


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