Interface ModifiableRepositoryData
- All Superinterfaces:
RepositoryData
- All Known Implementing Classes:
JCRRepositoryData
,MemoryRepositoryData
Interface for modifiable data values management in repository
-
Field Summary
Fields inherited from interface org.ametys.plugins.repository.data.repositorydata.RepositoryData
BOOLEAN_REPOSITORY_DATA_TYPE, CALENDAR_REPOSITORY_DATA_TYPE, DOUBLE_REPOSITORY_DATA_TYPE, LONG_REPOSITORY_DATA_TYPE, STREAM_REPOSITORY_DATA_TYPE, STRING_REPOSITORY_DATA_TYPE
-
Method Summary
Modifier and TypeMethodDescriptiondefault ModifiableRepositoryData
addRepositoryData
(String name, String dataTypeName) Creates a repository data and stores it in the repository with the given nameaddRepositoryData
(String name, String dataTypeName, String prefix) Creates a repository data and stores it in the repository with the given namedefault ModifiableRepositoryData
getRepositoryData
(String name) Retrieves the value of the repository data stored in the repository with the given namegetRepositoryData
(String name, String prefix) Retrieves the value of the repository data stored in the repository with the given namedefault void
removeValue
(String name) Removes the value of the data stored in the repository with the given namevoid
removeValue
(String name, String prefix) Removes the value of the data stored in the repository with the given namedefault void
Rename the current repository datavoid
Rename the current repository datadefault void
setValue
(String name, InputStream value) Sets the value of the input stream data stored in the repository with the given namevoid
setValue
(String name, InputStream value, String prefix) Sets the value of the input stream data stored in the repository with the given namedefault void
Sets the value of the boolean data stored in the repository with the given namevoid
Sets the value of the boolean data stored in the repository with the given namedefault void
Sets the value of the double data stored in the repository with the given namevoid
Sets the value of the double data stored in the repository with the given namedefault void
Sets the value of the long data stored in the repository with the given namevoid
Sets the value of the long data stored in the repository with the given namedefault void
Sets the value of the string data stored in the repository with the given namevoid
Sets the value of the string data stored in the repository with the given namedefault void
Sets the value of the date data stored in the repository with the given namevoid
Sets the value of the date data stored in the repository with the given namedefault void
setValues
(String name, InputStream[] values) Sets the values of the multiple input stream data stored in the repository with the given namevoid
setValues
(String name, InputStream[] values, String prefix) Sets the values of the multiple input stream data stored in the repository with the given namedefault void
Sets the values of the multiple boolean data stored in the repository with the given namevoid
Sets the values of the multiple boolean data stored in the repository with the given namedefault void
Sets the values of the multiple double data stored in the repository with the given namevoid
Sets the values of the multiple double data stored in the repository with the given namedefault void
Sets the values of the multiple long data stored in the repository with the given namevoid
Sets the values of the multiple long data stored in the repository with the given namedefault void
Sets the values of the multiple string data stored in the repository with the given namevoid
Sets the values of the multiple string data stored in the repository with the given namedefault void
Sets the values of the multiple date data stored in the repository with the given namevoid
Sets the values of the multiple date data stored in the repository with the given nameMethods inherited from interface org.ametys.plugins.repository.data.repositorydata.RepositoryData
getAllDataNames, getAllRepositoryData, getAllRepositoryData, getBoolean, getBoolean, getBooleans, getBooleans, getDataNames, getDataNames, getDate, getDate, getDates, getDates, getDefaultPrefix, getDouble, getDouble, getDoubles, getDoubles, getLong, getLong, getLongs, getLongs, getName, getStream, getStream, getStreamLength, getStreamLength, getStreams, getStreams, getString, getString, getStrings, getStrings, getType, getType, hasValue, hasValue, isMultiple, isMultiple
-
Field Details
-
DATA_NAME_PATTERN
The data path pattern to test validity
-
-
Method Details
-
getRepositoryData
Description copied from interface:RepositoryData
Retrieves the value of the repository data stored in the repository with the given name- Specified by:
getRepositoryData
in interfaceRepositoryData
- Parameters:
name
- name of the data- Returns:
- the value of the data
-
getRepositoryData
Description copied from interface:RepositoryData
Retrieves the value of the repository data stored in the repository with the given name- Specified by:
getRepositoryData
in interfaceRepositoryData
- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
addRepositoryData
Creates a repository data and stores it in the repository with the given name- Parameters:
name
- name of the datadataTypeName
- data type name to use on creation- Returns:
- the value of the data
-
addRepositoryData
Creates a repository data and stores it in the repository with the given name- Parameters:
name
- name of the datadataTypeName
- data type name to use on creationprefix
- prefix of the data name, to use instead of the default one.- Returns:
- the value of the data
-
rename
Rename the current repository data- Parameters:
newName
- the new name
-
rename
Rename the current repository data- Parameters:
newName
- the new nameprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the string data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the string data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple string data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple string data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the date data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the date data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple date data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple date data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the long data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the long data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple long data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple long data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the double data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the double data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple double data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple double data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the boolean data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the boolean data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple boolean data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple boolean data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValue
Sets the value of the input stream data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to set
-
setValue
Sets the value of the input stream data stored in the repository with the given name- Parameters:
name
- name of the datavalue
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
setValues
Sets the values of the multiple input stream data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to set
-
setValues
Sets the values of the multiple input stream data stored in the repository with the given name- Parameters:
name
- name of the datavalues
- the value to setprefix
- prefix of the data name, to use instead of the default one.
-
removeValue
Removes the value of the data stored in the repository with the given name- Parameters:
name
- name of the data- Throws:
UnknownDataException
- if there is no data stored with the given name
-
removeValue
Removes the value of the data stored in the repository with the given name- Parameters:
name
- name of the dataprefix
- prefix of the data name, to use instead of the default one.- Throws:
UnknownDataException
- if there is no data stored with the given name
-