|
||||||||||
| 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.AttributeDefScope
public class AttributeDefScope
clamp down an attribute def to a set of scopes which are like strings in the DB. could be a group/stem name, or
| Field Summary | |
|---|---|
static java.lang.String |
COLUMN_ATTRIBUTE_DEF_ID
column |
static java.lang.String |
COLUMN_ATTRIBUTE_DEF_SCOPE_TYPE
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_SCOPE_STRING
column |
static java.lang.String |
COLUMN_SCOPE_STRING2
column |
static java.lang.String |
FIELD_ATTRIBUTE_DEF_ID
constant for field name for: attributeDefId |
static java.lang.String |
FIELD_ATTRIBUTE_DEF_SCOPE_TYPE
constant for field name for: attributeDefScopeType |
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_SCOPE_STRING
constant for field name for: scopeString |
static java.lang.String |
FIELD_SCOPE_STRING2
constant for field name for: scopeString2 |
static java.lang.String |
TABLE_GROUPER_ATTRIBUTE_DEF_SCOPE
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 | |
|---|---|
AttributeDefScope()
|
|
| Method Summary | |
|---|---|
AttributeDefScope |
clone()
deep clone the fields in this object |
void |
delete()
Delete this group from the Groups Registry. |
java.lang.String |
getAttributeDefId()
id of the attribute def |
AttributeDefScopeType |
getAttributeDefScopeType()
type of scope |
java.lang.String |
getAttributeDefScopeTypeDb()
type of scope |
java.lang.String |
getContextId()
context id of the transaction |
java.sql.Timestamp |
getCreatedOn()
when created |
java.lang.Long |
getCreatedOnDb()
when created |
java.lang.String |
getId()
id of this scope |
java.sql.Timestamp |
getLastUpdated()
when last updated |
java.lang.Long |
getLastUpdatedDb()
when last updated |
java.lang.String |
getScopeString()
scope string, either a group or stem name or like string or something |
java.lang.String |
getScopeString2()
scope string information 2 (whatever it is used for) |
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs |
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs |
void |
saveOrUpdate()
save or update this object |
void |
setAttributeDefId(java.lang.String attributeDefId1)
id of the attribute def |
void |
setAttributeDefScopeType(AttributeDefScopeType attributeDefScopeType1)
type of scope |
void |
setAttributeDefScopeTypeDb(java.lang.String theAttributeDefScopeType1)
type of scope |
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 scope |
void |
setLastUpdated(java.sql.Timestamp lastUpdated1)
when last updated |
void |
setLastUpdatedDb(java.lang.Long lastUpdated1)
when last updated |
void |
setScopeString(java.lang.String scopeString1)
scope string, either a group or stem name or like string or something |
void |
setScopeString2(java.lang.String scopeString2)
scope string information 2 (whatever it is used for) |
java.lang.String |
toString()
|
void |
xmlCopyBusinessPropertiesToExisting(AttributeDefScope existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(AttributeDefScope other)
see if the non update cols are different (e.g. name) |
boolean |
xmlDifferentUpdateProperties(AttributeDefScope other)
see if the update cols are different (e.g. last updated) |
java.lang.String |
xmlGetId()
set id key in db |
AttributeDefScope |
xmlRetrieveByIdOrKey(java.util.Collection<java.lang.String> idsToIgnore)
retrieve from db by id or key. |
AttributeDefScope |
xmlSaveBusinessProperties(AttributeDefScope 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 |
XmlExportAttributeDefScope |
xmlToExportAttributeDefScope(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 |
|---|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, 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_DEF_SCOPE
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_ATTRIBUTE_DEF_ID
public static final java.lang.String COLUMN_ATTRIBUTE_DEF_SCOPE_TYPE
public static final java.lang.String COLUMN_SCOPE_STRING
public static final java.lang.String COLUMN_SCOPE_STRING2
public static final java.lang.String FIELD_ATTRIBUTE_DEF_ID
public static final java.lang.String FIELD_ATTRIBUTE_DEF_SCOPE_TYPE
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_SCOPE_STRING
public static final java.lang.String FIELD_SCOPE_STRING2
| Constructor Detail |
|---|
public AttributeDefScope()
| Method Detail |
|---|
public java.lang.String getId()
public void setId(java.lang.String id1)
id1 - public java.lang.String getScopeString()
public void setScopeString(java.lang.String scopeString1)
scopeString1 - public java.lang.String getAttributeDefId()
public void setAttributeDefId(java.lang.String attributeDefId1)
attributeDefId1 - public AttributeDefScopeType getAttributeDefScopeType()
public void setAttributeDefScopeType(AttributeDefScopeType attributeDefScopeType1)
attributeDefScopeType1 - public java.lang.String getAttributeDefScopeTypeDb()
public void setAttributeDefScopeTypeDb(java.lang.String theAttributeDefScopeType1)
theAttributeDefScopeType1 - public java.lang.String getScopeString2()
public void setScopeString2(java.lang.String scopeString2)
scopeString2 - the scopeString2 to setpublic void saveOrUpdate()
public java.lang.Long getCreatedOnDb()
public java.sql.Timestamp getCreatedOn()
public java.sql.Timestamp getLastUpdated()
public java.lang.Long getLastUpdatedDb()
public void setCreatedOn(java.sql.Timestamp createdOn1)
createdOn1 - public void setCreatedOnDb(java.lang.Long createdOn1)
createdOn1 - public void setLastUpdated(java.sql.Timestamp lastUpdated1)
lastUpdated1 - public void setLastUpdatedDb(java.lang.Long lastUpdated1)
lastUpdated1 - public void setContextId(java.lang.String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public AttributeDefScope clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public java.lang.String getContextId()
public void xmlCopyBusinessPropertiesToExisting(AttributeDefScope existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(AttributeDefScope other)
XmlImportableBase
xmlDifferentBusinessProperties in interface XmlImportableBase<AttributeDefScope>other - the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(AttributeDefScope other)
XmlImportableBase
xmlDifferentUpdateProperties in interface XmlImportableBase<AttributeDefScope>other - the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public AttributeDefScope xmlSaveBusinessProperties(AttributeDefScope existingRecord)
XmlImportableBase
xmlSaveBusinessProperties in interface XmlImportableBase<AttributeDefScope>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<AttributeDefScope>XmlImportableBase.xmlSaveUpdateProperties()public AttributeDefScope xmlRetrieveByIdOrKey(java.util.Collection<java.lang.String> idsToIgnore)
XmlImportableMultiple
xmlRetrieveByIdOrKey in interface XmlImportableMultiple<AttributeDefScope>idsToIgnore - these are ids already processed, do not pick these
XmlImportableMultiple.xmlRetrieveByIdOrKey(java.util.Collection)public XmlExportAttributeDefScope xmlToExportAttributeDefScope(GrouperVersion grouperVersion)
grouperVersion -
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlGetId()public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlSetId(java.lang.String)public java.lang.String xmlToString()
XmlImportableBase
xmlToString in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlToString()
public void delete()
throws GroupDeleteException,
InsufficientPrivilegeException
try {
g.delete();
}
catch (GroupDeleteException e0) {
// Unable to delete group
}
catch (InsufficientPrivilegeException e1) {
// Not privileged to delete this group
}
GroupDeleteException
InsufficientPrivilegeExceptionpublic 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 toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||