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

public class GrouperFile extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned
See Also:
  • Field Details

    • COLUMN_ID

      public static final String COLUMN_ID
      db id for this row
      See Also:
    • COLUMN_SYSTEM_NAME

      public static final String COLUMN_SYSTEM_NAME
      System name this file belongs to eg: workflow
      See Also:
    • COLUMN_FILE_NAME

      public static final String COLUMN_FILE_NAME
      Name of the file
      See Also:
    • COLUMN_FILE_PATH

      public static final String COLUMN_FILE_PATH
      Unique path of the file
      See Also:
    • COLUMN_CONTEXT_ID

      public static final String COLUMN_CONTEXT_ID
      Context id links together multiple operations into one high level action
      See Also:
    • COLUMN_FILE_CONTENTS_VARCHAR

      public static final String COLUMN_FILE_CONTENTS_VARCHAR
      contents of the file if can fit into 4000 bytes
      See Also:
    • COLUMN_FILE_CONTENTS_CLOB

      public static final String COLUMN_FILE_CONTENTS_CLOB
      large contents of the file
      See Also:
    • COLUMN_FILE_CONTENTS_BYTES

      public static final String COLUMN_FILE_CONTENTS_BYTES
      size of file contents in bytes
      See Also:
    • FIELD_ID

      public static final String FIELD_ID
      constant for field name for: id
      See Also:
    • FIELD_SYSTEM_NAME

      public static final String FIELD_SYSTEM_NAME
      constant for field name for: systemName
      See Also:
    • FIELD_CONTEXT_ID

      public static final String FIELD_CONTEXT_ID
      constant for field name for: contextId
      See Also:
    • FIELD_FILE_NAME

      public static final String FIELD_FILE_NAME
      constant for field name for: fileName
      See Also:
    • FIELD_FILE_PATH

      public static final String FIELD_FILE_PATH
      constant for field name for: filePath
      See Also:
    • FIELD_FILE_CONTENTS_VARCHAR

      public static final String FIELD_FILE_CONTENTS_VARCHAR
      constant for field name for: fileContentsVarchar
      See Also:
    • FIELD_FILE_CONTENTS_BYTES

      public static final String FIELD_FILE_CONTENTS_BYTES
      constant for field name for: fileContentsBytes
      See Also:
    • FIELD_FILE_CONTENTS_CLOB

      public static final String FIELD_FILE_CONTENTS_CLOB
      constant for field name for: fileContentsClob
      See Also:
    • TABLE_GROUPER_FILE

      public static final String TABLE_GROUPER_FILE
      name of the table in the database.
      See Also:
  • Constructor Details

    • GrouperFile

      public GrouperFile()
  • Method Details

    • setId

      public void setId(String id1)
      Parameters:
      id1 - the id to set
    • getId

      public String getId()
      Returns:
      id
    • getContextId

      public String getContextId()
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId1)
      set context id
      Specified by:
      setContextId in interface GrouperHasContext
      Parameters:
      contextId1 -
    • getSystemName

      public String getSystemName()
    • setSystemName

      public void setSystemName(String systemName)
    • getFileName

      public String getFileName()
    • setFileName

      public void setFileName(String fileName)
    • getFilePath

      public String getFilePath()
    • setFilePath

      public void setFilePath(String filePath)
    • getFileContentsVarcharDb

      public String getFileContentsVarcharDb()
      value of the property
      Returns:
      the configValue
    • setFileContentsVarcharDb

      public void setFileContentsVarcharDb(String fileContentsVarchar)
    • getFileContentsClobDb

      public String getFileContentsClobDb()
    • setFileContentsClobDb

      public void setFileContentsClobDb(String fileContentsClob)
    • retrieveValue

      public String retrieveValue()
      retrieve value. based on the size, it will be retrieved from file_contents_varchar or file_contents_clob
      Returns:
    • getFileContentsBytes

      public Long getFileContentsBytes()
      size of file contents in bytes
      Returns:
      the fileContentsBytes
    • setFileContentsBytes

      public void setFileContentsBytes(Long fileContentsBytes)
      size of file contents in bytes
      Parameters:
      the - fileContentsBytes
    • setValueToSave

      public void setValueToSave(String value)
      set config value to save. based on the size, it will be saved in config_value or config_value_clob
      Parameters:
      value -
    • clone

      public GrouperAPI clone()
      Description copied from class: GrouperAPI
      deep clone the fields in this object
      Specified by:
      clone in interface GrouperCloneable
      Specified by:
      clone in class GrouperAPI
      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 class GrouperAPI