|
||||||||||
| 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.Attribute
public class Attribute
Basic Hibernate Attribute DTO interface.
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_FIELD_ID
column field_id col in db |
static java.lang.String |
COLUMN_FIELD_NAME
column field_name col in db |
static java.lang.String |
COLUMN_OLD_FIELD_NAME
column old_field_name col in db |
static java.lang.String |
FIELD_CONTEXT_ID
constant for field name for: contextId |
static java.lang.String |
FIELD_FIELD_ID
constant for field name for: fieldId |
static java.lang.String |
FIELD_GROUP
constant for field name for: group |
static java.lang.String |
FIELD_GROUP_UUID
constant for field name for: groupUUID |
static java.lang.String |
FIELD_ID
constant for field name for: id |
static java.lang.String |
FIELD_VALUE
constant for field name for: value |
static java.lang.String |
PROPERTY_GROUP_UUID
constant for field name for: groupUUID |
static java.lang.String |
TABLE_GROUPER_ATTRIBUTES
|
| 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 | |
|---|---|
Attribute()
|
|
| Method Summary | |
|---|---|
void |
assignGroupUuid(java.lang.String groupUUID1,
Group group1)
|
Attribute |
clone()
deep clone the fields in this object |
Attribute |
dbVersion()
version of this object in the database |
java.util.Set<java.lang.String> |
dbVersionDifferentFields(boolean failIfNull)
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db |
void |
delete()
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAttrName()
|
java.lang.String |
getContextId()
context id of the transaction |
java.lang.String |
getFieldId()
id of the field which is the attribute name |
java.lang.String |
getGroupUuid()
|
java.lang.String |
getId()
|
java.lang.String |
getValue()
|
int |
hashCode()
|
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 |
Group |
retrieveGroup(boolean retrieveIfNull)
try to get the current group if it is available (if this object is cloned, then it might be null) |
void |
setContextId(java.lang.String contextId1)
context id of the transaction |
void |
setFieldId(java.lang.String fieldId1)
id of the field which is the attribute name |
void |
setGroupUuid(java.lang.String groupUUID1)
|
void |
setId(java.lang.String id)
|
void |
setValue(java.lang.String value)
|
void |
store()
store this object to the DB. |
java.lang.String |
toString()
|
void |
xmlCopyBusinessPropertiesToExisting(Attribute existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(Attribute other)
see if the non update cols are different (e.g. name) |
boolean |
xmlDifferentUpdateProperties(Attribute other)
see if the update cols are different (e.g. last updated) |
java.lang.String |
xmlGetId()
set id key in db |
Attribute |
xmlRetrieveByIdOrKey()
retrieve from db by id or key. |
Attribute |
xmlSaveBusinessProperties(Attribute 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 |
XmlExportAttribute |
xmlToExportAttribute(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, dbVersionDifferentFields, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FIELD_CONTEXT_ID
public static final java.lang.String FIELD_FIELD_ID
public static final java.lang.String FIELD_GROUP
public static final java.lang.String FIELD_GROUP_UUID
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_VALUE
public static final java.lang.String PROPERTY_GROUP_UUID
public static final java.lang.String TABLE_GROUPER_ATTRIBUTES
public static final java.lang.String COLUMN_FIELD_ID
public static final java.lang.String COLUMN_FIELD_NAME
public static final java.lang.String COLUMN_OLD_FIELD_NAME
| Constructor Detail |
|---|
public Attribute()
| Method Detail |
|---|
public void dbVersionReset()
dbVersionReset in class GrouperAPIpublic Attribute dbVersion()
GrouperAPI
dbVersion in class GrouperAPIGrouperAPI.dbVersion()public java.util.Set<java.lang.String> dbVersionDifferentFields(boolean failIfNull)
failIfNull -
GrouperAPI.dbVersionDifferentFields()public Group retrieveGroup(boolean retrieveIfNull)
retrieveIfNull - true to get from DB if null
public void assignGroupUuid(java.lang.String groupUUID1,
Group group1)
groupUUID1 - group1 - public boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getAttrName()
public java.lang.String getGroupUuid()
public java.lang.String getId()
public java.lang.String getValue()
public void setGroupUuid(java.lang.String groupUUID1)
groupUUID1 - public void setId(java.lang.String id)
id - public void setValue(java.lang.String value)
value - public Attribute clone()
GrouperAPI
clone in interface GrouperCloneableclone in class GrouperAPIGrouperAPI.clone()public java.lang.String getFieldId()
public void setFieldId(java.lang.String fieldId1)
fieldId1 - 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 java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public void store()
public void xmlCopyBusinessPropertiesToExisting(Attribute existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<Attribute>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(Attribute other)
XmlImportableBase
xmlDifferentBusinessProperties in interface XmlImportableBase<Attribute>other - the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(Attribute other)
XmlImportableBase
xmlDifferentUpdateProperties in interface XmlImportableBase<Attribute>other - the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public Attribute xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey in interface XmlImportable<Attribute>XmlImportable.xmlRetrieveByIdOrKey()public Attribute xmlSaveBusinessProperties(Attribute existingRecord)
XmlImportableBase
xmlSaveBusinessProperties in interface XmlImportableBase<Attribute>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<Attribute>XmlImportableBase.xmlSaveUpdateProperties()public void delete()
public XmlExportAttribute xmlToExportAttribute(GrouperVersion grouperVersion)
grouperVersion -
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId in interface XmlImportableBase<Attribute>XmlImportableBase.xmlGetId()public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId in interface XmlImportableBase<Attribute>XmlImportableBase.xmlSetId(java.lang.String)public java.lang.String xmlToString()
XmlImportableBase
xmlToString in interface XmlImportableBase<Attribute>XmlImportableBase.xmlToString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||