Examples of RootEnvironmentUserData


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContextEnvironment.RootEnvironmentUserData

       return masterContext;
    }
   
    public WGUserAccess getoriginaluserdata() {
       
        RootEnvironmentUserData userData = getEnvironment().getRootEnvironmentUserData();
       
        // We have no root environment data = we are in root environment. So we return the current db user access
        if (userData == null) {
            return db().getSessionContext().getUserAccess();
        }
       
        // We return root environment data only if it matches the database currently in context
        if (userData.getDbkey().equals(db().getDbReference())) {
            return userData.getUserAccess();
        }
       
        // We have root environment data, but it does not match the current context db = we have no data for the current db. So return null.
        else {
            return null;
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLContextEnvironment.RootEnvironmentUserData

            else {
                try {
                    WGDatabase theDB = context.db(getMainContext().getdocument().getDatabase().getDbReference());
                    // We try to take the root environent user data of our main context db. If the root user has no access to it we take the parent context dbs data instead.
                    if (theDB.isSessionOpen()) {
                        _rootEnvironmentUserData = new RootEnvironmentUserData(theDB.getDbReference(), theDB.getSessionContext().getUserAccess());
                    }
                    else {
                        _rootEnvironmentUserData = new RootEnvironmentUserData(context.db().getDbReference(), context.db().getSessionContext().getUserAccess());
                    }
                }
                catch (WGException e) {
                    e.printStackTrace();
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.