1 package com.daffodilwoods.daffodildb.server.datadictionarysystem.information; 2 3 11 12 import java.io.*; 13 import com.daffodilwoods.database.resource.*; 14 import java.util.ArrayList ; 15 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference; 16 public class RoleInformation implements _RoleInformation{ 17 String grantor; 18 String name; 19 20 ArrayList objectsAndRights; 21 22 public RoleInformation() { 23 } 24 public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException { 25 name = (String )objectInput.readObject(); 26 grantor = (String )objectInput.readObject(); 27 objectsAndRights = (ArrayList )objectInput.readObject(); 28 } 29 30 public void writeExternal(ObjectOutput objectOutput)throws IOException { 31 objectOutput.writeObject(name); 32 objectOutput.writeObject(grantor); 33 objectOutput.writeObject(objectsAndRights); 34 } 35 36 37 public ArrayList getRightsForObjects() { 38 return objectsAndRights; 39 } 40 41 public String getName() { 42 return name; 43 } 44 45 public String getGrantor() { 46 return grantor; 47 } 48 49 50 } 51 | Popular Tags |