Package org.opencms.ui.apps
Interface I_CmsCRUDApp<T>
- Type Parameters:
T
- the type of element.
- All Known Implementing Classes:
CmsJobManagerApp
,CmsLogFileApp
,CmsSearchindexApp
,CmsSiteManager
public interface I_CmsCRUDApp<T>
Interface for apps which perform CRUD operations on any kind of element like CmsSites or CmsScheduledJobs.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createElement
(T element) Creates the element of type T in the system.void
defaultAction
(String elementId) Performs a default action.void
deleteElements
(List<String> elementId) Delete the given List of elements.Get all Elements.getElement
(String elementId) Reads out an element.void
writeElement
(T element) Writes a changed element to the system which already exists.
-
Method Details
-
createElement
Creates the element of type T in the system.- Parameters:
element
- to be saved
-
defaultAction
Performs a default action.- Parameters:
elementId
- id of element
-
deleteElements
Delete the given List of elements.- Parameters:
elementId
- of elements to be deleted
-
getAllElements
List<T> getAllElements()Get all Elements.- Returns:
- a list of all elements
-
getElement
Reads out an element.- Parameters:
elementId
- of the object- Returns:
- the object of type T
-
writeElement
Writes a changed element to the system which already exists.- Parameters:
element
- to be saved
-