Package edu.uiuc.ncsa.security.util.json
Class JSONEntry
- java.lang.Object
-
- edu.uiuc.ncsa.security.core.util.IdentifiableImpl
-
- edu.uiuc.ncsa.security.util.json.JSONEntry
-
- All Implemented Interfaces:
Identifiable
,Serializable
,Cloneable
public class JSONEntry extends IdentifiableImpl
This models a JSONObject that has a unique identifier associated with it.Created by Jeff Gaynor
on 2/15/19 at 4:14 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_JSON_ARRAY
static String
TYPE_JSON_OBJECT
static String
TYPE_PROCEDURE
static String
TYPE_SCRIPT
static String
TYPE_STRING
-
Constructor Summary
Constructors Constructor Description JSONEntry(Identifier identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiableImpl
clone()
net.sf.json.JSONArray
getArray()
Date
getCreationTimestamp()
Date
getLastModified()
net.sf.json.JSONObject
getObject()
List<String>
getProcedure()
Procedures are stored as JSON arrays of string.String
getRawContent()
String
getType()
boolean
isArray()
boolean
isJSONObject()
boolean
isProcedure()
void
setCreationTimestamp(Date creationTimestamp)
void
setLastModified(Date lastModified)
void
setRawContent(String rawContent)
void
setType(String type)
-
Methods inherited from class edu.uiuc.ncsa.security.core.util.IdentifiableImpl
equals, getDescription, getIdentifier, getIdentifierString, isReadOnly, setDescription, setIdentifier, setReadOnly
-
-
-
-
Field Detail
-
TYPE_JSON_ARRAY
public static final String TYPE_JSON_ARRAY
- See Also:
- Constant Field Values
-
TYPE_JSON_OBJECT
public static final String TYPE_JSON_OBJECT
- See Also:
- Constant Field Values
-
TYPE_STRING
public static final String TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_PROCEDURE
public static final String TYPE_PROCEDURE
- See Also:
- Constant Field Values
-
TYPE_SCRIPT
public static final String TYPE_SCRIPT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JSONEntry
public JSONEntry(Identifier identifier)
-
-
Method Detail
-
isArray
public boolean isArray()
-
isJSONObject
public boolean isJSONObject()
-
isProcedure
public boolean isProcedure()
-
getType
public String getType()
-
setType
public void setType(String type)
-
getRawContent
public String getRawContent()
-
setRawContent
public void setRawContent(String rawContent)
-
getArray
public net.sf.json.JSONArray getArray()
-
getObject
public net.sf.json.JSONObject getObject()
-
getProcedure
public List<String> getProcedure()
Procedures are stored as JSON arrays of string. When one is gotten, it is returned as a list of strings.- Returns:
-
getLastModified
public Date getLastModified()
-
setLastModified
public void setLastModified(Date lastModified)
-
getCreationTimestamp
public Date getCreationTimestamp()
-
setCreationTimestamp
public void setCreationTimestamp(Date creationTimestamp)
-
clone
public IdentifiableImpl clone()
- Specified by:
clone
in interfaceIdentifiable
- Overrides:
clone
in classIdentifiableImpl
-
-