org.kuali.student.common.service.impl
Class BaseAssembler
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static final Logger logger
BaseAssembler
public BaseAssembler()
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 classS
- Type Class- Parameters:
typeInfoClass
- the class of the resulting typeInfo objecttypeEntity
- 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.