Skip to content
Snippets Groups Projects
RestSessionContainer.java 1.95 KiB
Newer Older
  • Learn to ignore specific revisions
  • Rosen Georgiev's avatar
    Rosen Georgiev committed
    /*
    Copyright (c) 2018 Vereign AG [https://www.vereign.com]
    
    This is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.
    
    You should have received a copy of the GNU Affero General Public License
    along with this program. If not, see <http://www.gnu.org/licenses/>.
    */
    
    package api.test.rest;
    
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
    import api.test.rest.pojo.connection.Connection;
    import api.test.rest.pojo.credentialDef.CredentialDef;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
    import api.test.rest.pojo.presentationRequest.Presentation;
    
    import api.test.rest.pojo.schema.Schema;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
    
    public class RestSessionContainer {
    
    
        private Schema currentSchema;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
        private CredentialDef currentCredentialDef;
        private Connection currentConnection;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
        private Presentation currentPresentation;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
        public Presentation getCurrentPresentation() {
            return currentPresentation;
        }
    
        public void setCurrentPresentation(Presentation currentPresentation) {
            this.currentPresentation = currentPresentation;
        }
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
    
        public Connection getCurrentConnection() {
            return currentConnection;
        }
    
        public void setCurrentConnection(Connection currentConnection) {
            this.currentConnection = currentConnection;
        }
    
        public CredentialDef getCurrentCredentialDef() {
            return currentCredentialDef;
        }
    
        public void setCurrentCredentialDef(CredentialDef currentCredentialDef) {
            this.currentCredentialDef = currentCredentialDef;
        }
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
    
    
        public Schema getCurrentSchema() {
            return currentSchema;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
        }
    
    
        public void setCurrentSchema(Schema currentSchema) {
            this.currentSchema = currentSchema;
    
    Rosen Georgiev's avatar
    Rosen Georgiev committed
        }
    }