|
|
|
@ -9,7 +9,7 @@ public class RoleEvent extends PortalModelListenerEvent<Role> {
|
|
|
|
|
private static final long serialVersionUID = 3939268094440017646L;
|
|
|
|
|
|
|
|
|
|
public static final String CREATED_NAME = "role_created";
|
|
|
|
|
// public static final String DELETED_NAME = "role_deleted";
|
|
|
|
|
public static final String DELETED_NAME = "role_deleted";
|
|
|
|
|
|
|
|
|
|
private RoleEvent(String name, Role role) throws PortalException, SystemException {
|
|
|
|
|
super(name, role);
|
|
|
|
@ -25,13 +25,13 @@ public class RoleEvent extends PortalModelListenerEvent<Role> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// public static RoleEvent newDeletedEvent(Role role) {
|
|
|
|
|
// try {
|
|
|
|
|
// return new RoleEvent(DELETED_NAME, role);
|
|
|
|
|
// } catch (PortalException | SystemException e) {
|
|
|
|
|
// log.error("Cannot create event from Role model object", e);
|
|
|
|
|
// return null;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
public static RoleEvent newDeletedEvent(Role role) {
|
|
|
|
|
try {
|
|
|
|
|
return new RoleEvent(DELETED_NAME, role);
|
|
|
|
|
} catch (PortalException | SystemException e) {
|
|
|
|
|
log.error("Cannot create event from Role model object", e);
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|