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

    • 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)
      • getCFNode

        public edu.uiuc.ncsa.security.core.cf.CFNode getCFNode()
      • setCFNode

        public void setCFNode​(edu.uiuc.ncsa.security.core.cf.CFNode cfNode)
      • getLoader

        public edu.uiuc.ncsa.security.core.util.ConfigurationLoader<? extends edu.uiuc.ncsa.security.core.util.AbstractEnvironment> getLoader()
      • 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 vagaries of Java non-static inner class inheritence, it is just best if this lives in the enclosing 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)