|
|||||||||
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 String |
COLUMN_FIELD_ID
column field_id col in db |
static String |
COLUMN_FIELD_NAME
column field_name col in db |
static String |
COLUMN_OLD_FIELD_NAME
column old_field_name col in db |
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId |
static String |
FIELD_FIELD_ID
constant for field name for: fieldId |
static String |
FIELD_GROUP
constant for field name for: group |
static String |
FIELD_GROUP_UUID
constant for field name for: groupUUID |
static String |
FIELD_ID
constant for field name for: id |
static String |
FIELD_VALUE
constant for field name for: value |
static String |
PROPERTY_GROUP_UUID
constant for field name for: groupUUID |
static 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(String groupUUID1,
Group group1)
|
Attribute |
clone()
deep clone the fields in this object |
Attribute |
dbVersion()
version of this object in the database |
Set<String> |
dbVersionDifferentFields(boolean failIfNull)
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db |
boolean |
equals(Object other)
|
String |
getAttrName()
|
String |
getContextId()
context id of the transaction |
String |
getFieldId()
id of the field which is the attribute name |
String |
getGroupUuid()
|
String |
getId()
|
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(String contextId1)
context id of the transaction |
void |
setFieldId(String fieldId1)
id of the field which is the attribute name |
void |
setGroupUuid(String groupUUID1)
|
void |
setId(String id)
|
void |
setValue(String value)
|
String |
toString()
|
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 String FIELD_CONTEXT_ID
public static final String FIELD_FIELD_ID
public static final String FIELD_GROUP
public static final String FIELD_GROUP_UUID
public static final String FIELD_ID
public static final String FIELD_VALUE
public static final String PROPERTY_GROUP_UUID
public static final String TABLE_GROUPER_ATTRIBUTES
public static final String COLUMN_FIELD_ID
public static final String COLUMN_FIELD_NAME
public static final String COLUMN_OLD_FIELD_NAME
Constructor Detail |
---|
public Attribute()
Method Detail |
---|
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public Attribute dbVersion()
GrouperAPI
dbVersion
in class GrouperAPI
GrouperAPI.dbVersion()
public Set<String> dbVersionDifferentFields(boolean failIfNull)
failIfNull
-
GrouperAPI.dbVersionDifferentFields()
public Group retrieveGroup(boolean retrieveIfNull)
retrieveIfNull
- true to get from DB if null
public void assignGroupUuid(String groupUUID1, Group group1)
groupUUID1
- group1
- public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public String getAttrName()
public String getGroupUuid()
public String getId()
public String getValue()
public void setGroupUuid(String groupUUID1)
groupUUID1
- public void setId(String id)
id
- public void setValue(String value)
value
- public Attribute clone()
GrouperAPI
clone
in interface GrouperCloneable
clone
in class GrouperAPI
GrouperAPI.clone()
public String getFieldId()
public void setFieldId(String fieldId1)
fieldId1
- 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 String getContextId()
public void setContextId(String contextId1)
setContextId
in interface GrouperHasContext
contextId1
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |