public class ItemController extends Object
| Constructor and Description |
|---|
ItemController() |
| Modifier and Type | Method and Description |
|---|---|
AbstractCMSComponentData |
createAndAddNewComponent(AbstractCMSComponentData componentData,
HttpServletRequest request,
HttpServletResponse response)
Create a new component.
|
ComponentItemListData |
getAllComponentItems(String fields)
Find all components.
|
ComponentItemListData |
getAllComponentItemsForUids(String[] uids)
Find components matching the given uids.
|
protected ComponentItemFacade |
getComponentFacade() |
AbstractCMSComponentData |
getComponentItemByUid(String componentId,
String fields)
Get the component that matches the given component id.
|
protected LocationHeaderResource |
getLocationHeaderResource() |
void |
removeComponent(String componentId)
Remove a component from the system.
|
void |
setComponentFacade(ComponentItemFacade componentFacade) |
void |
setLocationHeaderResource(LocationHeaderResource locationHeaderResource) |
void |
updateComponent(String componentId,
AbstractCMSComponentData componentData)
Update a component.
|
public ComponentItemListData getAllComponentItems(String fields)
ComponentItemListData; never
nullpublic ComponentItemListData getAllComponentItemsForUids(String[] uids)
ComponentItemListData; never
nullpublic AbstractCMSComponentData getComponentItemByUid(String componentId, String fields) throws CMSItemNotFoundException, ConversionException
CMSItemNotFoundException - when the item has not been foundConversionExceptionpublic AbstractCMSComponentData createAndAddNewComponent(AbstractCMSComponentData componentData, HttpServletRequest request, HttpServletResponse response)
request - the HttpServletRequestresponse - the HttpServletResponsepublic void updateComponent(String componentId, AbstractCMSComponentData componentData) throws WebserviceValidationException, CMSItemNotFoundException
WebserviceValidationException - if there is any validation errorCMSItemNotFoundException - if it cannot find the componentpublic void removeComponent(String componentId) throws CMSItemNotFoundException
CMSItemNotFoundException - if it cannot find the componentprotected ComponentItemFacade getComponentFacade()
public void setComponentFacade(ComponentItemFacade componentFacade)
protected LocationHeaderResource getLocationHeaderResource()
public void setLocationHeaderResource(LocationHeaderResource locationHeaderResource)
Copyright © 2000-2016 SAP SE. All Rights Reserved.