Class GrouperFile
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.file.GrouperFile
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperHasContext
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Context id links together multiple operations into one high level actionstatic final String
size of file contents in bytesstatic final String
large contents of the filestatic final String
contents of the file if can fit into 4000 bytesstatic final String
Name of the filestatic final String
Unique path of the filestatic final String
db id for this rowstatic final String
System name this file belongs to eg: workflowstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: fileContentsBytesstatic final String
constant for field name for: fileContentsClobstatic final String
constant for field name for: fileContentsVarcharstatic final String
constant for field name for: fileNamestatic final String
constant for field name for: filePathstatic final String
constant for field name for: idstatic final String
constant for field name for: systemNamestatic final String
name of the table in the database.Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
deep clone the fields in this objectvoid
take a snapshot of the data since this is what is in the dbsize of file contents in bytesvalue of the propertygetId()
retrieve value.void
setContextId
(String contextId1) set context idvoid
setFileContentsBytes
(Long fileContentsBytes) size of file contents in bytesvoid
setFileContentsClobDb
(String fileContentsClob) void
setFileContentsVarcharDb
(String fileContentsVarchar) void
setFileName
(String fileName) void
setFilePath
(String filePath) void
void
setSystemName
(String systemName) void
setValueToSave
(String value) set config value to save.Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
COLUMN_ID
db id for this row- See Also:
-
COLUMN_SYSTEM_NAME
System name this file belongs to eg: workflow- See Also:
-
COLUMN_FILE_NAME
Name of the file- See Also:
-
COLUMN_FILE_PATH
Unique path of the file- See Also:
-
COLUMN_CONTEXT_ID
Context id links together multiple operations into one high level action- See Also:
-
COLUMN_FILE_CONTENTS_VARCHAR
contents of the file if can fit into 4000 bytes- See Also:
-
COLUMN_FILE_CONTENTS_CLOB
large contents of the file- See Also:
-
COLUMN_FILE_CONTENTS_BYTES
size of file contents in bytes- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_SYSTEM_NAME
constant for field name for: systemName- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_FILE_NAME
constant for field name for: fileName- See Also:
-
FIELD_FILE_PATH
constant for field name for: filePath- See Also:
-
FIELD_FILE_CONTENTS_VARCHAR
constant for field name for: fileContentsVarchar- See Also:
-
FIELD_FILE_CONTENTS_BYTES
constant for field name for: fileContentsBytes- See Also:
-
FIELD_FILE_CONTENTS_CLOB
constant for field name for: fileContentsClob- See Also:
-
TABLE_GROUPER_FILE
name of the table in the database.- See Also:
-
-
Constructor Details
-
GrouperFile
public GrouperFile()
-
-
Method Details
-
setId
- Parameters:
id1
- the id to set
-
getId
- Returns:
- id
-
getContextId
- Returns:
- context id
-
setContextId
set context id- Specified by:
setContextId
in interfaceGrouperHasContext
- Parameters:
contextId1
-
-
getSystemName
-
setSystemName
-
getFileName
-
setFileName
-
getFilePath
-
setFilePath
-
getFileContentsVarcharDb
value of the property- Returns:
- the configValue
-
setFileContentsVarcharDb
-
getFileContentsClobDb
-
setFileContentsClobDb
-
retrieveValue
retrieve value. based on the size, it will be retrieved from file_contents_varchar or file_contents_clob- Returns:
-
getFileContentsBytes
size of file contents in bytes- Returns:
- the fileContentsBytes
-
setFileContentsBytes
size of file contents in bytes- Parameters:
the
- fileContentsBytes
-
setValueToSave
set config value to save. based on the size, it will be saved in config_value or config_value_clob- Parameters:
value
-
-
clone
Description copied from class:GrouperAPI
deep clone the fields in this object- Specified by:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Overrides:
dbVersionReset
in classGrouperAPI
-