Class AttributeAssign
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.attr.assign.AttributeAssign
- All Implemented Interfaces:
AttributeAssignable
,HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperHasContext
,GrouperUtil.FieldValuable
,XmlImportableBase<AttributeAssign>
,XmlImportableMultiple<AttributeAssign>
,Serializable
,org.hibernate.classic.Lifecycle
public class AttributeAssign
extends GrouperAPI
implements GrouperHasContext, Hib3GrouperVersioned, XmlImportableMultiple<AttributeAssign>, AttributeAssignable
assignment of an attribute
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
actions col in dbstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
allowed col in dbstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
constant for field name for: attributeAssignActionIdstatic final String
constant for field name for: attributeAssignDelegatablestatic final String
constant for field name for: attributeAssignTypestatic final String
constant for field name for: attributeDefNameIdstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: createdOnDbstatic final String
constant for field name for: disabledTimeDbstatic final String
constant for field name for: disallowedstatic final String
constant for field name for: enabledstatic final String
constant for field name for: enabledTimeDbstatic final String
constant for field name for: idstatic final String
constant for field name for: lastUpdatedDbstatic final String
constant for field name for: notesstatic final String
constant for field name for: ownerAttributeAssignIdstatic final String
constant for field name for: ownerAttributeDefIdstatic final String
constant for field name for: ownerGroupIdstatic final String
constant for field name for: ownerMemberIdstatic final String
constant for field name for: ownerMembershipIdstatic final String
constant for field name for: ownerStemIdstatic final String
constant for field name for: valueDelegatestatic final String
name of the groups attribute def table in the dbFields 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
ConstructorDescriptionAttributeAssign
(AttributeAssign ownerAttributeAssign, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuidAttributeAssign
(AttributeDef ownerAttributeDef, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuidAttributeAssign
(Group ownerGroup, Member ownerMember, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid.AttributeAssign
(Group ownerGroup, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuidAttributeAssign
(Member ownerMember, String theActionId, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuidAttributeAssign
(Membership ownerMembership, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuidAttributeAssign
(Stem ownerStem, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<AttributeAssign>
clone()
deep clone the fields in this objectsave the state when retrieving from DBsee which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeNamevoid
take a snapshot of the data since this is what is in the dbvoid
delete()
delete this objectvoid
delete this attribute assignment (and child objects) and recommit it (which will not have the child objects or will have this time)boolean
action for this assignment (e.g.get the enum for delegatable, do not return nullinternal method for hibernate to persist this enumget the enum for delegatable, should not return nullinternal method for hibernate to persist this enumattribute name in this assignmentget the logic delegatethis delegate works on attributes and values at the same timecontext id of the transactionwhen createdwhen createdif there is a date here, and it is in the past, this assignment is disabledif there is a date here, and it is in the past, this assignment is disabledif this is a permission, then if this permission assignment is allowed or nottrue or false for if this assignment is enabled (e.g.if there is a date here, and it is in the future, this assignment is disabled until that timeif there is a date here, and it is in the future, this assignment is disabled until that timegetId()
id of this attribute assignwhen last updatedwhen last updatedgetNotes()
notes about this assignment, free-form textif this is a attribute assign attribute, this is the foreign keyif this is an attribute assign attribute, this is the foreign keyif this is a attributeDef attribute, this is the foreign keyif this is an attribute def attribute, this is the foreign keyif this is a group attribute, this is the foreign keyif this is a group attribute, this is the foreign keyif this is a membership attribute, this is the foreign keyif this is a member attribute, this is the foreign keyif this is a member attribute, this is the foreign keyif this is a membership attribute, this is the foreign keyif this is a membership attribute, this is the foreign keyif it is possible to get a single ownerid (i.e.if this is a stem attribute, this is the foreign keyif this is a stem attribute, this is the foreign keyif this is a stem attribute, this is the foreign keyint
hashCode()
boolean
should this be enabled or disabled based on timestampsvoid
internalSetAttributeDef
(AttributeDef attributeDef1) set this for cachingvoid
internalSetAttributeDefName
(AttributeDefName attributeDefName1) set this for cachingboolean
if this is a permission, then if this permission assignment is allowed or notboolean
boolean
if there is a single idvoid
onPostDelete
(HibernateSession hibernateSession) after a delete occursvoid
onPostSave
(HibernateSession hibernateSession) after a save (insert) occursvoid
onPostUpdate
(HibernateSession hibernateSession) after an update occursvoid
onPreDelete
(HibernateSession hibernateSession) before a delete (insert) occursvoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursget the delegate that relates the object with the the assignmentget the delegate that relates the object with the the assignmentstatic Set<AttributeDef>
retrieveAttributeDefs
(Collection<AttributeAssign> attributeAssigns) retrieve a set of attributeDefs based on some assignmentsvoid
save or update this objectvoid
saveOrUpdate
(boolean checkSecurity) save or update this objectvoid
setAttributeAssignActionId
(String theActionId) default is "assign" actions must contain only alphanumeric or underscore, case sensitive e.g.void
setAttributeAssignDelegatable
(AttributeAssignDelegatable attributeAssignDelegatable1) void
setAttributeAssignDelegatableDb
(String theAttributeAssignDelegatableDb) internal method for hibernate to set if delegatablevoid
setAttributeAssignType
(AttributeAssignType attributeAssignType1) void
setAttributeAssignTypeDb
(String theAttributeAssignTypeDb) internal method for hibernate to set if delegatablevoid
setAttributeDefNameId
(String attributeDefNameId1) attribute name in this assignmentvoid
setContextId
(String contextId1) context id of the transactionvoid
setCreatedOn
(Timestamp createdOn1) when createdvoid
setCreatedOnDb
(Long createdOn1) when createdvoid
setDisabledTime
(Timestamp disabledTimeDb1) if there is a date here, and it is in the past, this assignment is disabledvoid
setDisabledTimeDb
(Long disabledTimeDb1) if there is a date here, and it is in the past, this assignment is disabledvoid
setDisallowed
(boolean disallowed1) if this is a permission, then if this permission assignment is allowed or notvoid
setDisallowedDb
(String disallowed1) if this is a permission, then if this permission assignment is allowed or notvoid
setEnabled
(boolean enabled1) true or false for if this assignment is enabled (e.g.void
setEnabledDb
(String enabled1) true or false for if this assignment is enabled (e.g.void
setEnabledTime
(Timestamp enabledTimeDb1) if there is a date here, and it is in the future, this assignment is disabled until that timevoid
setEnabledTimeDb
(Long enabledTimeDb1) if there is a date here, and it is in the future, this assignment is disabled until that timevoid
id of this attribute assignvoid
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedvoid
notes about this assignment, free-form textvoid
setOwnerAttributeAssignId
(String ownerAttributeAssignId1) if this is an attribute assign attribute, this is the foreign keyvoid
setOwnerAttributeDefId
(String ownerAttributeDefId1) if this is an attribute def attribute, this is the foreign keyvoid
setOwnerGroupId
(String ownerAttributeGroupId1) if this is a group attribute, this is the foreign keyvoid
setOwnerMemberId
(String ownerAttributeMemberId1) if this is a member attribute, this is the foreign keyvoid
setOwnerMembershipId
(String ownerAttributeMembershipId1) if this is a membership attribute, this is the foreign keyvoid
setOwnerStemId
(String ownerAttributeStemId1) if this is a stem attribute, this is the foreign keytoString()
void
xmlCopyBusinessPropertiesToExisting
(AttributeAssign existingRecord) copy business (non update) properties to an existing recordboolean
see if the non update cols are different (e.g.boolean
see if the update cols are different (e.g.xmlGetId()
set id key in dbxmlRetrieveByIdOrKey
(Collection<String> idsToIgnore) retrieve from db by id or key.xmlSaveBusinessProperties
(AttributeAssign existingRecord) save the business properties (not update properties)void
save the udpate properties (e.g.void
set id key in dbxmlToExportAttributeAssign
(GrouperVersion grouperVersion) convert to xml bean for exportconvert to string for logMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
TABLE_GROUPER_ATTRIBUTE_ASSIGN
name of the groups attribute def table in the db- See Also:
-
COLUMN_DISALLOWED
allowed col in db- See Also:
-
COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID
actions col in db- See Also:
-
COLUMN_CONTEXT_ID
column- See Also:
-
COLUMN_CREATED_ON
column- See Also:
-
COLUMN_LAST_UPDATED
column- See Also:
-
COLUMN_NOTES
column- See Also:
-
COLUMN_ID
column- See Also:
-
COLUMN_ATTRIBUTE_DEF_NAME_ID
column- See Also:
-
COLUMN_ATTRIBUTE_ASSIGN_DELEGATABLE
column- See Also:
-
COLUMN_ATTRIBUTE_ASSIGN_TYPE
column- See Also:
-
COLUMN_OWNER_GROUP_ID
column- See Also:
-
COLUMN_OWNER_STEM_ID
column- See Also:
-
COLUMN_OWNER_MEMBER_ID
column- See Also:
-
COLUMN_OWNER_MEMBERSHIP_ID
column- See Also:
-
COLUMN_OWNER_ATTRIBUTE_ASSIGN_ID
column- See Also:
-
COLUMN_OWNER_ATTRIBUTE_DEF_ID
column- See Also:
-
COLUMN_ENABLED
column- See Also:
-
COLUMN_ENABLED_TIME
column- See Also:
-
COLUMN_DISABLED_TIME
column- See Also:
-
FIELD_DISALLOWED
constant for field name for: disallowed- See Also:
-
FIELD_ATTRIBUTE_ASSIGN_ACTION_ID
constant for field name for: attributeAssignActionId- See Also:
-
FIELD_ATTRIBUTE_ASSIGN_DELEGATABLE
constant for field name for: attributeAssignDelegatable- See Also:
-
FIELD_ATTRIBUTE_ASSIGN_TYPE
constant for field name for: attributeAssignType- See Also:
-
FIELD_ATTRIBUTE_DEF_NAME_ID
constant for field name for: attributeDefNameId- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb- See Also:
-
FIELD_DISABLED_TIME_DB
constant for field name for: disabledTimeDb- See Also:
-
FIELD_ENABLED_TIME_DB
constant for field name for: enabledTimeDb- See Also:
-
FIELD_ENABLED
constant for field name for: enabled- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
FIELD_NOTES
constant for field name for: notes- See Also:
-
FIELD_OWNER_ATTRIBUTE_ASSIGN_ID
constant for field name for: ownerAttributeAssignId- See Also:
-
FIELD_OWNER_ATTRIBUTE_DEF_ID
constant for field name for: ownerAttributeDefId- See Also:
-
FIELD_OWNER_GROUP_ID
constant for field name for: ownerGroupId- See Also:
-
FIELD_OWNER_MEMBER_ID
constant for field name for: ownerMemberId- See Also:
-
FIELD_OWNER_MEMBERSHIP_ID
constant for field name for: ownerMembershipId- See Also:
-
FIELD_OWNER_STEM_ID
constant for field name for: ownerStemId- See Also:
-
FIELD_VALUE_DELEGATE
constant for field name for: valueDelegate- See Also:
-
-
Constructor Details
-
AttributeAssign
public AttributeAssign() -
AttributeAssign
public AttributeAssign(Stem ownerStem, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerStem
-theAction
-theAttributeDefName
-uuid
-
-
AttributeAssign
public AttributeAssign(AttributeDef ownerAttributeDef, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerAttributeDef
-theAction
-theAttributeDefName
-uuid
- is uuid or null if generated
-
AttributeAssign
public AttributeAssign(Group ownerGroup, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerGroup
-theAction
-theAttributeDefName
-uuid
- is the uuid or null if generated
-
AttributeAssign
public AttributeAssign(Group ownerGroup, Member ownerMember, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid. This is for an immediate or effective membership- Parameters:
ownerGroup
-ownerMember
-theAction
-theAttributeDefName
-uuid
-
-
AttributeAssign
public AttributeAssign(AttributeAssign ownerAttributeAssign, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerAttributeAssign
-theAction
-theAttributeDefName
-uuid
- to use or null for generated
-
AttributeAssign
public AttributeAssign(Membership ownerMembership, String theAction, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerMembership
-theAction
-theAttributeDefName
-uuid
-
-
AttributeAssign
public AttributeAssign(Member ownerMember, String theActionId, AttributeDefName theAttributeDefName, String uuid) create an attribute assign, including a uuid- Parameters:
ownerMember
-theActionId
-theAttributeDefName
-uuid
- is the uuid or null for generated
-
-
Method Details
-
saveOrUpdate
public void saveOrUpdate()save or update this object -
saveOrUpdate
public void saveOrUpdate(boolean checkSecurity) save or update this object- Parameters:
checkSecurity
-
-
attributeAssignDeletes
- Returns:
- if in delete
-
delete
public void delete()delete this object -
clone
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:
-
getAttributeAssignDelegatable
get the enum for delegatable, do not return null- Returns:
- the attributeAssignDelegatable
-
getAttributeAssignDelegatableDb
internal method for hibernate to persist this enum- Returns:
- the string value (enum name)
-
setAttributeAssignDelegatableDb
internal method for hibernate to set if delegatable- Parameters:
theAttributeAssignDelegatableDb
-
-
setAttributeAssignDelegatable
- Parameters:
attributeAssignDelegatable1
- the attributeAssignDelegatable to set
-
getAttributeAssignType
get the enum for delegatable, should not return null- Returns:
- the attributeAssignDelegatable
-
getAttributeAssignTypeDb
internal method for hibernate to persist this enum- Returns:
- the string value (enum name)
-
setAttributeAssignTypeDb
internal method for hibernate to set if delegatable- Parameters:
theAttributeAssignTypeDb
-
-
setAttributeAssignType
- Parameters:
attributeAssignType1
- the attributeAssignDelegatable to set
-
setDisallowed
public void setDisallowed(boolean disallowed1) if this is a permission, then if this permission assignment is allowed or not- Parameters:
disallowed1
- the allowed to set
-
setDisallowedDb
if this is a permission, then if this permission assignment is allowed or not- Parameters:
disallowed1
- the allowed to set
-
getDisallowedDb
if this is a permission, then if this permission assignment is allowed or not- Returns:
- the allowed
-
isDisallowed
public boolean isDisallowed()if this is a permission, then if this permission assignment is allowed or not- Returns:
- if allowed
-
getAttributeAssignActionId
action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT. action must exist in AttributeDef.actions- Returns:
- the action
-
internalSetAttributeDefName
set this for caching- Parameters:
attributeDefName1
-
-
internalSetAttributeDef
set this for caching- Parameters:
attributeDef1
-
-
getAttributeDefName
- Returns:
- attributeDefName
-
getAttributeAssignAction
- Returns:
- attributeAssignAction
-
getAttributeDef
- Returns:
- attributeDef
-
getAttributeDelegate
Description copied from interface:AttributeAssignable
get the logic delegate- Specified by:
getAttributeDelegate
in interfaceAttributeAssignable
- Returns:
- the delegate
-
setAttributeAssignActionId
default is "assign" actions must contain only alphanumeric or underscore, case sensitive e.g. id for read,write,admin- Parameters:
theActionId
-
-
getContextId
context id of the transaction- Returns:
- context id
-
setContextId
context id of the transaction- Specified by:
setContextId
in interfaceGrouperHasContext
- Parameters:
contextId1
-
-
getId
id of this attribute assign- Returns:
- id
-
setId
id of this attribute assign- Parameters:
id1
-
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setLastUpdated
when last updated- Parameters:
lastUpdated1
-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1
-
-
getCreatedOn
when created- Returns:
- timestamp
-
getCreatedOnDb
when created- Returns:
- timestamp
-
setCreatedOn
when created- Parameters:
createdOn1
-
-
setCreatedOnDb
when created- Parameters:
createdOn1
-
-
getNotes
notes about this assignment, free-form text- Returns:
- the notes
-
setNotes
notes about this assignment, free-form text- Parameters:
notes1
-
-
getAttributeDefNameId
attribute name in this assignment- Returns:
- the attributeNameId
-
setAttributeDefNameId
attribute name in this assignment- Parameters:
attributeDefNameId1
- the attributeNameId to set
-
getOwnerAttributeAssignId
if this is an attribute assign attribute, this is the foreign key- Returns:
- the ownerAttributeAssignId
-
setOwnerAttributeAssignId
if this is an attribute assign attribute, this is the foreign key- Parameters:
ownerAttributeAssignId1
- the ownerAttributeAssignId to set
-
getOwnerAttributeDefId
if this is an attribute def attribute, this is the foreign key- Returns:
- the ownerAttributeDefId
-
setOwnerAttributeDefId
if this is an attribute def attribute, this is the foreign key- Parameters:
ownerAttributeDefId1
- the ownerAttributeDefId to set
-
getOwnerGroupId
if this is a group attribute, this is the foreign key- Returns:
- the ownerAttributeGroupId
-
getOwnerGroup
if this is a group attribute, this is the foreign key- Returns:
- the ownerGroup
-
getOwnerMembership
if this is a membership attribute, this is the foreign key- Returns:
- the ownerMembership
-
getOwnerMember
if this is a member attribute, this is the foreign key- Returns:
- the ownerMember
-
getOwnerAttributeAssign
if this is a attribute assign attribute, this is the foreign key- Returns:
- the ownerAttributeAssign
-
getOwnerAttributeDef
if this is a attributeDef attribute, this is the foreign key- Returns:
- the ownerAttributeDef
-
getOwnerImmediateMembership
if this is a membership attribute, this is the foreign key- Returns:
- the ownerAttributeDef
-
getOwnerStem
if this is a stem attribute, this is the foreign key- Returns:
- the ownerStem
-
getOwnerStemFailsafe
if this is a stem attribute, this is the foreign key- Returns:
- the ownerStem
-
setOwnerGroupId
if this is a group attribute, this is the foreign key- Parameters:
ownerAttributeGroupId1
- the ownerAttributeGroupId to set
-
getOwnerMemberId
if this is a member attribute, this is the foreign key- Returns:
- the ownerAttributeMemberId
-
setOwnerMemberId
if this is a member attribute, this is the foreign key- Parameters:
ownerAttributeMemberId1
- the ownerAttributeMemberId to set
-
getOwnerMembershipId
if this is a membership attribute, this is the foreign key- Returns:
- the ownerAttributeMembershipId
-
setOwnerMembershipId
if this is a membership attribute, this is the foreign key- Parameters:
ownerAttributeMembershipId1
- the ownerAttributeMembershipId to set
-
getOwnerStemId
if this is a stem attribute, this is the foreign key- Returns:
- the ownerAttributeStemId
-
setOwnerStemId
if this is a stem attribute, this is the foreign key- Parameters:
ownerAttributeStemId1
- the ownerAttributeStemId to set
-
internal_isEnabledUsingTimestamps
public boolean internal_isEnabledUsingTimestamps()should this be enabled or disabled based on timestamps- Returns:
- the enabled
-
isEnabled
public boolean isEnabled()- Returns:
- true if this attribute assignment is enabled
-
getEnabledDb
true or false for if this assignment is enabled (e.g. might have expired)- Returns:
- the enabled
-
setEnabledDb
true or false for if this assignment is enabled (e.g. might have expired)- Parameters:
enabled1
- the enabled to set
-
setEnabled
public void setEnabled(boolean enabled1) true or false for if this assignment is enabled (e.g. might have expired)- Parameters:
enabled1
- the enabled to set
-
getEnabledTimeDb
if there is a date here, and it is in the future, this assignment is disabled until that time- Returns:
- the enabledTimeDb
-
setEnabledTimeDb
if there is a date here, and it is in the future, this assignment is disabled until that time- Parameters:
enabledTimeDb1
- the enabledTimeDb to set
-
getDisabledTimeDb
if there is a date here, and it is in the past, this assignment is disabled- Returns:
- the disabledTimeDb
-
setDisabledTimeDb
if there is a date here, and it is in the past, this assignment is disabled- Parameters:
disabledTimeDb1
- the disabledTimeDb to set
-
getEnabledTime
if there is a date here, and it is in the future, this assignment is disabled until that time- Returns:
- the enabledTimeDb
-
setEnabledTime
if there is a date here, and it is in the future, this assignment is disabled until that time- Parameters:
enabledTimeDb1
- the enabledTimeDb to set
-
getDisabledTime
if there is a date here, and it is in the past, this assignment is disabled- Returns:
- the disabledTimeDb
-
setDisabledTime
if there is a date here, and it is in the past, this assignment is disabled- Parameters:
disabledTimeDb1
- the disabledTimeDb to set
-
toString
-
xmlCopyBusinessPropertiesToExisting
Description copied from interface:XmlImportableBase
copy business (non update) properties to an existing record- Specified by:
xmlCopyBusinessPropertiesToExisting
in interfaceXmlImportableBase<AttributeAssign>
- See Also:
-
xmlDifferentBusinessProperties
Description copied from interface:XmlImportableBase
see if the non update cols are different (e.g. name)- Specified by:
xmlDifferentBusinessProperties
in interfaceXmlImportableBase<AttributeAssign>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlDifferentUpdateProperties
Description copied from interface:XmlImportableBase
see if the update cols are different (e.g. last updated)- Specified by:
xmlDifferentUpdateProperties
in interfaceXmlImportableBase<AttributeAssign>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlSaveBusinessProperties
Description copied from interface:XmlImportableBase
save the business properties (not update properties)- Specified by:
xmlSaveBusinessProperties
in interfaceXmlImportableBase<AttributeAssign>
- Parameters:
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 it- Returns:
- the new object or existing
- See Also:
-
xmlSaveUpdateProperties
public void xmlSaveUpdateProperties()Description copied from interface:XmlImportableBase
save the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate- Specified by:
xmlSaveUpdateProperties
in interfaceXmlImportableBase<AttributeAssign>
- See Also:
-
xmlRetrieveByIdOrKey
Description copied from interface:XmlImportableMultiple
retrieve from db by id or key. throws exception if duplicate- Specified by:
xmlRetrieveByIdOrKey
in interfaceXmlImportableMultiple<AttributeAssign>
- Parameters:
idsToIgnore
- these are ids already processed, do not pick these- Returns:
- the object or null if not found
- See Also:
-
xmlToExportAttributeAssign
convert to xml bean for export- Parameters:
grouperVersion
-- Returns:
- xml bean
-
xmlGetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlGetId
in interfaceXmlImportableBase<AttributeAssign>
- Returns:
- id
- See Also:
-
xmlSetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlSetId
in interfaceXmlImportableBase<AttributeAssign>
- See Also:
-
xmlToString
Description copied from interface:XmlImportableBase
convert to string for log- Specified by:
xmlToString
in interfaceXmlImportableBase<AttributeAssign>
- Returns:
- the string value for log
- See Also:
-
retrieveAttributeAssignable
get the delegate that relates the object with the the assignment- Returns:
- the delegate
-
retrieveAttributeAssignDelegate
get the delegate that relates the object with the the assignment- Returns:
- the delegate
-
getValueDelegate
- Returns:
- the value delegate
-
getAttributeValueDelegate
this delegate works on attributes and values at the same time- Specified by:
getAttributeValueDelegate
in interfaceAttributeAssignable
- Returns:
- the delegate
-
equals
-
hashCode
public int hashCode() -
retrieveAttributeDefs
retrieve a set of attributeDefs based on some assignments- Parameters:
attributeAssigns
-- Returns:
- the set of attributeDefs
-
onPostDelete
Description copied from interface:HibGrouperLifecycle
after a delete occurs- Specified by:
onPostDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPostDelete
in classGrouperAPI
- See Also:
-
onPostSave
Description copied from interface:HibGrouperLifecycle
after a save (insert) occurs- Specified by:
onPostSave
in interfaceHibGrouperLifecycle
- Overrides:
onPostSave
in classGrouperAPI
- See Also:
-
onPostUpdate
Description copied from interface:HibGrouperLifecycle
after an update occurs- Specified by:
onPostUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPostUpdate
in classGrouperAPI
- See Also:
-
onPreDelete
Description copied from interface:HibGrouperLifecycle
before a delete (insert) occurs- Specified by:
onPreDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPreDelete
in classGrouperAPI
- See Also:
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- Overrides:
onPreSave
in classGrouperAPI
- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
getOwnerSingleId
if it is possible to get a single ownerid (i.e. not any_mem), then do that here- Returns:
- the single owner id
-
isHasSingleId
public boolean isHasSingleId()if there is a single id- Returns:
- true if has a single id
-
deleteAndStore
public void deleteAndStore()delete this attribute assignment (and child objects) and recommit it (which will not have the child objects or will have this time) -
dbVersion
save the state when retrieving from DB- Overrides:
dbVersion
in classGrouperAPI
- Returns:
- the dbVersion
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Overrides:
dbVersionReset
in classGrouperAPI
-
dbVersionDifferentFields
Description copied from class:GrouperAPI
see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName- Overrides:
dbVersionDifferentFields
in classGrouperAPI
- Returns:
- a set of attributes changed, or empty set if none
- See Also:
-