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 PermissionEditor

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

public class PermissionEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

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

Version:
$Revision: 1914 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
PermissionEditor()
           
 
Method Summary
 void createPermission(Bundle bundle, ServiceRequest request)
          creates a new Permission within the access-control of the pulse-web-site-administration.
 void deletePermission(Bundle bundle, ServiceRequest request)
          removes a Permission from the access-control of the pulse-web-site-administration.
 void init(ConfigBean c)
          initializes the PermissionEditor.
 AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
          Initializes the editor for a Permission within the pulse -web-site-administration.
 AccessControlEditorResult initOverview(Bundle bundle, ServiceRequest request)
          initializes the Permission-overview-grid within the pulse-web-site-administration.
 java.lang.Object loadGrid(Bundle bundle, ServiceRequest request)
          loads the data for the Permission-overview-grid within the pulse-web-site-administration.
 java.lang.Object loadGroups(Bundle bundle, ServiceRequest request)
          loads the Groups of a Permission specified by request-parameter "id" for the groups-assorter of the permission-editor within the pulse-web-site-administration.
 java.lang.Object loadRoles(Bundle bundle, ServiceRequest request)
          loads the Roles of a Permission 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 Permission specified by request-parameter "id" for the user-assorter of the permission-editor within the pulse-web-site-administration.
 void savePermission(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

PermissionEditor

public PermissionEditor()
Method Detail

initOverview

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

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

loadGrid

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

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

createPermission

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

possible errors:

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

deletePermission

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

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

initEditor

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

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

savePermission

@RequireToken
@Action(value="savePermissionEditor", generate=true)
@Permission(value="savePermissionEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:PermissionEditor"})
public final void savePermission(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

loadRoles

@RequireToken
@Action(value="loadRolesPermissionEditor", generate=true)
@Permission(value="loadRolesPermissionEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:PermissionEditor"})
public final java.lang.Object loadRoles(Bundle bundle, ServiceRequest request)
loads the Roles of a Permission 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

loadGroups

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

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

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

loadUsers

@RequireToken
@Action(value="loadUsersPermissionEditor", generate=true)
@Permission(value="loadUsersPermissionEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:PermissionEditor"})
public final java.lang.Object loadUsers(Bundle bundle, ServiceRequest request)
loads the Users of a Permission specified by request-parameter "id" for the user-assorter of the permission-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
Returns:
a JSON-response with that fits the tree that the assorter uses

init

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

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