Package com.jalios.jcms.transtyping
Class TranstypingManager
java.lang.Object
com.jalios.jcms.transtyping.TranstypingManager
- All Implemented Interfaces:
JPropertiesListener
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTranstype(Member mbr) <T extends Data>
booleancanTranstype(Member mbr, Caddy caddy) <T extends Data>
booleancanTranstype(Member mbr, Caddy caddy, Class<T> target) booleancanTranstype(Member mbr, Class<?> c) canTranstype(Member mbr, List<S> datas, Class<T> target) canTranstype(Member mbr, S data) canTranstype(Member mbr, S data, Class<T> target) booleancanTranstype(Class<?> c) canTranstype(S data, Class<T> target) checkCanTranstype(Member mbr) checkCanTranstype(Member mbr, Class<?> c) <S extends Data,T extends Data>
CanTranstypeStatuscheckCanTranstype(Member mbr, List<S> datas, Class<T> target) <T extends Data,S extends Data>
CanTranstypeStatuscheckCanTranstype(Member mbr, S data, Class<T> target) checkCanTranstype(Class<?> c) <S extends Data,T extends Data>
CanTranstypeStatuscheckCanTranstype(S data) <S extends Data,T extends Data>
CanTranstypeStatuscheckCanTranstype(S data, Class<T> target) booleanstatic TranstypingManagergetJobs()getJobsFor(Caddy caddy) getJobsFor(Class<?> c) <T extends Data,S extends Data>
TranstypingJobgetJobsFor(S data, Class<T> target) <T extends Data>
List<TranstypingJob> getJobsFor(T data) voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.Transtype caddy to target typeTranstype caddy to target typetranstype(Member mbr, Class<S> source, Class<T> target, List<TranstypingTaskListener<S, T>> listeners) Transtype list of data to target typetranstype(Member mbr, Class<S> source, Class<T> target, List<TranstypingTaskListener<S, T>> listeners, boolean ignoreCanTranstype, boolean failsafe, boolean useCurrentTransaction) Transtype list of data of source type to target typeTranstype list of data to target typetranstype(Member mbr, List<S> sources, Class<T> target, List<TranstypingTaskListener<S, T>> listeners, boolean ignoreCanTranstype, boolean failsafe, boolean useCurrentTransaction) Transtype list of data to target typeTranstype data to target type
-
Field Details
-
ACL_USE
- See Also:
-
CTXT_TRANSTYPE_JOB
- See Also:
-
CTXT_TRANSTYPE_SOURCE
- See Also:
-
CTXT_TRANSTYPE_SOURCE_ID
- See Also:
-
MIGRATION_STATUS_PROPERTY_PREFIX
- See Also:
-
MIGRATION_ENABLE_PROP
- See Also:
-
-
Method Details
-
enabledOnMigration
public boolean enabledOnMigration() -
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
canTranstype
-
checkCanTranstype
-
canTranstype
-
checkCanTranstype
-
canTranstype
-
checkCanTranstype
public <S extends Data,T extends Data> CanTranstypeStatus checkCanTranstype(S data, Class<T> target) -
checkCanTranstype
-
canTranstype
-
checkCanTranstype
-
checkCanTranstype
-
canTranstype
-
canTranstype
-
canTranstype
-
canTranstype
-
canTranstype
-
checkCanTranstype
public <T extends Data,S extends Data> CanTranstypeStatus checkCanTranstype(Member mbr, S data, Class<T> target) -
getJobs
-
getJobsFor
-
getJobsFor
-
getJobsFor
-
getJobsFor
-
transtype
public <S extends Data,T extends Data> T transtype(Member mbr, S source, Class<T> target) throws Exception Transtype data to target type- Parameters:
mbr- the member to performing the actionsource- data to be transtypedtarget- type class for transtyping- Returns:
- transtyped instance
- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <T extends Data> List<T> transtype(Member mbr, Caddy caddy, Class<T> target) throws Exception Transtype caddy to target type- Parameters:
mbr- the member to performing the actioncaddy- data to be transtypedtarget- type class for transtyping- Returns:
- list of transtyped instance
- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <S extends Data,T extends Data> List<T> transtype(Member mbr, List<S> sources, Class<T> target) throws Exception Transtype list of data to target type- Parameters:
mbr- The member to performing the actionsources- List of data to be transtypedtarget- type class for transtyping- Returns:
- list of transtyped instance
- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <S extends Data,T extends Data> List<T> transtype(Member mbr, Caddy caddy, Class<T> target, List<TranstypingTaskListener<S, T>> listeners) throws ExceptionTranstype caddy to target type- Parameters:
mbr- The member to performing the actioncaddy- list of caddy data to be transtypedtarget- type class for transtypinglisteners- list of TranstypingTaskListener used in action- Returns:
- list of transtyped instance
- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <S extends Data,T extends Data> List<T> transtype(Member mbr, List<S> sources, Class<T> target, List<TranstypingTaskListener<S, T>> listeners, boolean ignoreCanTranstype, boolean failsafe, boolean useCurrentTransaction) throws ExceptionTranstype list of data to target type- Parameters:
mbr- the member to performing the actionsources- list of data to be transtypedtarget- type class for transtypinglisteners- list of TranstypingTaskListener used in actionignoreCanTranstype- ignore global data checkfailsafe- Ignore error and continueuseCurrentTransaction- Use current transaction- Returns:
- list of transtyped instance
- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <S extends Data,T extends Data> void transtype(Member mbr, Class<S> source, Class<T> target, List<TranstypingTaskListener<S, T>> listeners) throws ExceptionTranstype list of data to target type- Parameters:
mbr- the member to performing the actionsource- list of data to be transtypedtarget- type class for transtypinglisteners- list of TranstypingTaskListener used in action- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
transtype
public <S extends Data,T extends Data> void transtype(Member mbr, Class<S> source, Class<T> target, List<TranstypingTaskListener<S, T>> listeners, boolean ignoreCanTranstype, boolean failsafe, boolean useCurrentTransaction) throws ExceptionTranstype list of data of source type to target type- Parameters:
mbr- the member to performing the actionsource- type class to be transtypedtarget- type class for transtypinglisteners- list of TranstypingTaskListener used in actionignoreCanTranstype- ignore global data checkfailsafe- Ignore error and continueuseCurrentTransaction- Use current transaction- Throws:
Exception- If an error occurs- Since:
- jcms-11.0
-
getInstance
-