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.vfs.admin
Class VFSPermissionEditor

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.vfs.admin.VFSPermissionEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class VFSPermissionEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

is part of the access-control of the pulse-website-administration.

This editor allows to set the roles for the files/folder of the virtual file-system.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Field Summary
 
Fields inherited from class org.torweg.pulse.component.core.accesscontrol.admin.AbstractAccessControlEditor
LOGGER
 
Constructor Summary
VFSPermissionEditor()
           
 
Method Summary
 void init(ConfigBean conf)
          initializes the AttributeRegistryEditor.
 VFSPermissionEditorResult initEditor(Bundle bundle, ServiceRequest request)
           
 VFSPermissionEditorResult initPermissionsPanel(Bundle bundle, ServiceRequest request)
           
 java.lang.Object loadReadPermissions(ServiceRequest request)
          loads the read-Roles of a VirtualFile specified by request-parameter "id" for the roles-assorter of the vfs-roles-editor within the pulse-web-site-administration.
 java.lang.Object loadWritePermissions(ServiceRequest request)
          loads the write-Roles of a VirtualFile specified by request-parameter "id" for the roles-assorter of the vfs-roles-editor within the pulse-web-site-administration.
 FileBrowserResult preview(ServiceRequest request)
          preview a file.
 void saveVFSPermissions(Bundle bundle, ServiceRequest request)
          saves value changes for the read/writeRoles of the access-controls' vfs-roles-editor 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

VFSPermissionEditor

public VFSPermissionEditor()
Method Detail

initEditor

@RequireToken
@Action(value="vfsPermissionOverviewInit", generate=true)
@Permission(value="vfsPermissionOverviewInit")
@Groups(values="VFSPermissionAdministrator")
public final VFSPermissionEditorResult initEditor(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization Result for the ContentRegistryEditor

initPermissionsPanel

@RequireToken
@Action(value="initPermissionsPanelVFSPermissionEditor", generate=true)
@Permission(value="initPermissionsPanelVFSPermissionEditor")
@Groups(values="VFSPermissionAdministrator")
public final VFSPermissionEditorResult initPermissionsPanel(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization Result for the ContentRegistryEditor

preview

@RequireToken
@Action(value="previewVirtualFileSystemVFSPermissionEditor", generate=true)
@Permission(value="previewVirtualFileSystemVFSPermissionEditor")
@Groups(values="VFSPermissionAdministrator")
public final FileBrowserResult preview(ServiceRequest request)
preview a file.

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

loadReadPermissions

@RequireToken
@Action(value="loadReadPermissionsVFSPermissionEditor", generate=true)
@Permission(value="loadReadPermissionsVFSPermissionEditor")
@Groups(values="VFSPermissionAdministrator")
public final java.lang.Object loadReadPermissions(ServiceRequest request)
loads the read-Roles of a VirtualFile specified by request-parameter "id" for the roles-assorter of the vfs-roles-editor within the pulse-web-site-administration.

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

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

loadWritePermissions

@RequireToken
@Action(value="loadWritePermissionsVFSPermissionEditor", generate=true)
@Permission(value="loadWritePermissionsVFSPermissionEditor")
@Groups(values="VFSPermissionAdministrator")
public final java.lang.Object loadWritePermissions(ServiceRequest request)
loads the write-Roles of a VirtualFile specified by request-parameter "id" for the roles-assorter of the vfs-roles-editor within the pulse-web-site-administration.

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

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

saveVFSPermissions

@RequireToken
@Action(value="savePermissionsPanelVFSPermissionEditor", generate=true)
@Permission(value="savePermissionsPanelVFSPermissionEditor")
@Groups(values="VFSPermissionAdministrator")
public final void saveVFSPermissions(Bundle bundle, ServiceRequest request)
saves value changes for the read/writeRoles of the access-controls' vfs-roles-editor of the pulse -web-site-administration.

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

init

public final void init(ConfigBean conf)
initializes the AttributeRegistryEditor.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
conf - the configuration