public class ContentBeanFactory
extends java.lang.Object
Constructor and Description |
---|
ContentBeanFactory() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
getContentClass(java.lang.Long type_)
Gets the class of the content object associated with the type passed in.
|
static java.lang.Class |
getContentClass(java.lang.Long type_,
java.lang.Long subtype_)
Gets the class of the content object associated with the type and sub-type passed in.
|
static Content |
newContent(java.lang.Long type_)
Creates a new Content object of the type specified.
|
static Content |
newContent(java.lang.Long type_,
java.lang.Long subtype_)
Creates a new Content object of the type and sub-type specified.
|
static void |
setApplicationContentSubtypeClass(int subtype_,
java.lang.Class customClass_)
Registers the java class to be instantiated when retrieving application
content objects of a given subtype.
|
static void |
setCustomContentSubtypeClass(int subtype_,
java.lang.Class customClass_)
Registers the java class to be instantiated when retrieving custom content
objects of a given subtype.
|
static void |
setCustomContentSubtypeClassesMap(java.util.Map subtypeToClass_)
Sets all the custom content subtype class mappings.
|
public static void setCustomContentSubtypeClass(int subtype_, java.lang.Class customClass_)
CustomContent
.subtype_
- The subtype of the custom content.customClass_
- The class to use for custom content of this subtype.public static void setApplicationContentSubtypeClass(int subtype_, java.lang.Class customClass_)
subtype_
- The subtype of the custom content.customClass_
- The class to use for custom content of this subtype.public static void setCustomContentSubtypeClassesMap(java.util.Map subtypeToClass_)
subtypeToClass_
- A map of CustomContent
.public static Content newContent(java.lang.Long type_)
null
as the sub-type.type_
- the type of content to createnewContent(Long, Long)
public static Content newContent(java.lang.Long type_, java.lang.Long subtype_)
type_
- the type of content to createsubtype_
- the subtype of content to create (may be null
)newContent(Long)
public static java.lang.Class getContentClass(java.lang.Long type_)
Content
.type_
- the content typegetContentClass(Long, Long)
public static java.lang.Class getContentClass(java.lang.Long type_, java.lang.Long subtype_)
Content
.type_
- the content typesubtype_
- the content sub-typegetContentClass(Long)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.