Class TranstypingManager

java.lang.Object
com.jalios.jcms.transtyping.TranstypingManager
All Implemented Interfaces:
JPropertiesListener

public class TranstypingManager extends Object implements JPropertiesListener
  • Field Details

  • Method Details

    • enabledOnMigration

      public boolean enabledOnMigration()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked 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.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • canTranstype

      public boolean canTranstype(Member mbr)
    • checkCanTranstype

      public CanTranstypeStatus checkCanTranstype(Member mbr)
    • canTranstype

      public boolean canTranstype(Class<?> c)
    • checkCanTranstype

      public CanTranstypeStatus checkCanTranstype(Class<?> c)
    • canTranstype

      public <S extends Data, T extends Data> boolean canTranstype(S data, Class<T> target)
    • checkCanTranstype

      public <S extends Data, T extends Data> CanTranstypeStatus checkCanTranstype(S data, Class<T> target)
    • checkCanTranstype

      public <S extends Data, T extends Data> CanTranstypeStatus checkCanTranstype(S data)
    • canTranstype

      public boolean canTranstype(Member mbr, Class<?> c)
    • checkCanTranstype

      public CanTranstypeStatus checkCanTranstype(Member mbr, Class<?> c)
    • checkCanTranstype

      public <S extends Data, T extends Data> CanTranstypeStatus checkCanTranstype(Member mbr, List<S> datas, Class<T> target)
    • canTranstype

      public <S extends Data, T extends Data> boolean canTranstype(Member mbr, List<S> datas, Class<T> target)
    • canTranstype

      public <T extends Data> boolean canTranstype(Member mbr, Caddy caddy)
    • canTranstype

      public <T extends Data> boolean canTranstype(Member mbr, Caddy caddy, Class<T> target)
    • canTranstype

      public <T extends Data, S extends Data> boolean canTranstype(Member mbr, S data)
    • canTranstype

      public <T extends Data, S extends Data> boolean canTranstype(Member mbr, S data, Class<T> target)
    • checkCanTranstype

      public <T extends Data, S extends Data> CanTranstypeStatus checkCanTranstype(Member mbr, S data, Class<T> target)
    • getJobs

      public List<TranstypingJob> getJobs()
    • getJobsFor

      public <T extends Data> List<TranstypingJob> getJobsFor(T data)
    • getJobsFor

      public List<TranstypingJob> getJobsFor(Class<?> c)
    • getJobsFor

      public <T extends Data, S extends Data> TranstypingJob getJobsFor(S data, Class<T> target)
    • getJobsFor

      public List<TranstypingJob> getJobsFor(Caddy caddy)
    • 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 action
      source - data to be transtyped
      target - 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 action
      caddy - data to be transtyped
      target - 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 action
      sources - List of data to be transtyped
      target - 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 Exception
      Transtype caddy to target type
      Parameters:
      mbr - The member to performing the action
      caddy - list of caddy data to be transtyped
      target - type class for transtyping
      listeners - 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 Exception
      Transtype list of data to target type
      Parameters:
      mbr - the member to performing the action
      sources - list of data to be transtyped
      target - type class for transtyping
      listeners - list of TranstypingTaskListener used in action
      ignoreCanTranstype - ignore global data check
      failsafe - Ignore error and continue
      useCurrentTransaction - 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 Exception
      Transtype list of data to target type
      Parameters:
      mbr - the member to performing the action
      source - list of data to be transtyped
      target - type class for transtyping
      listeners - 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 Exception
      Transtype list of data of source type to target type
      Parameters:
      mbr - the member to performing the action
      source - type class to be transtyped
      target - type class for transtyping
      listeners - list of TranstypingTaskListener used in action
      ignoreCanTranstype - ignore global data check
      failsafe - Ignore error and continue
      useCurrentTransaction - Use current transaction
      Throws:
      Exception - If an error occurs
      Since:
      jcms-11.0
    • getInstance

      public static TranstypingManager getInstance()