|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.attr.value.AttributeAssignValue
public class AttributeAssignValue
value of an attribute assignment (could be multi-valued based on the attributeDef
| Nested Class Summary | |
|---|---|
static class |
AttributeAssignValue.AttributeAssignValueType
|
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_ATTRIBUTE_ASSIGN_ID
column |
static java.lang.String |
COLUMN_CONTEXT_ID
column |
static java.lang.String |
COLUMN_CREATED_ON
column |
static java.lang.String |
COLUMN_ID
column |
static java.lang.String |
COLUMN_LAST_UPDATED
column |
static java.lang.String |
COLUMN_VALUE_FLOATING
column |
static java.lang.String |
COLUMN_VALUE_INTEGER
column |
static java.lang.String |
COLUMN_VALUE_MEMBER_ID
column |
static java.lang.String |
COLUMN_VALUE_STRING
column |
static java.lang.String |
FIELD_ATTRIBUTE_ASSIGN_ID
constant for field name for: attributeAssignId |
static java.lang.String |
FIELD_CONTEXT_ID
constant for field name for: contextId |
static java.lang.String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb |
static java.lang.String |
FIELD_ID
constant for field name for: id |
static java.lang.String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb |
static java.lang.String |
FIELD_VALUE_FLOATING
constant for field name for: valueFloating |
static java.lang.String |
FIELD_VALUE_INTEGER
constant for field name for: valueInteger |
static java.lang.String |
FIELD_VALUE_MEMBER_ID
constant for field name for: valueMemberId |
static java.lang.String |
FIELD_VALUE_STRING
constant for field name for: valueString |
static java.lang.String |
TABLE_GROUPER_ATTRIBUTE_ASSIGN_VALUE
name of the groups attribute def table in the db |
| Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI |
|---|
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER |
| Fields inherited from interface org.hibernate.classic.Lifecycle |
|---|
NO_VETO, VETO |
| Constructor Summary | |
|---|---|
AttributeAssignValue()
|
|
| Method Summary | |
|---|---|
void |
assignValue(AttributeAssignValue attributeAssignValue)
clear all the values |
void |
assignValue(java.lang.String value)
assign a value to any type |
void |
clearValue()
clear all the values |
AttributeAssignValue |
clone()
deep clone the fields in this object |
static java.lang.String |
dateToString(java.util.Date date)
convert a date to a string using the standard web service pattern yyyy/MM/dd HH:mm:ss.SSS Note that HH is 0-23 |
AttributeAssignValue |
dbVersion()
save the state when retrieving from DB |
java.util.Set<java.lang.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()
delete this record |
AttributeAssign |
getAttributeAssign()
get the attribute assign |
java.lang.String |
getAttributeAssignId()
attribute assignment in this value assignment |
java.lang.String |
getContextId()
context id of the transaction |
java.sql.Timestamp |
getCreatedOn()
when created |
java.lang.Long |
getCreatedOnDb()
when created |
AttributeAssignValue.AttributeAssignValueType |
getCurrentAssignValueType()
get the type of this value |
java.lang.String |
getId()
id of this attribute def |
java.sql.Timestamp |
getLastUpdated()
when last updated |
java.lang.Long |
getLastUpdatedDb()
when last updated |
java.lang.Double |
getValueFloating()
floating point value |
java.lang.String |
getValueFriendly()
get value string value |
java.lang.Long |
getValueInteger()
integer value |
java.lang.String |
getValueMemberId()
memberId value (for subjects) |
java.lang.String |
getValueString()
string value |
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs |
void |
onPostSave(HibernateSession hibernateSession)
after a save (insert) occurs |
void |
onPostUpdate(HibernateSession hibernateSession)
after an update occurs |
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 |
boolean |
sameValue(AttributeAssignValue attributeAssignValue)
if the argument has the same value as this |
void |
saveOrUpdate()
save or update this object |
void |
setAttributeAssignId(java.lang.String attributeAssignId1)
attribute assignment in this value assignment |
void |
setContextId(java.lang.String contextId1)
context id of the transaction |
void |
setCreatedOn(java.sql.Timestamp createdOn1)
when created |
void |
setCreatedOnDb(java.lang.Long createdOn1)
when created |
void |
setId(java.lang.String id1)
id of this attribute def |
void |
setLastUpdated(java.sql.Timestamp lastUpdated1)
when last updated |
void |
setLastUpdatedDb(java.lang.Long lastUpdated1)
when last updated |
void |
setValueFloating(java.lang.Double valueFloating1)
floating point value |
void |
setValueInteger(java.lang.Long valueInteger1)
integer value |
void |
setValueMemberId(java.lang.String valueMemberId1)
memberId value (for subjects) |
void |
setValueString(java.lang.String valueString1)
string value |
static java.util.Date |
stringToDate(java.lang.String dateString)
convert a string to a date using the standard web service pattern Note that HH is 0-23 |
java.lang.String |
toString()
|
java.lang.String |
valueString()
whatever the type, return the string value |
java.lang.String |
valueString(boolean convertTimestampToFriendly)
whatever the type, return the string value |
void |
xmlCopyBusinessPropertiesToExisting(AttributeAssignValue existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(AttributeAssignValue other)
see if the non update cols are different (e.g. name) |
boolean |
xmlDifferentUpdateProperties(AttributeAssignValue other)
see if the update cols are different (e.g. last updated) |
java.lang.String |
xmlGetId()
set id key in db |
AttributeAssignValue |
xmlRetrieveByIdOrKey(java.util.Collection<java.lang.String> idsToIgnore)
retrieve from db by id or key. |
AttributeAssignValue |
xmlSaveBusinessProperties(AttributeAssignValue existingRecord)
save the business properties (not update properties) |
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportAttributeAssignValue |
xmlToExportAttributeAssignValue(GrouperVersion grouperVersion)
convert to xml bean for export |
java.lang.String |
xmlToString()
convert to string for log |
| Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI |
|---|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TABLE_GROUPER_ATTRIBUTE_ASSIGN_VALUE
public static final java.lang.String COLUMN_CONTEXT_ID
public static final java.lang.String COLUMN_CREATED_ON
public static final java.lang.String COLUMN_LAST_UPDATED
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_VALUE_STRING
public static final java.lang.String COLUMN_VALUE_FLOATING
public static final java.lang.String COLUMN_VALUE_INTEGER
public static final java.lang.String COLUMN_VALUE_MEMBER_ID
public static final java.lang.String COLUMN_ATTRIBUTE_ASSIGN_ID
public static final java.lang.String FIELD_ATTRIBUTE_ASSIGN_ID
public static final java.lang.String FIELD_CONTEXT_ID
public static final java.lang.String FIELD_CREATED_ON_DB
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_LAST_UPDATED_DB
public static final java.lang.String FIELD_VALUE_FLOATING
public static final java.lang.String FIELD_VALUE_INTEGER
public static final java.lang.String FIELD_VALUE_MEMBER_ID
public static final java.lang.String FIELD_VALUE_STRING
| Constructor Detail |
|---|
public AttributeAssignValue()
| Method Detail |
|---|
public AttributeAssignValue clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public java.lang.Double getValueFloating()
public void setValueFloating(java.lang.Double valueFloating1)
valueFloating1 - public void assignValue(java.lang.String value)
value - public java.lang.String valueString()
public java.lang.String getValueFriendly()
public java.lang.String valueString(boolean convertTimestampToFriendly)
convertTimestampToFriendly - true to convert timestamps to yyyy/MM/dd HH:mm:ss.SSS
as opposed to numbers of millis since 1970
public static java.lang.String dateToString(java.util.Date date)
date -
public static java.util.Date stringToDate(java.lang.String dateString)
dateString -
public void clearValue()
public void assignValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue - public void saveOrUpdate()
public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public java.lang.String getId()
public void setId(java.lang.String id1)
id1 - public java.sql.Timestamp getLastUpdated()
public java.lang.Long getLastUpdatedDb()
public void setLastUpdated(java.sql.Timestamp lastUpdated1)
lastUpdated1 - public void setLastUpdatedDb(java.lang.Long lastUpdated1)
lastUpdated1 - public java.sql.Timestamp getCreatedOn()
public java.lang.Long getCreatedOnDb()
public void setCreatedOn(java.sql.Timestamp createdOn1)
createdOn1 - public void setCreatedOnDb(java.lang.Long createdOn1)
createdOn1 - public java.lang.String getAttributeAssignId()
public AttributeAssign getAttributeAssign()
public void setAttributeAssignId(java.lang.String attributeAssignId1)
attributeAssignId1 - the attributeNameId to setpublic java.lang.String getValueString()
public void setValueString(java.lang.String valueString1)
valueString1 - the valueString to setpublic java.lang.Long getValueInteger()
public void setValueInteger(java.lang.Long valueInteger1)
valueInteger1 - the valueInteger to setpublic java.lang.String getValueMemberId()
public void setValueMemberId(java.lang.String valueMemberId1)
valueMemberId1 - the valueMemberId to setpublic XmlExportAttributeAssignValue xmlToExportAttributeAssignValue(GrouperVersion grouperVersion)
grouperVersion -
public AttributeAssignValue xmlRetrieveByIdOrKey(java.util.Collection<java.lang.String> idsToIgnore)
XmlImportableMultiple
xmlRetrieveByIdOrKey in interface XmlImportableMultiple<AttributeAssignValue>idsToIgnore - these are ids already processed, do not pick these
XmlImportableMultiple.xmlRetrieveByIdOrKey(java.util.Collection)public void xmlCopyBusinessPropertiesToExisting(AttributeAssignValue existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AttributeAssignValue>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(AttributeAssignValue other)
XmlImportableBase
xmlDifferentBusinessProperties in interface XmlImportableBase<AttributeAssignValue>other - the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(AttributeAssignValue other)
XmlImportableBase
xmlDifferentUpdateProperties in interface XmlImportableBase<AttributeAssignValue>other - the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public AttributeAssignValue xmlSaveBusinessProperties(AttributeAssignValue existingRecord)
XmlImportableBase
xmlSaveBusinessProperties in interface XmlImportableBase<AttributeAssignValue>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
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties in interface XmlImportableBase<AttributeAssignValue>XmlImportableBase.xmlSaveUpdateProperties()public void delete()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId in interface XmlImportableBase<AttributeAssignValue>XmlImportableBase.xmlGetId()public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId in interface XmlImportableBase<AttributeAssignValue>XmlImportableBase.xmlSetId(java.lang.String)public java.lang.String xmlToString()
XmlImportableBase
xmlToString in interface XmlImportableBase<AttributeAssignValue>XmlImportableBase.xmlToString()public boolean sameValue(AttributeAssignValue attributeAssignValue)
attributeAssignValue -
public AttributeAssignValue.AttributeAssignValueType getCurrentAssignValueType()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete in interface HibGrouperLifecycleonPostDelete in class GrouperAPIGrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave in interface HibGrouperLifecycleonPostSave in class GrouperAPIHibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate in interface HibGrouperLifecycleonPostUpdate in class GrouperAPIHibGrouperLifecycle.onPostUpdate(HibernateSession)public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete in interface HibGrouperLifecycleonPreDelete in class GrouperAPIGrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public AttributeAssignValue dbVersion()
dbVersion in class GrouperAPIpublic void dbVersionReset()
dbVersionReset in class GrouperAPIpublic java.util.Set<java.lang.String> dbVersionDifferentFields()
GrouperAPI
dbVersionDifferentFields in class GrouperAPIGrouperAPI.dbVersionDifferentFields()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||