Class StoreFacade

  • Direct Known Subclasses:
    PermissionStoreFacade

    public class StoreFacade
    extends Object
    The class with the inner classes that do all the work here.

    Created by Jeff Gaynor
    on 12/18/20 at 7:05 AM

    • Field Detail

      • environment

        protected transient OA2SE environment
      • INIT_NAME

        protected String INIT_NAME
      • checkInitMessage

        protected String checkInitMessage
      • TO_XML_NAME

        public String TO_XML_NAME
      • FROM_XML_NAME

        public String FROM_XML_NAME
      • CREATE_NAME

        protected String CREATE_NAME
      • READ_NAME

        protected String READ_NAME
      • UPDATE_NAME

        protected String UPDATE_NAME
      • SAVE_NAME

        protected String SAVE_NAME
      • SEARCH_NAME

        protected String SEARCH_NAME
      • COUNT_NAME

        protected String COUNT_NAME
      • KEYS_NAME

        protected String KEYS_NAME
      • REMOVE_NAME

        protected String REMOVE_NAME
      • STORE_TYPES_STEM_NAME

        public static String STORE_TYPES_STEM_NAME
      • VERSION_CREATE_NAME

        protected String VERSION_CREATE_NAME
      • VERSION_GET_VERSIONS_NAME

        protected String VERSION_GET_VERSIONS_NAME
      • VERSION_RESTORE_NAME

        protected String VERSION_RESTORE_NAME
      • SHUTDOWN

        public static String SHUTDOWN
    • Constructor Detail

      • StoreFacade

        public StoreFacade()
    • Method Detail

      • getStoreTypes

        public org.qdl_lang.variables.QDLStem getStoreTypes()
      • getLogger

        public edu.uiuc.ncsa.security.core.util.MyLoggingFacade getLogger()
      • setLogger

        public void setLogger​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
      • getLoader

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
      • getConfigurationNode

        public org.apache.commons.configuration.tree.ConfigurationNode getConfigurationNode()
      • setConfigurationNode

        public void setConfigurationNode​(org.apache.commons.configuration.tree.ConfigurationNode configurationNode)
      • checkInit

        protected void checkInit()
      • doSetup

        protected void doSetup​(boolean verboseOn)
                        throws Throwable
        Throws:
        Throwable
      • createAccessor

        protected QDLStoreAccessor createAccessor​(String storeType)
                                           throws Exception
        Thanks to the vagaraies of Java non-static inner class inheritence, it is just best if this livesin the encloising class and is called. That means it can be easily (and predictably) overridden.
        Parameters:
        storeType -
        Returns:
        Throws:
        Exception
      • setStoreAccessor

        public void setStoreAccessor​(QDLStoreAccessor storeAccessor)
      • convertArgsToVersionIDs

        protected org.qdl_lang.variables.QDLStem convertArgsToVersionIDs​(org.qdl_lang.variables.values.QDLValue[] objects,
                                                                         String name)
        Convert a list of objects to version id stems. The name is the name of the calling function, so error can be better created.
        Parameters:
        objects -
        name -
        Returns:
      • toVID

        protected StoreFacade.VID toVID​(org.qdl_lang.variables.QDLStem QDLStem)
        For a stem variable, checks that it is of the form
             [id, version] (in QDL)
         
        and returns an versioned id, StoreFacade.VID.

        If the argument is not in the right format, a null is returned instead.

        This may throw other exceptions if, e.g., the id is not a valid identifier

        Parameters:
        QDLStem -
        Returns:
      • toIdentifier

        protected edu.uiuc.ncsa.security.core.Identifier toIdentifier​(Object obj)