public class AttributeAssignAction extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, GrouperSetElement, XmlImportable<AttributeAssignAction>
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_ATTRIBUTE_DEF_ID
column
|
static String |
COLUMN_CONTEXT_ID
column
|
static String |
COLUMN_CREATED_ON
column
|
static String |
COLUMN_ID
column
|
static String |
COLUMN_LAST_UPDATED
column
|
static String |
COLUMN_NAME
column
|
static String |
FIELD_ATTRIBUTE_DEF_ID
constant for field name for: attributeDefId
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
FIELD_NAME
constant for field name for: name
|
static String |
TABLE_GROUPER_ATTR_ASSIGN_ACTION
name of the groups attribute assign action table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Constructor and Description |
---|
AttributeAssignAction() |
Modifier and Type | Method and Description |
---|---|
String |
__getId()
if of this object
|
String |
__getName()
name of this object (for logging)
|
AttributeAssignAction |
clone()
deep clone the fields in this object
|
AttributeAssignAction |
dbVersion()
save the state when retrieving from DB
|
Set<String> |
dbVersionDifferentFields()
see which fields have changed compared to the DB state (last known)
note that attributes will print out: attribute__attributeName
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db
|
void |
delete()
save or update this object
|
boolean |
equals(Object other) |
AttributeAssignActionSetDelegate |
getAttributeAssignActionSetDelegate() |
AttributeDef |
getAttributeDef()
attribute def that this action is possible for
|
String |
getAttributeDefId()
id of the attribute def that this action is possible for
|
String |
getContextId()
context id of the transaction
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
String |
getId()
id of this attribute def name
|
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
String |
getName() |
String |
getNameDb() |
int |
hashCode() |
void |
onPreDelete(HibernateSession hibernateSession)
before a delete (insert) occurs
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
void |
save()
save save this object (insert), assign uuid, etc
|
void |
setAttributeDefId(String attributeDefId1)
id of the attribute def that this action is possible for
|
void |
setContextId(String contextId1)
context id of the transaction
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setId(String id1)
id of this attribute def name
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
void |
setName(String name1) |
void |
setNameDb(String name1) |
String |
toString() |
void |
update()
update this object (update to DB)
|
void |
xmlCopyBusinessPropertiesToExisting(AttributeAssignAction existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(AttributeAssignAction other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(AttributeAssignAction other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
AttributeAssignAction |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
AttributeAssignAction |
xmlSaveBusinessProperties(AttributeAssignAction existingRecord)
save the business properties (not update properties)
|
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g.
|
void |
xmlSetId(String theId)
set id key in db
|
XmlExportAttributeAssignAction |
xmlToExportAttributeAssignAction(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onSave, onUpdate, setHibernateVersionNumber
public static final String FIELD_ATTRIBUTE_DEF_ID
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_ID
public static final String FIELD_LAST_UPDATED_DB
public static final String FIELD_NAME
public static final String COLUMN_ATTRIBUTE_DEF_ID
public static final String COLUMN_CONTEXT_ID
public static final String COLUMN_CREATED_ON
public static final String COLUMN_ID
public static final String COLUMN_LAST_UPDATED
public static final String COLUMN_NAME
public static final String TABLE_GROUPER_ATTR_ASSIGN_ACTION
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(HibernateSession)
public AttributeAssignActionSetDelegate getAttributeAssignActionSetDelegate()
public String getAttributeDefId()
public AttributeDef getAttributeDef()
public void setAttributeDefId(String attributeDefId1)
attributeDefId1
- the attributeDefId to setpublic String __getId()
GrouperSetElement
__getId
in interface GrouperSetElement
GrouperSetElement.__getId()
public String __getName()
GrouperSetElement
__getName
in interface GrouperSetElement
GrouperSetElement.__getName()
public AttributeAssignAction clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public void delete()
public String getContextId()
public Timestamp getCreatedOn()
public Long getCreatedOnDb()
public String getId()
public Timestamp getLastUpdated()
public Long getLastUpdatedDb()
public String getName()
public String getNameDb()
public void setContextId(String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public void setCreatedOn(Timestamp createdOn1)
createdOn1
- public void setCreatedOnDb(Long createdOn1)
createdOn1
- public void setId(String id1)
id1
- public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1
- public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1
- public void setName(String name1)
name1
- public void setNameDb(String name1)
name1
- public String toString()
toString
in class Object
Object.toString()
public void save()
public void update()
public void xmlCopyBusinessPropertiesToExisting(AttributeAssignAction existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<AttributeAssignAction>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(AttributeAssignAction other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<AttributeAssignAction>
other
- the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(AttributeAssignAction other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<AttributeAssignAction>
other
- the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public AttributeAssignAction xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<AttributeAssignAction>
XmlImportable.xmlRetrieveByIdOrKey()
public AttributeAssignAction xmlSaveBusinessProperties(AttributeAssignAction existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<AttributeAssignAction>
existingRecord
- null if insert, the object if exists in DB
generally just copy the hibernate version number, and last updated to the
object and store itXmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<AttributeAssignAction>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportAttributeAssignAction xmlToExportAttributeAssignAction(GrouperVersion grouperVersion)
grouperVersion
- public String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<AttributeAssignAction>
XmlImportableBase.xmlGetId()
public void xmlSetId(String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<AttributeAssignAction>
XmlImportableBase.xmlSetId(java.lang.String)
public String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<AttributeAssignAction>
XmlImportableBase.xmlToString()
public AttributeAssignAction dbVersion()
dbVersion
in class GrouperAPI
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public Set<String> dbVersionDifferentFields()
GrouperAPI
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2016 Internet2. All rights reserved.