Class PModeRepository

  • All Implemented Interfaces:
    org.apache.commons.vfs2.FileListener

    public class PModeRepository
    extends Object
    implements org.apache.commons.vfs2.FileListener
    PMode repository implementation which will store current PModes. This will work as file listener as well. So adding and editing PModes will get automatically synced with this in memory repository.
    • Method Detail

      • getInstance

        public static PModeRepository getInstance()
                                           throws org.apache.axis2.AxisFault
        This will return the PModeRepository instance
        Throws:
        org.apache.axis2.AxisFault
      • findPModeFromAgreement

        public PMode findPModeFromAgreement​(String agreement)
        API method to get PMode using agreementRef
        Parameters:
        agreement - PMode Agreement
        Returns:
        pMode PMode object
      • fileCreated

        public void fileCreated​(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
                         throws Exception
        Specified by:
        fileCreated in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception
      • fileDeleted

        public void fileDeleted​(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
                         throws Exception
        Specified by:
        fileDeleted in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception
      • fileChanged

        public void fileChanged​(org.apache.commons.vfs2.FileChangeEvent fileChangeEvent)
                         throws Exception
        Specified by:
        fileChanged in interface org.apache.commons.vfs2.FileListener
        Throws:
        Exception