Package org.dspace.app.rest.model
Class ProcessFileTypesRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.ProcessFileTypesRest
-
- All Implemented Interfaces:
Serializable,RestModel
public class ProcessFileTypesRest extends BaseObjectRest<String>
This class provides a way to list the filetypes present in a given Process by showing them as a list of Strings It'll be used byProcessFileTypesLinkRepository- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringNAMEstatic StringPLURAL_NAME-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description ProcessFileTypesRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(String value)Adds a value to the list of FileType StringsStringgetCategory()ClassgetController()StringgetType()List<String>getValues()Generic getter for the valuesvoidsetValues(List<String> values)Generic setter for the values-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PLURAL_NAME
public static final String PLURAL_NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValues
public List<String> getValues()
Generic getter for the values- Returns:
- the values value of this ProcessFileTypesRest
-
setValues
public void setValues(List<String> values)
Generic setter for the values- Parameters:
values- The values to be set on this ProcessFileTypesRest
-
addValue
public void addValue(String value)
Adds a value to the list of FileType Strings- Parameters:
value- The value to be added
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getType
public String getType()
-
-