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 RoleEditor

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.RoleEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class RoleEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

Version:
$Revision: 1914 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
RoleEditor()
           
 
Method Summary
 void createRole(Bundle bundle, ServiceRequest request)
          creates a new Role within the access-control of the pulse-web-site-administration.
 void deleteRole(Bundle bundle, ServiceRequest request)
          removes a Role from the access-control of the pulse -web-site-administration.
 void init(ConfigBean c)
          initializes the RoleEditor.
 AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
          Initializes the editor for a Role within the pulse -web-site-administration.
 AccessControlEditorResult initOverview(Bundle bundle, ServiceRequest request)
          initializes the Role-overview-grid within the pulse -web-site-administration.
 void loadGrid(Bundle bundle, ServiceRequest request)
          loads the data for the Role-overview-grid within the pulse-web-site-administration.
 void loadGroups(Bundle bundle, ServiceRequest request)
          loads the Groups of a Role specified by request-parameter "id" for the groups-assorter of the role-editor within the pulse -web-site-administration.
 void loadPermissions(Bundle bundle, ServiceRequest request)
          loads the Users of a Role specified by request-parameter "id" for the user-assorter of the role-editor within the pulse -web-site-administration.
 void loadUsers(Bundle bundle, ServiceRequest request)
          loads the Users of a Role specified by request-parameter "id" for the user-assorter of the role-editor within the pulse -web-site-administration.
 void saveRole(Bundle bundle, ServiceRequest request)
          saves value changes for a Permission 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

RoleEditor

public RoleEditor()
Method Detail

initOverview

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

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

loadGrid

@RequireToken
@Action(value="loadRoleOverviewGrid", generate=true)
@Permission(value="loadRoleOverviewGrid")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void loadGrid(Bundle bundle, ServiceRequest request)
loads the data for the Role-overview-grid within the pulse-web-site-administration.

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

createRole

@RequireToken
@Action(value="createRoleEditor", generate=true)
@Permission(value="createRoleEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void createRole(Bundle bundle, ServiceRequest request)
creates a new Role 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 role on success, JSONObject error otherwise.

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

deleteRole

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

possible errors:

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

initEditor

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

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

saveRole

@RequireToken
@Action(value="saveRoleEditor", generate=true)
@Permission(value="saveRoleEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void saveRole(Bundle bundle, ServiceRequest request)
saves value changes for a Permission 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="loadUsersRoleEditor", generate=true)
@Permission(value="loadUsersRoleEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void loadUsers(Bundle bundle, ServiceRequest request)
loads the Users of a Role specified by request-parameter "id" for the user-assorter of the role-editor within the pulse -web-site-administration.

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

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

loadGroups

@RequireToken
@Action(value="loadGroupsRoleEditor", generate=true)
@Permission(value="loadGroupsRoleEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void loadGroups(Bundle bundle, ServiceRequest request)
loads the Groups of a Role specified by request-parameter "id" for the groups-assorter of the role-editor within the pulse -web-site-administration.

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

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

loadPermissions

@RequireToken
@Action(value="loadPermissionsRoleEditor", generate=true)
@Permission(value="loadPermissionsRoleEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:RoleEditor"})
public final void loadPermissions(Bundle bundle, ServiceRequest request)
loads the Users of a Role specified by request-parameter "id" for the user-assorter of the role-editor within the pulse -web-site-administration.

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

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

init

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

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