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.shop.admin
Class ShopContentEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
          extended by org.torweg.pulse.component.store.admin.StoreContentEditor
              extended by org.torweg.pulse.component.shop.admin.ShopContentEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class ShopContentEditor
extends StoreContentEditor

Version:
$Revision: 2013 $
Author:
Daniel Dietz
See Also:
ShopContent, ShopVariant, ShopItem

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.site.content.admin.AbstractBasicContentEditor
LOGGER
 
Constructor Summary
ShopContentEditor()
           
 
Method Summary
 void copyContent(Bundle bundle, ServiceRequest request)
          creates a copy of a ShopContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.
 void createSubVariant(Bundle bundle, ServiceRequest request)
          creates and saves a new sub-ShopVariant for a StoreContent.
 void createVariant(Bundle bundle, ServiceRequest request)
          creates and saves a new ShopVariant for a ShopContent.
 void getPriceJSON(Bundle bundle, ServiceRequest request)
          returns a price.
 AbstractBasicContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns the initialized ShopContentEditor for a Content which is determined by a given id in the request.
 AbstractBasicContentEditorResult initPricesEditor(Bundle bundle, ServiceRequest request)
          returns the prices-editor(-grid) for a ShopContent which is determined by a given id in the request.
 AbstractBasicContentEditorResult initPricesEditorVariant(Bundle bundle, ServiceRequest request)
          returns the prices-editor(-grid) for a ShopVariant which is determined by a given id in the request.
 AbstractBasicContentEditorResult initVariantEditor(Bundle bundle, ServiceRequest request)
          starts the Editor for a Variant.
 AbstractBasicContentEditorResult loadPriceRoleEditor(Bundle bundle, ServiceRequest request)
          returns the price-role-editor(-grid) for a Price which is specified by a given id in the request.
 AbstractBasicContentEditorResult loadPriceRoleEditorVariant(Bundle bundle, ServiceRequest request)
          returns the price-role-editor(-grid) for a Price which is specified by a given id in the request.
 java.lang.Object loadPriceRoles(Bundle bundle, ServiceRequest request)
          loads the Roles of a Price specified by request-parameter "id" for the roles-assorter of the price-role-editor within the pulse-web-site-administration.
 void loadPricesEditorGrid(Bundle bundle, ServiceRequest request)
          returns the prices-editor(-grid) for a ShopContent which is specified by a given id in the request.
 void loadPricesEditorGridVariant(Bundle bundle, ServiceRequest request)
          returns the prices-editor(-grid) for a ShopVariant which is specified by a given id in the request.
 void saveEditor(Bundle bundle, ServiceRequest request)
          saves the basic properties of a content (name, suffix, keywords), as well as the page-order.
 void savePriceRoles(Bundle bundle, ServiceRequest request)
          saves role value changes for a Price.
 void savePriceRolesVariant(Bundle bundle, ServiceRequest request)
          saves role value changes for a Price.
 
Methods inherited from class org.torweg.pulse.component.store.admin.StoreContentEditor
copyStoreContent, initDescriptionEditor, initVariantDescriptionEditor, initVariantSummaryEditor, loadDescription, loadVariantDescription, loadVariantOrOrderCode, loadVariantOrOrderCodeSubVariant, loadVariantSummary, processVariantChanges, removeAllVariants, removeSubVariant, removeVariant, saveDescription, saveVariantDescription, saveVariantSummary, setOrderCode
 
Methods inherited from class org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
addAttachmentToContent, addToLocalizationMap, buildDocument, editAttachmentOfContent, findSitemapNodesForContent, getConfig, init, initAttachmentDescriptionEditor, initFileBrowserForAttachmentsForContent, initHibernateSearchFix, initReferenceDurationEditor, initSummaryEditor, loadAttachmentDescription, loadAttachmentsForContent, loadContentLocalizationMap, loadSummary, removeAttachmentFromContent, removeFromLocalizationMap, removeReferenceDuration, saveAttachmentDescription, saveSummary, setBasics
 
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
 
Methods inherited from interface org.torweg.pulse.configuration.DeprecatedConfigurable
init
 

Constructor Detail

ShopContentEditor

public ShopContentEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initEditor")
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns the initialized ShopContentEditor for a Content which is determined by a given id in the request.

Overrides:
initEditor in class StoreContentEditor
Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialized ShopContentEditor

saveEditor

@RequireToken
@Action(value="saveShopContent", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void saveEditor(Bundle bundle, ServiceRequest request)
saves the basic properties of a content (name, suffix, keywords), as well as the page-order.

Overrides:
saveEditor in class StoreContentEditor
Parameters:
bundle - the current Bundle
request - the current ServiceRequest

copyContent

@RequireToken
@Action(value="copyShopContent", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void copyContent(Bundle bundle, ServiceRequest request)
creates a copy of a ShopContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.

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

initVariantEditor

@RequireToken
@Action(value="initVariantEditor", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult initVariantEditor(Bundle bundle, ServiceRequest request)
starts the Editor for a Variant.

Overrides:
initVariantEditor in class StoreContentEditor
Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialized variant-editor

createVariant

@RequireToken
@Action(value="createShopVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void createVariant(Bundle bundle, ServiceRequest request)
creates and saves a new ShopVariant for a ShopContent.

Overrides:
createVariant in class StoreContentEditor
Parameters:
bundle - the current Bundle
request - the current ServiceRequest

createSubVariant

@RequireToken
@Action(value="createShopSubVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public void createSubVariant(Bundle bundle, ServiceRequest request)
creates and saves a new sub-ShopVariant for a StoreContent.

Overrides:
createSubVariant in class StoreContentEditor
Parameters:
bundle - the current Bundle
request - the current ServiceRequest

initPricesEditor

@RequireToken
@Action(value="initPricesEditor", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult initPricesEditor(Bundle bundle, ServiceRequest request)
returns the prices-editor(-grid) for a ShopContent which is determined by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialized prices-editor for the ShopContentEditor

initPricesEditorVariant

@RequireToken
@Action(value="initPricesEditorVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult initPricesEditorVariant(Bundle bundle, ServiceRequest request)
returns the prices-editor(-grid) for a ShopVariant which is determined by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialized prices-editor for a variant the ShopContentEditor

loadPricesEditorGrid

@RequireToken
@Action(value="loadPricesEditorGrid", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void loadPricesEditorGrid(Bundle bundle, ServiceRequest request)
returns the prices-editor(-grid) for a ShopContent which is specified by a given id in the request.

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

loadPricesEditorGridVariant

@RequireToken
@Action(value="loadPricesEditorGridVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void loadPricesEditorGridVariant(Bundle bundle, ServiceRequest request)
returns the prices-editor(-grid) for a ShopVariant which is specified by a given id in the request.

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

loadPriceRoleEditor

@RequireToken
@Action(value="loadPriceRoleEditor", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult loadPriceRoleEditor(Bundle bundle, ServiceRequest request)
returns the price-role-editor(-grid) for a Price which is specified by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX result or null on errors

loadPriceRoleEditorVariant

@RequireToken
@Action(value="loadPriceRoleEditorVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final AbstractBasicContentEditorResult loadPriceRoleEditorVariant(Bundle bundle, ServiceRequest request)
returns the price-role-editor(-grid) for a Price which is specified by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
AJAX-result or null on errors

loadPriceRoles

@RequireToken
@Action(value="loadPriceRoles", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final java.lang.Object loadPriceRoles(Bundle bundle, ServiceRequest request)
loads the Roles of a Price specified by request-parameter "id" for the roles-assorter of the price-role-editor within the pulse-web-site-administration.

Use: load the associated and the un-associated roles of the price 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

savePriceRoles

@RequireToken
@Action(value="savePriceRoles", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void savePriceRoles(Bundle bundle, ServiceRequest request)
saves role value changes for a Price.

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

savePriceRolesVariant

@RequireToken
@Action(value="savePriceRolesVariant", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void savePriceRolesVariant(Bundle bundle, ServiceRequest request)
saves role value changes for a Price.

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

getPriceJSON

@RequireToken
@Action(value="getPriceJSON", generate=true)
@Permission(value="editShopContent")
@Groups(values="ShopAdministrator")
public final void getPriceJSON(Bundle bundle, ServiceRequest request)
returns a price.

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