com.ibm.tivoli.maximo.oslc.provider.app.strategy

Class OSLCQueryStrategy

  • java.lang.Object
    • com.ibm.tivoli.maximo.oslc.provider.app.strategy.OSLCQueryStrategy


  • public abstract class OSLCQueryStrategy
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String BASE_URI 
      static java.lang.String ERROR_GROUP 
      static java.lang.String ERROR_MESSAGE 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String asWhereStringList(java.util.Collection strings)
      Returns the provided list in the form of a where clause list
      static void checkValidation(MboRemote mbo)
      If finds an invalid state will throw an exception.
      static java.util.Set collectToStringSet(MboSetRemote mboSet, java.lang.String attributeName) 
      static java.lang.String generateURI(java.lang.String key)
      For the given key it generates a URI that is propperly escaped
      static java.util.Set getApps(MboRemote oslcQuery)
      Finds the unique app names on the given OSLCQUERY app hierarchy.
      static boolean isClauseEmpty(MboRemote mbo) 
      static boolean isScriptEmpty(MboRemote mbo) 
      static void processRules(MboRemote mbo)
      Sets fields and required and readonly or not according to the values found.
      • Methods inherited from class java.lang.Object

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

      • isClauseEmpty

        public static boolean isClauseEmpty(MboRemote mbo)
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • isScriptEmpty

        public static boolean isScriptEmpty(MboRemote mbo)
                                     throws java.rmi.RemoteException,
                                            MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • processRules

        public static void processRules(MboRemote mbo)
                                 throws java.rmi.RemoteException,
                                        MXException
        Sets fields and required and readonly or not according to the values found.
        Throws:
        java.rmi.RemoteException
        MXException
      • checkValidation

        public static void checkValidation(MboRemote mbo)
                                    throws java.rmi.RemoteException,
                                           MXException
        If finds an invalid state will throw an exception.
        Throws:
        java.rmi.RemoteException
        MXException
      • getApps

        public static java.util.Set getApps(MboRemote oslcQuery)
                                     throws MXException,
                                            java.rmi.RemoteException
        Finds the unique app names on the given OSLCQUERY app hierarchy.
        Throws:
        MXException
        java.rmi.RemoteException
      • collectToStringSet

        public static java.util.Set collectToStringSet(MboSetRemote mboSet,
                                                       java.lang.String attributeName)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Parameters:
        mboSet -
        attributeName -
        Throws:
        MXException
        java.rmi.RemoteException
      • asWhereStringList

        public static java.lang.String asWhereStringList(java.util.Collection strings)
        Returns the provided list in the form of a where clause list
      • generateURI

        public static java.lang.String generateURI(java.lang.String key)
        For the given key it generates a URI that is propperly escaped