1 package org.apache.turbine.om.security; 2 3 18 19 import java.sql.Connection ; 20 import org.apache.turbine.services.security.TurbineSecurity; 21 import org.apache.turbine.util.security.TurbineSecurityException; 22 23 34 public class TurbinePermission extends SecurityObject implements Permission 35 { 36 39 public TurbinePermission() 40 { 41 super(); 42 } 43 44 49 public TurbinePermission(String name) 50 { 51 super(name); 52 } 53 54 59 public void save() throws TurbineSecurityException 60 { 61 TurbineSecurity.savePermission(this); 62 } 63 64 70 public void save(Connection conn) throws Exception 71 { 72 throw new Exception ("not implemented"); 73 } 74 75 81 public void save(String dbname) throws Exception 82 { 83 throw new Exception ("not implemented"); 84 } 85 86 91 public void remove() throws TurbineSecurityException 92 { 93 TurbineSecurity.removePermission(this); 94 } 95 96 102 public void rename(String name) throws TurbineSecurityException 103 { 104 TurbineSecurity.renamePermission(this, name); 105 } 106 } 107 | Popular Tags |