OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 Rev 156
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.sql.users.rights;
14
 package org.openconcerto.sql.users.rights;
15
 
15
 
16
import org.openconcerto.sql.TM;
-
 
17
import org.openconcerto.sql.element.ConfSQLElement;
-
 
18
import org.openconcerto.sql.element.SQLComponent;
16
import org.openconcerto.sql.element.SQLComponent;
-
 
17
import org.openconcerto.sql.element.SQLElement;
19
import org.openconcerto.sql.element.UISQLComponent;
18
import org.openconcerto.sql.element.UISQLComponent;
20
import org.openconcerto.sql.model.DBRoot;
19
import org.openconcerto.sql.model.DBRoot;
21
import org.openconcerto.sql.utils.SQLCreateTable;
20
import org.openconcerto.sql.utils.SQLCreateTable;
22
import org.openconcerto.ui.component.ITextArea;
21
import org.openconcerto.ui.component.ITextArea;
23
import org.openconcerto.utils.ListMap;
22
import org.openconcerto.utils.ListMap;
24
import org.openconcerto.utils.i18n.I18nUtils;
-
 
25
 
23
 
26
import java.util.Arrays;
24
import java.util.Arrays;
27
import java.util.List;
25
import java.util.List;
28
 
26
 
29
public class RightSQLElement extends ConfSQLElement {
27
public class RightSQLElement extends SQLElement {
30
 
28
 
31
    public static final String TABLE_NAME = "RIGHT";
29
    public static final String TABLE_NAME = "RIGHT";
32
 
30
 
33
    static public SQLCreateTable getCreateTable(final DBRoot root) {
31
    static public SQLCreateTable getCreateTable(final DBRoot root) {
34
        final SQLCreateTable res = new SQLCreateTable(root, TABLE_NAME);
32
        final SQLCreateTable res = new SQLCreateTable(root, TABLE_NAME);
Line 36... Line 34...
36
        res.addVarCharColumn("NOM", 256);
34
        res.addVarCharColumn("NOM", 256);
37
        res.addVarCharColumn("DESCRIPTION", 500);
35
        res.addVarCharColumn("DESCRIPTION", 500);
38
        return res;
36
        return res;
39
    }
37
    }
40
 
38
 
41
    public RightSQLElement() {
39
    public RightSQLElement(final DBRoot root) {
42
        super(TABLE_NAME);
40
        super(root.findTable(TABLE_NAME), null, "sql.right");
43
        this.setL18nPackageName(I18nUtils.getPackageName(TM.class));
-
 
44
    }
41
    }
45
 
42
 
46
    @Override
43
    @Override
47
    public boolean isShared() {
44
    public boolean isShared() {
48
        return true;
45
        return true;