pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.accesscontrol.admin
Class GroupEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.accesscontrol.admin.AbstractAccessControlEditor
          extended by org.torweg.pulse.component.core.accesscontrol.admin.GroupEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class GroupEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

the editor for a Group of the access-control. This editor is shown as a tab of the CENTER-panel pulse-web-site-administration.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
GroupEditor()
           
 
Method Summary
 void createGroup(Bundle bundle, ServiceRequest request)
          creates a new Group within the access-control of the pulse-web-site-administration.
 void deleteGroup(Bundle bundle, ServiceRequest request)
          removes a Group from the access-control of the pulse -web-site-administration.
 void init(ConfigBean c)
          initializes the GroupEditor.
 AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
          Initializes the editor for a Group within the pulse -web-site-administration.
 AccessControlEditorResult initOverview(Bundle bundle, ServiceRequest request)
          initializes the Group-overview-grid within the pulse -web-site-administration.
 java.lang.Object loadGrid(Bundle bundle, ServiceRequest request)
          loads the data for the Group-overview-grid within the pulse-web-site-administration.
 java.lang.Object loadPermissions(Bundle bundle, ServiceRequest request)
          loads the Permissions of a Group specified by request-parameter "id" for the permission-assorter of the group-editor within the pulse-web-site-administration.
 java.lang.Object loadRoles(Bundle bundle, ServiceRequest request)
          loads the Roles of a Group specified by request-parameter "id" for the role-assorter of the group-editor within the pulse -web-site-administration.
 java.lang.Object loadUsers(Bundle bundle, ServiceRequest request)
          loads the Users of a Group specified by request-parameter "id" for the user-assorter of the group-editor within the pulse -web-site-administration.
 void saveGroup(Bundle bundle, ServiceRequest request)
          saves value changes for a Group of the access-control of the pulse-web-site-administration.
 
Methods inherited from class org.torweg.pulse.component.core.accesscontrol.admin.AbstractAccessControlEditor
buildCriterionFromRequest, buildIdCriterionFromRequest, buildLoadAssorterCriteria, buildLoadAssorterCriteria, getReqParamIgnoreEmptyValue, getReqParamOrNullIfValueEmpty, loadAssorterData, loadAssorterData, processCriteriaForPaging, retrieveAssorterObjects
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupEditor

public GroupEditor()
Method Detail

initOverview

@RequireToken
@Action(value="usergroupOverviewInit", generate=true)
@Permission(value="usergroupOverviewInit")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final AccessControlEditorResult initOverview(Bundle bundle, ServiceRequest request)
initializes the Group-overview-grid within the pulse -web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization Result for the GroupEditor

loadGrid

@RequireToken
@Action(value="loadUsergroupOverviewGrid", generate=true)
@Permission(value="loadUsergroupOverviewGrid")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final java.lang.Object loadGrid(Bundle bundle, ServiceRequest request)
loads the data for the Group-overview-grid within the pulse-web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response

createGroup

@RequireToken
@Action(value="createUsergroupEditor", generate=true)
@Permission(value="createUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final void createGroup(Bundle bundle, ServiceRequest request)
creates a new Group within the access-control of the pulse-web-site-administration.

possible errors:

Sends a JSON-response with the id and FQ-class-name of the new group on success, JSONObject error otherwise.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

deleteGroup

@RequireToken
@Action(value="deleteUsergroupEditor", generate=true)
@Permission(value="deleteUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final void deleteGroup(Bundle bundle, ServiceRequest request)
removes a Group from the access-control of the pulse -web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

initEditor

@RequireToken
@Action(value="initUsergroupEditor", generate=true)
@Permission(value="initUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
Initializes the editor for a Group within the pulse -web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization Result for the GroupEditor

saveGroup

@RequireToken
@Action(value="saveUsergroupEditor", generate=true)
@Permission(value="saveUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final void saveGroup(Bundle bundle, ServiceRequest request)
saves value changes for a Group of the access-control of the pulse-web-site-administration.

possible errors:

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

loadUsers

@RequireToken
@Action(value="loadUsersUsergroupEditor", generate=true)
@Permission(value="loadUsersUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final java.lang.Object loadUsers(Bundle bundle, ServiceRequest request)
loads the Users of a Group specified by request-parameter "id" for the user-assorter of the group-editor within the pulse -web-site-administration.

Use: load the associated and the un-associated users of the group according to given request-parameter "unasoc" (default false).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response with that fits the tree that the assorter uses

loadRoles

@RequireToken
@Action(value="loadRolesUsergroupEditor", generate=true)
@Permission(value="loadRolesUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final java.lang.Object loadRoles(Bundle bundle, ServiceRequest request)
loads the Roles of a Group specified by request-parameter "id" for the role-assorter of the group-editor within the pulse -web-site-administration.

Use: load the associated and the un-associated roles of the group according to given request-parameter "unasoc" (default false).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response with the roles that fits the tree that the assorter uses

loadPermissions

@RequireToken
@Action(value="loadPermissionsUsergroupEditor", generate=true)
@Permission(value="loadPermissionsUsergroupEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:GroupEditor"})
public final java.lang.Object loadPermissions(Bundle bundle, ServiceRequest request)
loads the Permissions of a Group specified by request-parameter "id" for the permission-assorter of the group-editor within the pulse-web-site-administration.

Use: load the associated and the un-associated permissions of the group according to given request-parameter "unasoc" (default false).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response with the permissions that fits the tree that the assorter uses

init

public final void init(ConfigBean c)
initializes the GroupEditor.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the ConfigBean of this Controller