Class PITGrouperConfigHibernate
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.pit.GrouperPIT
edu.internet2.middleware.grouper.pit.PITGrouperConfigHibernate
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
comment of the propertystatic final String
if this is a password or for whatever other reason is encryptedstatic final String
config file hierarchy, e.g.static final String
config file, e.g.static final String
key of the propertystatic final String
if there is more data than fits in the column this is the 0 indexed orderstatic final String
value of the propertystatic final String
size of the config valuestatic final String
value when it's too big for config_valuestatic final String
for built in configs, this is the index that will identify if the database configs should be replaced from the java codestatic final String
Context id links together multiple operations into one high level actionstatic final String
hibernate versionstatic final String
db id for this rowstatic final String
millis since 1970 this row was last updatedstatic final String
value of the propertystatic final String
value when it's too big for config_valuestatic final String
columnstatic final String
constant for field name for: configCommentstatic final String
constant for field name for: configEncryptedstatic final String
constant for field name for: configFileHierarchystatic final String
constant for field name for: configFileNamestatic final String
constant for field name for: configKeystatic final String
constant for field name for: configSequencestatic final String
constant for field name for: configValuestatic final String
constant for field name for: configValueBytesstatic final String
constant for field name for: configValueClobstatic final String
constant for field name for: configVersionIndexstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: idstatic final String
constant for field name for: lastUpdatedDbstatic final String
constant for field name for: prevConfigValuestatic final String
constant for field name for: prevConfigValueClobstatic final String
constant for field name for: sourceIdstatic final String
name of the table in the database.Fields inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
COLUMN_ACTIVE, COLUMN_END_TIME, COLUMN_START_TIME, FIELD_ACTIVE_DB, FIELD_END_TIME_DB, FIELD_START_TIME_DB
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
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
delete()
delete this objectif this is a password or for whatever other reason is encrypted, T|Fconfig file, e.g.key of the propertyint
if there is more data than fits in the column this is the 0 indexed ordersize of config value in bytesclob value of the propertyclob value of the propertyvalue of the propertyint
for built in configs, this is the index that will identify if the database configs should be replaced from the java codegetId()
when last updatedwhen last updatedget previous value for the config.getValue()
get current value for the config.boolean
if this is a password or for whatever other reason is encryptedvoid
save or update this objectvoid
setConfigComment
(String configComment1) void
setConfigEncrypted
(boolean configEncrypted1) if this is a password or for whatever other reason is encryptedvoid
setConfigEncryptedDb
(String theConfigEncrypted) if this is a password or for whatever other reason is encryptedvoid
setConfigFileHierarchy
(ConfigFileHierarchy configFileHierarchyEnum) void
setConfigFileHierarchy
(String configFileHierarchy) void
setConfigFileHierarchyDb
(String configFileHierarchy) void
setConfigFileName
(String configFileName) void
setConfigFileNameDb
(String configFileName) config file, e.g.void
setConfigKey
(String configKey1) key of the propertyvoid
setConfigSequence
(int configSequence1) if there is more data than fits in the column this is the 0 indexed ordervoid
setConfigValueBytes
(Long configValueBytes) size of config value in bytesvoid
setConfigValueClob
(String configValueClob1) clob value of the propertyvoid
setConfigValueClobDb
(String configValueClob1) value of the propertyvoid
setConfigValueDb
(String configValue1) value of the propertyvoid
setConfigVersionIndex
(int configVersionIndex1) for built in configs, this is the index that will identify if the database configs should be replaced from the java codevoid
setContextId
(String contextId1) set context idvoid
void
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedvoid
setPreviousConfigValueClobDb
(String previousConfigValueClob) previous version of config value clobvoid
setPreviousConfigValueDb
(String previousConfigValue) void
setSourceId
(String sourceId) void
setValueToSave
(String value) set current value to save in db.Methods inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
getActiveDb, getEndTime, getEndTimeDb, getStartTime, getStartTimeDb, isActive, setActiveDb, setEndTimeDb, setStartTimeDb
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, 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_SOURCE_ID
column- See Also:
-
COLUMN_CONTEXT_ID
Context id links together multiple operations into one high level action- See Also:
-
COLUMN_HIBERNATE_VERSION_NUMBER
hibernate version- See Also:
-
COLUMN_CONFIG_KEY
key of the property- See Also:
-
COLUMN_CONFIG_VALUE
value of the property- See Also:
-
COLUMN_CONFIG_VALUE_CLOB
value when it's too big for config_value- See Also:
-
COLUMN_PREV_CONFIG_VALUE
value of the property- See Also:
-
COLUMN_PREV_CONFIG_VALUE_CLOB
value when it's too big for config_value- See Also:
-
COLUMN_CONFIG_VALUE_BYTES
size of the config value- See Also:
-
COLUMN_CONFIG_COMMENT
comment of the property- See Also:
-
COLUMN_CONFIG_SEQUENCE
if there is more data than fits in the column this is the 0 indexed order- See Also:
-
COLUMN_CONFIG_FILE_NAME
config file, e.g. grouper.properties- See Also:
-
COLUMN_CONFIG_FILE_HIERARCHY
config file hierarchy, e.g. BASE, INSTITUTION, ENVIRONMENT, GROUPER_ENGINE- See Also:
-
COLUMN_LAST_UPDATED
millis since 1970 this row was last updated- See Also:
-
COLUMN_CONFIG_VERSION_INDEX
for built in configs, this is the index that will identify if the database configs should be replaced from the java code- See Also:
-
COLUMN_CONFIG_ENCRYPTED
if this is a password or for whatever other reason is encrypted- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_SOURCE_ID
constant for field name for: sourceId- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CONFIG_COMMENT
constant for field name for: configComment- See Also:
-
FIELD_CONFIG_ENCRYPTED
constant for field name for: configEncrypted- See Also:
-
FIELD_CONFIG_FILE_HIERARCHY
constant for field name for: configFileHierarchy- See Also:
-
FIELD_CONFIG_FILE_NAME
constant for field name for: configFileName- See Also:
-
FIELD_CONFIG_KEY
constant for field name for: configKey- See Also:
-
FIELD_CONFIG_SEQUENCE
constant for field name for: configSequence- See Also:
-
FIELD_CONFIG_VALUE
constant for field name for: configValue- See Also:
-
FIELD_PREV_CONFIG_VALUE
constant for field name for: prevConfigValue- See Also:
-
FIELD_PREV_CONFIG_VALUE_CLOB
constant for field name for: prevConfigValueClob- See Also:
-
FIELD_CONFIG_VALUE_CLOB
constant for field name for: configValueClob- See Also:
-
FIELD_CONFIG_VALUE_BYTES
constant for field name for: configValueBytes- See Also:
-
FIELD_CONFIG_VERSION_INDEX
constant for field name for: configVersionIndex- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
TABLE_GROUPER_PIT_CONFIG
name of the table in the database.- See Also:
-
-
Constructor Details
-
PITGrouperConfigHibernate
public PITGrouperConfigHibernate()
-
-
Method Details
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setLastUpdated
when last updated- Parameters:
lastUpdated1
-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1
-
-
getConfigVersionIndex
public int getConfigVersionIndex()for built in configs, this is the index that will identify if the database configs should be replaced from the java code- Returns:
- the configVersionIndex
-
setConfigVersionIndex
public void setConfigVersionIndex(int configVersionIndex1) for built in configs, this is the index that will identify if the database configs should be replaced from the java code- Parameters:
configVersionIndex1
- the configVersionIndex to set
-
getConfigValueDb
value of the property- Returns:
- the configValue
-
getPreviousConfigValueDb
-
setPreviousConfigValueDb
-
getPreviousValue
get previous value for the config. Try config value first and if null return config value clob- Returns:
-
getValue
get current value for the config. Try config value first and if null return config value clob- Returns:
-
setValueToSave
set current value to save in db. Based on the length we either save in config value or config value clob- Parameters:
value
-
-
setConfigValueDb
value of the property- Parameters:
configValue1
- the configValue to set
-
getConfigValueClobDb
clob value of the property- Returns:
- the configValueClob
-
getConfigValueClob
clob value of the property- Returns:
- the configValueClob
-
setConfigValueClobDb
value of the property- Parameters:
configValueClob1
- the configValueClob to set
-
getPreviousConfigValueClobDb
- Returns:
- previous version of config value clob
-
setPreviousConfigValueClobDb
previous version of config value clob- Parameters:
previousConfigValueClob
-
-
getConfigValueBytes
size of config value in bytes- Returns:
- the configValueBytes
-
setConfigValueBytes
size of config value in bytes- Parameters:
the
- configValueBytes
-
getConfigSequence
public int getConfigSequence()if there is more data than fits in the column this is the 0 indexed order- Returns:
- the configSequence
-
setConfigSequence
public void setConfigSequence(int configSequence1) if there is more data than fits in the column this is the 0 indexed order- Parameters:
configSequence1
- the configSequence to set
-
getConfigKey
key of the property- Returns:
- the configKey
-
setConfigKey
key of the property- Parameters:
configKey1
- the configKey to set
-
getConfigFileNameDb
config file, e.g. grouper.properties- Returns:
- the configFileName
-
setConfigFileNameDb
config file, e.g. grouper.properties- Parameters:
configFileName
- the configFileName to set
-
getConfigFileHierarchyDb
- Returns:
- the configFileHierarchy
-
setConfigFileHierarchyDb
- Parameters:
configFileHierarchy
- the configFileHierarchy to set
-
getConfigFileHierarchy
- Returns:
- the configFileHierarchy
-
setConfigFileHierarchy
- Parameters:
configFileHierarchyEnum
- the configFileHierarchy to set
-
getConfigComment
- Returns:
- the configComment
-
setConfigComment
- Parameters:
configComment1
- the configComment to set
-
getConfigEncryptedDb
if this is a password or for whatever other reason is encrypted, T|F- Returns:
- if config encrypted
-
setConfigEncryptedDb
if this is a password or for whatever other reason is encrypted- Parameters:
theConfigEncrypted
-
-
isConfigEncrypted
public boolean isConfigEncrypted()if this is a password or for whatever other reason is encrypted- Returns:
- the configEncrypted
-
setConfigEncrypted
public void setConfigEncrypted(boolean configEncrypted1) if this is a password or for whatever other reason is encrypted- Parameters:
configEncrypted1
- the configEncrypted to set
-
setId
- Parameters:
id1
- the id to set
-
getId
- Returns:
- id
-
getContextId
- Returns:
- context id
-
setContextId
set context id- Parameters:
contextId1
-
-
setConfigValueClob
clob value of the property- Parameters:
configValueClob1
- the configValueClob to set
-
getSourceId
-
setSourceId
-
getConfigFileName
-
setConfigFileName
-
setConfigFileHierarchy
-
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:
-
saveOrUpdate
public void saveOrUpdate()save or update this object -
delete
public void delete()delete this object
-