OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 177 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 177 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 30... Line 30...
30
import org.openconcerto.sql.model.SQLRowListRSH;
30
import org.openconcerto.sql.model.SQLRowListRSH;
31
import org.openconcerto.sql.model.SQLSelect;
31
import org.openconcerto.sql.model.SQLSelect;
32
import org.openconcerto.sql.model.SQLTable;
32
import org.openconcerto.sql.model.SQLTable;
33
import org.openconcerto.sql.model.Where;
33
import org.openconcerto.sql.model.Where;
34
import org.openconcerto.sql.request.SQLFieldTranslator;
34
import org.openconcerto.sql.request.SQLFieldTranslator;
-
 
35
import org.openconcerto.sql.users.User;
-
 
36
import org.openconcerto.sql.users.UserManager;
-
 
37
import org.openconcerto.sql.users.rights.UserRights;
-
 
38
import org.openconcerto.sql.users.rights.UserRightsManager;
35
import org.openconcerto.utils.BaseDirs;
39
import org.openconcerto.utils.BaseDirs;
36
import org.openconcerto.utils.FileUtils;
40
import org.openconcerto.utils.FileUtils;
37
import org.openconcerto.utils.StringUtils;
41
import org.openconcerto.utils.StringUtils;
38
 
42
 
39
import java.io.File;
43
import java.io.File;
Line 121... Line 125...
121
 
125
 
122
    public abstract SQLBase getBase();
126
    public abstract SQLBase getBase();
123
 
127
 
124
    public abstract DBRoot getRoot();
128
    public abstract DBRoot getRoot();
125
 
129
 
-
 
130
    public abstract UserManager getUserManager();
-
 
131
 
-
 
132
    public final User getCurrentUser() {
-
 
133
        return UserManager.getCurrentUser(getUserManager());
-
 
134
    }
-
 
135
 
-
 
136
    public abstract UserRightsManager getUserRightsManager();
-
 
137
 
-
 
138
    public final UserRights getCurrentUserRights() {
-
 
139
        return UserRightsManager.getCurrentUserRights(getUserRightsManager(), getUserManager());
-
 
140
    }
-
 
141
 
126
    public abstract DBSystemRoot getSystemRoot();
142
    public abstract DBSystemRoot getSystemRoot();
127
 
143
 
128
    public abstract SQLFilter getFilter();
144
    public abstract SQLFilter getFilter();
129
 
145
 
130
    public final SQLFieldTranslator getTranslator() {
146
    public final SQLFieldTranslator getTranslator() {