Extracts group name and members from passed parameters and populates an existing Group with them. The Group will either be a copy of an existing Group (if one can be found), or a new, unregistered Group (if not). Optionally, this method can throw a WikiSecurityException if the Group does not yet exist in the GroupManager cache.
The group
parameter in the HTTP request contains the Group name to look up and populate. The members
parameter contains the member list. If these differ from those in the existing group, the passed values override the old values.
This method does not commit the new Group to the GroupManager cache. To do that, use {@link #setGroup(WikiSession,Group)}.
@param name the name of the group to construct @param memberLine the line of text containing the group membership list @param create whether this method should create a new, empty Group if onewith the requested name is not found. Iffalse
, groups that do not exist will cause a NoSuchPrincipalException
to be thrown
@return a new, populated group
@see com.ecyrd.jspwiki.auth.authorize.Group#RESTRICTED_GROUPNAMES
@throws WikiSecurityException if the group name isn't allowed, or ifcreate
is false
and the Group named name
does not exist
Extracts group name and members from passed parameters and populates an existing Group with them. The Group will either be a copy of an existing Group (if one can be found), or a new, unregistered Group (if not). Optionally, this method can throw a WikiSecurityException if the Group does not yet exist in the GroupManager cache.
The group
parameter in the HTTP request contains the Group name to look up and populate. The members
parameter contains the member list. If these differ from those in the existing group, the passed values override the old values.
This method does not commit the new Group to the GroupManager cache. To do that, use {@link #setGroup(WikiSession,Group)}.
@param name the name of the group to construct @param memberLine the line of text containing the group membership list @param create whether this method should create a new, empty Group if onewith the requested name is not found. Iffalse
, groups that do not exist will cause a NoSuchPrincipalException
to be thrown
@return a new, populated group
@see org.apache.wiki.auth.authorize.Group#RESTRICTED_GROUPNAMES
@throws WikiSecurityException if the group name isn't allowed, or ifcreate
is false
and the Group named name
does not exist
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|