1 18 package org.osgi.service.useradmin; 19 20 import org.osgi.framework.ServiceReference; 21 22 40 public class UserAdminEvent { 41 private ServiceReference ref; 42 private int type; 43 private Role role; 44 50 public static final int ROLE_CREATED = 0x00000001; 51 57 public static final int ROLE_CHANGED = 0x00000002; 58 64 public static final int ROLE_REMOVED = 0x00000004; 65 66 76 public UserAdminEvent(ServiceReference ref, int type, Role role) { 77 this.ref = ref; 78 this.type = type; 79 this.role = role; 80 } 81 82 88 public ServiceReference getServiceReference() { 89 return ref; 90 } 91 92 101 public int getType() { 102 return type; 103 } 104 105 110 public Role getRole() { 111 return role; 112 } 113 } 114 | Popular Tags |