|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.template.ContainerTemplateHelper
Supported API: true
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static Object[] |
DEF_PARAMS
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static ContainerTemplateService |
service
Supported API: true |
Constructor Summary | |
ContainerTemplateHelper()
|
Method Summary | |
private static void |
checkContainerAndTemplate(WTContainerRef parent,
WTContainerTemplate tmpl)
|
static WTContainerTemplate |
copyTemplate(WTContainerRef parentContainer,
WTContainerTemplate template,
String name)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplate |
copyTemplate(WTContainerRef parentContainer,
WTContainerTemplate template,
String name,
String descr,
boolean enabled)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplate |
copyTemplate(WTContainerTemplate template,
String name)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplate |
copyTemplate(WTContainerTemplate template,
String name,
String descr,
boolean enabled)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplateRef |
copyTemplateRef(WTContainerRef parentContainer,
WTContainerTemplateRef tmplRef,
String name)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplateRef |
copyTemplateRef(WTContainerRef parentContainer,
WTContainerTemplateRef tmplRef,
String name,
String descr,
boolean enabled)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplateRef |
copyTemplateRef(WTContainerTemplateRef tmplRef,
String name)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainerTemplateRef |
copyTemplateRef(WTContainerTemplateRef tmplRef,
String name,
String descr,
boolean enabled)
Saves the non-identity information of a template along with any associated content files to a new template. |
static WTContainer |
getDefaultContainerValues(WTContainerTemplateMaster master)
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. |
static WTContainer |
getDefaultContainerValues(WTContainerTemplateMasterReference masterRef)
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. |
static WTContainer |
getDefaultContainerValues(WTContainerTemplateMasterReference masterRef,
WTContainer cont)
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. |
static WTContainer |
getDefaultContainerValues(WTContainerTemplateMaster master,
WTContainer cont)
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. |
private static DefaultWTContainerTemplate |
getTemplateFromReference(WTContainerTemplateRef tmplRef)
|
static boolean |
hasDownloadableXML(WTContainerTemplateRef tmplRef)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(ContainerTemplateHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final ContainerTemplateService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final Object[] DEF_PARAMS
Constructor Detail |
public ContainerTemplateHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(ContainerTemplateHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static WTContainerTemplate copyTemplate(WTContainerTemplate template, String name) throws WTException
template
- The template to be copied.name
- This is the name that the new template is to have. An exception will be thrown if the name is not unique within the container that it is being saved to.
WTException
public static WTContainerTemplate copyTemplate(WTContainerRef parentContainer, WTContainerTemplate template, String name) throws WTException
parentContainer
- template
- name
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributes
WTException
public static WTContainerTemplate copyTemplate(WTContainerTemplate template, String name, String descr, boolean enabled) throws WTException
template
- name
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributesdescr
- enabled
-
WTException
public static WTContainerTemplate copyTemplate(WTContainerRef parentContainer, WTContainerTemplate template, String name, String descr, boolean enabled) throws WTException
parentContainer
- template
- name
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributesdescr
- enabled
-
WTException
public static WTContainerTemplateRef copyTemplateRef(WTContainerTemplateRef tmplRef, String name) throws WTException
tmplRef
- The template to be copied.name
- This is the name that the new template is to have. An exception will be thrown if the name is not unique within the container that it is being saved to.
WTException
public static WTContainerTemplateRef copyTemplateRef(WTContainerRef parentContainer, WTContainerTemplateRef tmplRef, String name) throws WTException
parentContainer
- tmplRef
- The template to be copied.name
- This is the name that the new template is to have. An exception will be thrown if the name is not unique within the container that it is being saved to.
WTException
public static WTContainerTemplateRef copyTemplateRef(WTContainerTemplateRef tmplRef, String name, String descr, boolean enabled) throws WTException
tmplRef
- name
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributesdescr
- enabled
-
WTException
public static WTContainerTemplateRef copyTemplateRef(WTContainerRef parentContainer, WTContainerTemplateRef tmplRef, String name, String descr, boolean enabled) throws WTException
parentContainer
- tmplRef
- name
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributesdescr
- enabled
-
WTException
public static WTContainer getDefaultContainerValues(WTContainerTemplateMasterReference masterRef) throws WTException
masterRef
-
WTException
public static WTContainer getDefaultContainerValues(WTContainerTemplateMasterReference masterRef, WTContainer cont) throws WTException
masterRef
- cont
- An exception is thrown if the passed in container has been persisted.
WTException
public static WTContainer getDefaultContainerValues(WTContainerTemplateMaster master) throws WTException
master
-
WTException
public static WTContainer getDefaultContainerValues(WTContainerTemplateMaster master, WTContainer cont) throws WTException
master
- cont
- An exception is thrown if the passed in container has been persisted.
WTException
private static void checkContainerAndTemplate(WTContainerRef parent, WTContainerTemplate tmpl) throws WTException
WTException
private static DefaultWTContainerTemplate getTemplateFromReference(WTContainerTemplateRef tmplRef) throws WTException
WTException
public static boolean hasDownloadableXML(WTContainerTemplateRef tmplRef) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |