com.ibm.jarm.api.util

Class P8CE_Convert

  • java.lang.Object
    • com.ibm.jarm.api.util.P8CE_Convert


  • public class P8CE_Convert
    extends java.lang.Object
    Public utility class that provides static convenience methods to allow for conversions between P8CE (JACE) and JARM for various types.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static com.filenet.api.core.Folder fromJARM(Container jarmContainer)
      Converts a JARM Container instance into a JACE com.filenet.api.core.Folder instance.
      static com.filenet.api.core.Document fromJARM(ContentItem jarmContentItem)
      Converts a JARM ContentItem instance into a JACE com.filenet.api.core.Document instance.
      static com.filenet.api.core.Connection fromJARM(DomainConnection jarmDomainConnection)
      Converts a JARM DomainConnection instance into a P8CE com.filenet.api.core.Connection instance, if possible.
      static com.filenet.api.core.ObjectStore fromJARM(Repository jarmRepository)
      Converts a JARM Repository instance into a P8CE com.filenet.api.core.ObjectStore instance, if possible.
      static com.filenet.api.core.Domain fromJARM(RMDomain jarmRMDomain)
      Converts a JARM RMDomain instance into a P8CE com.filenet.api.core.Domain instance, if possible.
      static DomainConnection fromP8CE(com.filenet.api.core.Connection p8CEConnection)
      Converts a P8 Content Engine com.filenet.api.core.Connection instance into a JARM DomainConnection instance.
      static ContentItem fromP8CE(com.filenet.api.core.Document p8CEDocument)
      Converts a P8CE com.filenet.api.core.Document instance into a JARM ContentItem instance.
      static RMDomain fromP8CE(com.filenet.api.core.Domain p8CEDomain)
      Converts a P8CE com.filenet.api.core.Domain instance into a JARM RMDomain instance.
      static Container fromP8CE(com.filenet.api.core.Folder p8CEFolder)
      Converts a P8CE com.filenet.api.core.Folder instance into a JARM Container (or subclass thereof) instance.
      static Repository fromP8CE(com.filenet.api.core.ObjectStore p8CEObjectStore)
      Converts a P8CE com.filenet.api.core.ObjectStore instance into a JARM Repository instance.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromP8CE

        public static DomainConnection fromP8CE(com.filenet.api.core.Connection p8CEConnection)
        Converts a P8 Content Engine com.filenet.api.core.Connection instance into a JARM DomainConnection instance.
        Parameters:
        p8CEConnection - the P8CE instance to convert from.
        Returns:
        A new JARM DomainConnection instance.
      • fromJARM

        public static com.filenet.api.core.Connection fromJARM(DomainConnection jarmDomainConnection)
        Converts a JARM DomainConnection instance into a P8CE com.filenet.api.core.Connection instance, if possible.
        Parameters:
        jarmDomainConnection - The JARM DomainConnection instance to convert from. This entry cannot be null.
        Returns:
        A P8CE com.filenet.api.core.Connection instance. This entry can be null if the JARM instance is not a P8CE type.
      • fromP8CE

        public static RMDomain fromP8CE(com.filenet.api.core.Domain p8CEDomain)
        Converts a P8CE com.filenet.api.core.Domain instance into a JARM RMDomain instance. If the given P8CE Domain instance is either not already resolved from the P8 Content Engine or the instance is missing any minimum-required properties in its property cache (from the JARM point-of-view), then a property fetch from the P8 Content Engine is performed.
        Parameters:
        p8CEDomain - The P8CE instance to convert from. This entry cannot be null.
        Returns:
        A new RMDomain instance.
      • fromJARM

        public static com.filenet.api.core.Domain fromJARM(RMDomain jarmRMDomain)
        Converts a JARM RMDomain instance into a P8CE com.filenet.api.core.Domain instance, if possible.
        Parameters:
        jarmRMDomain - The JARM RMDomain instance to convert from. This entry cannot be null.
        Returns:
        A com.filenet.api.core.Domain instance. This entry can be null if the JARM instance is not a P8CE type.
      • fromJARM

        public static com.filenet.api.core.ObjectStore fromJARM(Repository jarmRepository)
        Converts a JARM Repository instance into a P8CE com.filenet.api.core.ObjectStore instance, if possible.
        Parameters:
        jarmRepository - the JARM Repository instance to convert from. This entry cannot be null.
        Returns:
        A com.filenet.api.core.ObjectStore instance. This entry can be null if the JARM instance is not a P8CE type.
      • fromP8CE

        public static Repository fromP8CE(com.filenet.api.core.ObjectStore p8CEObjectStore)
        Converts a P8CE com.filenet.api.core.ObjectStore instance into a JARM Repository instance.
        Parameters:
        p8CEObjectStore - the P8CE com.filenet.api.core.ObjectStore instance to convert from. This entry cannot be null.
        Returns:
        A Repository instance.
      • fromJARM

        public static com.filenet.api.core.Folder fromJARM(Container jarmContainer)
        Converts a JARM Container instance into a JACE com.filenet.api.core.Folder instance.
        Parameters:
        jarmContainer - the JARM Container instance to convert from. This entry cannot be null.
        Returns:
        A com.filenet.api.core.Folder instance. This entry can be null if the JARM instance is not a P8CE type.
      • fromP8CE

        public static Container fromP8CE(com.filenet.api.core.Folder p8CEFolder)
        Converts a P8CE com.filenet.api.core.Folder instance into a JARM Container (or subclass thereof) instance.
        Parameters:
        p8CEFolder - the com.filenet.api.core.Folder instance to convert from. This entry cannot be null.
        Returns:
        A Container (or subclass thereof) instance.
      • fromJARM

        public static com.filenet.api.core.Document fromJARM(ContentItem jarmContentItem)
        Converts a JARM ContentItem instance into a JACE com.filenet.api.core.Document instance.
        Parameters:
        jarmContentItem - the JARM ContentItem instance to convert from. This entry cannot be null.
        Returns:
        A com.filenet.api.core.Document instance. This entry can be null if the JARM instance is not a P8CE type.
      • fromP8CE

        public static ContentItem fromP8CE(com.filenet.api.core.Document p8CEDocument)
        Converts a P8CE com.filenet.api.core.Document instance into a JARM ContentItem instance.
        Parameters:
        p8CEDocument - the com.filenet.api.core.Document instance to convert from. This entry cannot be null.
        Returns:
        A ContentItem instance.

© Copyright IBM Corp. 2010, 2013. All Rights Reserved.