X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=security%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fusermgt%2FGroupSet.java;h=665ca155d2f4ed510eb21ed67dd950c213f43199;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=33beb43a1e279460a11fb982efb9351b90955725;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/security/src/main/java/org/wamblee/usermgt/GroupSet.java b/security/src/main/java/org/wamblee/usermgt/GroupSet.java index 33beb43a..665ca155 100644 --- a/security/src/main/java/org/wamblee/usermgt/GroupSet.java +++ b/security/src/main/java/org/wamblee/usermgt/GroupSet.java @@ -17,79 +17,71 @@ package org.wamblee.usermgt; import java.util.Set; - /** - * Represents a set of groups. A typical implemnetation would be, a readonly implementation - * defined in a configuration file or a list of groups defined in a database. - * + * Represents a set of groups. A typical implemnetation would be, a readonly + * implementation defined in a configuration file or a list of groups defined in + * a database. + * * @author Erik Brakkee */ public interface GroupSet { /** - * Must be called when the group has been modified to notify the - * group set. - * - * @param aGroup Group that was modified. + * Must be called when the group has been modified to notify the group set. + * + * @param aGroup + * Group that was modified. */ void groupModified(Group aGroup); /** * Finds the group by name. - * - * @param aName Group name. - * + * + * @param aName + * Group name. + * * @return Group or null if not found. */ Group find(String aName); /** * Determines if the group exists. - * - * @param aGroup Group. - * + * + * @param aGroup + * Group. + * * @return True iff the group exists. */ boolean contains(Group aGroup); /** - * Adds a group. If the group already exists, the existing group - * set is left unchanged. - * - * @param aGroup Group. - * - * @return DOCUMENT ME! + * Adds a group. If the group already exists, the existing group set is left + * unchanged. + * + * @param aGroup + * Group. + * */ boolean add(Group aGroup); /** - * Removes a group. If the group does not exist, this method is a - * no-op. - * - * @param aGroup Group to remove. - * + * Removes a group. If the group does not exist, this method is a no-op. + * + * @param aGroup + * Group to remove. + * * @return True if the group was removed, false otherwise. */ boolean remove(Group aGroup); /** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ -/** - * DOCUMENT ME! - * - * @return DOCUMENT ME! - */ -/** - * Returns the current groups. - * @return Groups. + * Returns the current groups. + * + * @return Groups. */ Set list(); /** - * DOCUMENT ME! - * + * * @return The number of groups. */ int size();