|
||||||||||
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.AttributeDefName
public class AttributeDefName
definition of an attribute name (is linked with an attribute def)
Field Summary | |
---|---|
static java.lang.String |
COLUMN_ATTRIBUTE_DEF_ID
column |
static java.lang.String |
COLUMN_CONTEXT_ID
column |
static java.lang.String |
COLUMN_CREATED_ON
column |
static java.lang.String |
COLUMN_DESCRIPTION
column |
static java.lang.String |
COLUMN_DISPLAY_EXTENSION
column |
static java.lang.String |
COLUMN_DISPLAY_NAME
column |
static java.lang.String |
COLUMN_EXTENSION
column |
static java.lang.String |
COLUMN_ID
column |
static java.lang.String |
COLUMN_LAST_UPDATED
column |
static java.lang.String |
COLUMN_NAME
column |
static java.lang.String |
COLUMN_STEM_ID
column |
static java.lang.String |
FIELD_ATTRIBUTE_DEF_ID
constant for field name for: attributeDefId |
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_DESCRIPTION
constant for field name for: description |
static java.lang.String |
FIELD_DISPLAY_EXTENSION
constant for field name for: displayExtension |
static java.lang.String |
FIELD_DISPLAY_NAME
constant for field name for: displayName |
static java.lang.String |
FIELD_EXTENSION
constant for field name for: extension |
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_NAME
constant for field name for: name |
static java.lang.String |
FIELD_STEM_ID
constant for field name for: stemId |
static java.lang.String |
TABLE_GROUPER_ATTRIBUTE_DEF_NAME
name of the groups attribute def name 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 | |
---|---|
AttributeDefName()
|
Method Summary | |
---|---|
java.lang.String |
__getId()
if of this object |
java.lang.String |
__getName()
name of this object (for logging) |
AttributeDefName |
clone()
deep clone the fields in this object |
AttributeDefName |
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()
save or update this object |
boolean |
equals(java.lang.Object other)
|
AttributeDef |
getAttributeDef()
get the attribute def |
java.lang.String |
getAttributeDefId()
attribute definition that this is related to |
AttributeDefNameSetDelegate |
getAttributeDefNameSetDelegate()
delegate logic about attribute def name sets to this object |
java.lang.String |
getContextId()
context id of the transaction |
java.sql.Timestamp |
getCreatedOn()
when created |
java.lang.Long |
getCreatedOnDb()
when created |
java.lang.String |
getDescription()
description of attribute, friendly description, e.g. in sentence form, about what the attribute is about |
java.lang.String |
getDisplayExtension()
displayExtension of attribute, e.g. |
java.lang.String |
getDisplayExtensionDb()
displayExtension of attribute, e.g. |
java.lang.String |
getDisplayName()
displayName of attribute, e.g. |
java.lang.String |
getDisplayNameDb()
displayName of attribute, e.g. |
java.lang.String |
getExtension()
extension of attribute expireTime |
java.lang.String |
getExtensionDb()
extension of attribute expireTime |
java.lang.String |
getId()
id of this attribute def name |
java.sql.Timestamp |
getLastUpdated()
when last updated |
java.lang.Long |
getLastUpdatedDb()
when last updated |
java.lang.String |
getName()
|
java.lang.String |
getNameDb()
|
java.lang.String |
getStemId()
stem that this attribute is in |
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 |
void |
setAttributeDefId(java.lang.String attributeDefId1)
attribute def id that this is related to |
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 |
setDescription(java.lang.String description1)
description of attribute, friendly description, e.g. in sentence form, about what the attribute is about |
void |
setDisplayExtension(java.lang.String displayExtension1)
displayExtension of attribute, e.g. |
void |
setDisplayExtensionDb(java.lang.String displayExtension1)
displayExtension of attribute, e.g. |
void |
setDisplayName(java.lang.String displayName1)
displayName of attribute, e.g. |
void |
setDisplayNameDb(java.lang.String displayName1)
displayName of attribute, e.g. |
void |
setExtension(java.lang.String extension1)
extension of attribute expireTime |
void |
setExtensionDb(java.lang.String extension1)
extension of attribute expireTime |
void |
setId(java.lang.String id1)
id of this attribute def name |
void |
setLastUpdated(java.sql.Timestamp lastUpdated1)
when last updated |
void |
setLastUpdatedDb(java.lang.Long lastUpdated1)
when last updated |
void |
setName(java.lang.String name1)
|
void |
setNameDb(java.lang.String name1)
|
void |
setStemId(java.lang.String stemId1)
stem that this attribute is in |
void |
store()
store this group (update) to database |
java.lang.String |
toString()
|
void |
xmlCopyBusinessPropertiesToExisting(AttributeDefName existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(AttributeDefName other)
see if the non update cols are different (e.g. name) |
boolean |
xmlDifferentUpdateProperties(AttributeDefName other)
see if the update cols are different (e.g. last updated) |
java.lang.String |
xmlGetId()
set id key in db |
AttributeDefName |
xmlRetrieveByIdOrKey()
retrieve from db by id or key. |
AttributeDefName |
xmlSaveBusinessProperties(AttributeDefName 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 |
XmlExportAttributeDefName |
xmlToExportAttributeDefName(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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TABLE_GROUPER_ATTRIBUTE_DEF_NAME
public static final java.lang.String COLUMN_ATTRIBUTE_DEF_ID
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_DESCRIPTION
public static final java.lang.String COLUMN_EXTENSION
public static final java.lang.String COLUMN_NAME
public static final java.lang.String COLUMN_DISPLAY_EXTENSION
public static final java.lang.String COLUMN_DISPLAY_NAME
public static final java.lang.String COLUMN_STEM_ID
public static final java.lang.String COLUMN_ID
public static final java.lang.String FIELD_ATTRIBUTE_DEF_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_DESCRIPTION
public static final java.lang.String FIELD_DISPLAY_EXTENSION
public static final java.lang.String FIELD_DISPLAY_NAME
public static final java.lang.String FIELD_EXTENSION
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_NAME
public static final java.lang.String FIELD_STEM_ID
Constructor Detail |
---|
public AttributeDefName()
Method Detail |
---|
public AttributeDefName clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public AttributeDef getAttributeDef()
public java.lang.String getStemId()
public void setStemId(java.lang.String stemId1)
stemId1
- public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public java.lang.String getId()
public void setId(java.lang.String id1)
id1
- public java.lang.String getName()
public void setName(java.lang.String name1)
name1
- public java.lang.String getNameDb()
public void setNameDb(java.lang.String name1)
name1
- public java.lang.String getDescription()
public void setDescription(java.lang.String description1)
description1
- public java.lang.String getDisplayExtension()
public void setDisplayExtension(java.lang.String displayExtension1)
displayExtension1
- public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName1)
displayName1
- public java.lang.String getExtension()
public void setExtension(java.lang.String extension1)
extension1
- public java.lang.String getExtensionDb()
public void setExtensionDb(java.lang.String extension1)
extension1
- public java.sql.Timestamp getLastUpdated()
public java.lang.Long getLastUpdatedDb()
public java.sql.Timestamp getCreatedOn()
public java.lang.Long getCreatedOnDb()
public void setLastUpdated(java.sql.Timestamp lastUpdated1)
lastUpdated1
- public void setLastUpdatedDb(java.lang.Long lastUpdated1)
lastUpdated1
- public void setCreatedOn(java.sql.Timestamp createdOn1)
createdOn1
- public void setCreatedOnDb(java.lang.Long createdOn1)
createdOn1
- public java.lang.String getDisplayExtensionDb()
public void setDisplayExtensionDb(java.lang.String displayExtension1)
displayExtension1
- public java.lang.String getDisplayNameDb()
public void setDisplayNameDb(java.lang.String displayName1)
displayName1
- public java.lang.String getAttributeDefId()
public void setAttributeDefId(java.lang.String attributeDefId1)
attributeDefId1
- public java.lang.String __getId()
GrouperSetElement
__getId
in interface GrouperSetElement
GrouperSetElement.__getId()
public java.lang.String __getName()
GrouperSetElement
__getName
in interface GrouperSetElement
GrouperSetElement.__getName()
public void delete()
public AttributeDefNameSetDelegate getAttributeDefNameSetDelegate()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public void xmlCopyBusinessPropertiesToExisting(AttributeDefName existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<AttributeDefName>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(AttributeDefName other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<AttributeDefName>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(AttributeDefName other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<AttributeDefName>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public AttributeDefName xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<AttributeDefName>
XmlImportable.xmlRetrieveByIdOrKey()
public AttributeDefName xmlSaveBusinessProperties(AttributeDefName existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<AttributeDefName>
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<AttributeDefName>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportAttributeDefName xmlToExportAttributeDefName(GrouperVersion grouperVersion)
grouperVersion
-
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<AttributeDefName>
XmlImportableBase.xmlGetId()
public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<AttributeDefName>
XmlImportableBase.xmlSetId(java.lang.String)
public java.lang.String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<AttributeDefName>
XmlImportableBase.xmlToString()
public void store()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
onPostDelete
in class GrouperAPI
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
onPostSave
in class GrouperAPI
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
onPostUpdate
in class GrouperAPI
HibGrouperLifecycle.onPostUpdate(HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public AttributeDefName dbVersion()
dbVersion
in class GrouperAPI
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public java.util.Set<java.lang.String> dbVersionDifferentFields()
GrouperAPI
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |