Skip to content

Commit

Permalink
PAXUSERADMIN-16 Add fireEvent method to the UserAdminFactory interface
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Aug 18, 2012
1 parent 4aaf59b commit e92efe8
Showing 1 changed file with 23 additions and 6 deletions.
Expand Up @@ -20,6 +20,7 @@
import java.util.Map;

import org.osgi.service.useradmin.Group;
import org.osgi.service.useradmin.Role;
import org.osgi.service.useradmin.User;

/**
Expand All @@ -35,20 +36,36 @@ public interface UserAdminFactory {
/**
* Create a <code>User</code> instance.
*
* @param name The name of the user.
* @param properties The properties of the user.
* @param credentials The credentials of the user.
* @param name
* The name of the user.
* @param properties
* The properties of the user.
* @param credentials
* The credentials of the user.
* @return A new <code>User</code> instance.
*/
User createUser(String name, Map<String, Object> properties, Map<String, Object> credentials);

/**
* Create a <code>Group</code> instance.
*
* @param name The name of the group.
* @param properties The properties of the group.
* @param credentials The credentials of the group.
* @param name
* The name of the group.
* @param properties
* The properties of the group.
* @param credentials
* The credentials of the group.
* @return A new <code>Group</code> instance.
*/
Group createGroup(String name, Map<String, Object> properties, Map<String, Object> credentials);

/**
* Publish an event of the given type related to the role specified.
*
* @param type
* The type of event - see <code>UserAdminEvent</code>.
* @param role
* The role which is related to the event.
*/
void fireEvent(int type, Role role);
}

0 comments on commit e92efe8

Please sign in to comment.