1 20 package org.openi.security; 21 22 23 29 public class Permission { 30 public static final Permission APP_ADMINISTRATION = new Permission( 31 "Application_Administration"); 32 public static final Permission PROJ_ADMINISTRATION = new Permission( 33 "Project_Administration"); 34 public static final Permission SAVE_PUBLIC = new Permission("Save_Public"); 35 public static final Permission SAVE_PRIVATE = new Permission("Save_Private"); 36 public static final Permission DELETE_PUBLIC = new Permission( 37 "Delete_Public"); 38 public static final Permission DELETE_PRIVATE = new Permission( 39 "Delete_Private"); 40 public static final Permission CREATE_NEW = new Permission("Create_New"); 41 public static final Permission CONFIGURE_DATASOURCE = new Permission( 42 "Configure_Datasource"); 43 public static final Permission UPLOAD_FILE = new Permission("Upload_File"); 44 public static final Permission DIAGNOSTICS = new Permission("Diagnostics"); 45 public static final Permission MANAGE_FILES = new Permission("Manage_Files"); 46 public static final Permission CONFIGURE_DASHBOARD = new Permission("Configure_Dashboard"); 47 public static final Permission AUTOGENERATE = new Permission("Autogenerate"); 48 public static final Permission READ_ONLY = new Permission("Read_Only"); 49 private String permissionName; 50 51 private Permission(String permissionName) { 52 this.permissionName = permissionName; 53 } 54 55 public String toString() { 56 return this.permissionName; 57 } 58 } 59 | Popular Tags |