Class StoreFacade

  • All Implemented Interfaces:
    edu.uiuc.ncsa.qdl.extensions.QDLModuleMetaClass, Serializable
    Direct Known Subclasses:
    PermissionStoreFacade

    public class StoreFacade
    extends Object
    implements edu.uiuc.ncsa.qdl.extensions.QDLModuleMetaClass
    The class with the inner classes that do all the work here.

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

    See Also:
    Serialized Form
    • 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
      • SIZE_NAME

        protected String SIZE_NAME
      • KEYS_NAME

        protected String KEYS_NAME
      • REMOVE_NAME

        protected String REMOVE_NAME
      • STORE_TYPES_STEM_NAME

        public String STORE_TYPES_STEM_NAME
      • STORE_HELP_NAME

        public String STORE_HELP_NAME
      • VERSION_CREATE_NAME

        protected String VERSION_CREATE_NAME
      • VERSION_GET_NAME

        protected String VERSION_GET_NAME
      • VERSION_REMOVE_NAME

        protected String VERSION_REMOVE_NAME
      • VERSION_GET_VERSIONS_NAME

        protected String VERSION_GET_VERSIONS_NAME
      • VERSION_RESTORE_NAME

        protected String VERSION_RESTORE_NAME
      • DIFFERENCE_NAME

        protected String DIFFERENCE_NAME
    • Constructor Detail

      • StoreFacade

        public StoreFacade()
    • Method Detail

      • getStoreTypes

        public List<String> 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 edu.uiuc.ncsa.qdl.variables.QDLStem convertArgsToVersionIDs​(Object[] objects,
                                                                              String name)
      • toVID

        protected StoreFacade.VID toVID​(edu.uiuc.ncsa.qdl.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)