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.attributes.admin
Class AttributeRegistryEditor

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.attributes.admin.AttributeRegistryEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class AttributeRegistryEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

the main-controller of the AttributeRegistry.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
AttributeRegistryEditor()
           
 
Method Summary
 Result browseAttributeRegistryEdit(ServiceRequest request)
          TODO: add a clear description!
 Result browseAttributeRegistrySelect(ServiceRequest request)
          TODO: add a clear description!
 Result create(Bundle bundle, ServiceRequest request)
          starts create-new-(Attribute)-editor.
 void createAttribute(Bundle bundle, ServiceRequest request)
          creates a new Attribute.
 void delete(Bundle bundle, ServiceRequest request)
          deletes a Attribute.
 AttributeRegistryEditorResult edit(Bundle bundle, ServiceRequest request)
          starts Attribute-editor.
 void init(ConfigBean conf)
          initializes the AttributeRegistryEditor.
 Result initEditor(Bundle bundle, ServiceRequest request)
           
 void loadAdminEditRoles(ServiceRequest request)
          loads the admin-edit-Roles of a Attribute.
 void loadAdminViewRoles(ServiceRequest request)
          loads the admin-view-Roles of a Attribute.
 Result loadChecks(Bundle bundle, ServiceRequest request)
          loads the checks of a Attribute.
 void loadSelfEditRoles(ServiceRequest request)
          loads the self-edit-Roles of a Attribute.
 void loadSelfViewRoles(ServiceRequest request)
          loads the self-view-Roles of a Attribute.
 void loadTriggeredRoles(ServiceRequest request)
          loads the triggered-Roles of a Attribute.
 void move(ServiceRequest request)
          moves a {@code ?
 void save(Bundle bundle, ServiceRequest request)
          saves value changes for the Roless of the Attribute.
 void setCheck(Bundle bundle, ServiceRequest request)
          sets a check for a Attribute.
 
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

AttributeRegistryEditor

public AttributeRegistryEditor()
Method Detail

initEditor

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

browseAttributeRegistryEdit

@RequireToken
@Action(value="browseAttributeRegistryEdit", generate=true)
@Permission(value="browseAttributeRegistryEdit")
@Groups(values="AttributeRegistryAdministrator")
public final Result browseAttributeRegistryEdit(ServiceRequest request)
TODO: add a clear description!

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

browseAttributeRegistrySelect

@RequireToken
@Action(value="browseAttributeRegistrySelect", generate=true)
@Permission(value="browseAttributeRegistrySelect")
@Groups(values="AttributeRegistryAdministrator")
public final Result browseAttributeRegistrySelect(ServiceRequest request)
TODO: add a clear description!

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

create

@RequireToken
@Action(value="createAttributeRegistryEdit", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final Result create(Bundle bundle, ServiceRequest request)
starts create-new-(Attribute)-editor.

TODO: add a clear description!

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result

createAttribute

@RequireToken
@Action(value="createAttributeAttributeRegistryEdit", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void createAttribute(Bundle bundle, ServiceRequest request)
creates a new Attribute.

TODO: add a clear description!

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

edit

@RequireToken
@Action(value="editAttributeRegistryEdit", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final AttributeRegistryEditorResult edit(Bundle bundle, ServiceRequest request)
starts Attribute-editor.

TODO: add a clear description!

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result

delete

@RequireToken
@Action(value="deleteAttributeRegistryEdit", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void delete(Bundle bundle, ServiceRequest request)
deletes a Attribute.

TODO: add a clear description!

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

loadAdminEditRoles

@RequireToken
@Action(value="loadAdminEditRolesAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void loadAdminEditRoles(ServiceRequest request)
loads the admin-edit-Roles of a Attribute.

TODO: add a clear description!

Parameters:
request - the current ServiceRequest

loadAdminViewRoles

@RequireToken
@Action(value="loadAdminViewRolesAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void loadAdminViewRoles(ServiceRequest request)
loads the admin-view-Roles of a Attribute.

TODO: add a clear description!

Parameters:
request - the current ServiceRequest

loadSelfEditRoles

@RequireToken
@Action(value="loadSelfEditRolesAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void loadSelfEditRoles(ServiceRequest request)
loads the self-edit-Roles of a Attribute.

TODO: add a clear description!

Parameters:
request - the current ServiceRequest

loadSelfViewRoles

@RequireToken
@Action(value="loadSelfViewRolesAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void loadSelfViewRoles(ServiceRequest request)
loads the self-view-Roles of a Attribute.

TODO: add a clear description!

Parameters:
request - the current ServiceRequest

loadTriggeredRoles

@RequireToken
@Action(value="loadTriggeredRolesAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void loadTriggeredRoles(ServiceRequest request)
loads the triggered-Roles of a Attribute.

TODO: add a clear description!

Parameters:
request - the current ServiceRequest

save

@RequireToken
@Action(value="saveAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void save(Bundle bundle, ServiceRequest request)
saves value changes for the Roless of the Attribute.

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

loadChecks

@RequireToken
@Action(value="loadChecksAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final Result loadChecks(Bundle bundle, ServiceRequest request)
loads the checks of a Attribute.

This can be either a check or the available checks if check is unset for attribute.

TODO: add a clear description!

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result

setCheck

@RequireToken
@Action(value="setCheckAttributeRegistryEditor", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void setCheck(Bundle bundle, ServiceRequest request)
sets a check for a Attribute.

TODO: add a clear description!

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

move

@RequireToken
@Action(value="moveAttributeRegistryEdit", generate=true)
@Permission(value="editAttributeRegistry")
@Groups(values="AttributeRegistryAdministrator")
public final void move(ServiceRequest request)
moves a ? extends RegistryLocaleNode. By default a RegistryLocaleNode itself is not movable.

Parameters:
request - the current ServiceRequest

init

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

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