public class AttributeDefScope extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, XmlImportableMultiple<AttributeDefScope>
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_ATTRIBUTE_DEF_ID
column
|
static String |
COLUMN_ATTRIBUTE_DEF_SCOPE_TYPE
column
|
static String |
COLUMN_CONTEXT_ID
column
|
static String |
COLUMN_CREATED_ON
column
|
static String |
COLUMN_ID
column
|
static String |
COLUMN_LAST_UPDATED
column
|
static String |
COLUMN_SCOPE_STRING
column
|
static String |
COLUMN_SCOPE_STRING2
column
|
static String |
FIELD_ATTRIBUTE_DEF_ID
constant for field name for: attributeDefId
|
static String |
FIELD_ATTRIBUTE_DEF_SCOPE_TYPE
constant for field name for: attributeDefScopeType
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
FIELD_SCOPE_STRING
constant for field name for: scopeString
|
static String |
FIELD_SCOPE_STRING2
constant for field name for: scopeString2
|
static String |
TABLE_GROUPER_ATTRIBUTE_DEF_SCOPE
name of the groups attribute def table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
AttributeDefScope() |
| Modifier and Type | Method and Description |
|---|---|
AttributeDefScope |
clone()
deep clone the fields in this object
|
void |
delete()
Delete this group from the Groups Registry.
|
String |
getAttributeDefId()
id of the attribute def
|
AttributeDefScopeType |
getAttributeDefScopeType()
type of scope
|
String |
getAttributeDefScopeTypeDb()
type of scope
|
String |
getContextId()
context id of the transaction
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
String |
getId()
id of this scope
|
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
String |
getScopeString()
scope string, either a group or stem name or like string or something
|
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(String attributeDefId1)
id of the attribute def
|
void |
setAttributeDefScopeType(AttributeDefScopeType attributeDefScopeType1)
type of scope
|
void |
setAttributeDefScopeTypeDb(String theAttributeDefScopeType1)
type of scope
|
void |
setContextId(String contextId1)
context id of the transaction
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setId(String id1)
id of this scope
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
void |
setScopeString(String scopeString1)
scope string, either a group or stem name or like string or something
|
void |
setScopeString2(String scopeString2)
scope string information 2 (whatever it is used for)
|
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.
|
boolean |
xmlDifferentUpdateProperties(AttributeDefScope other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
AttributeDefScope |
xmlRetrieveByIdOrKey(Collection<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.
|
void |
xmlSetId(String theId)
set id key in db
|
XmlExportAttributeDefScope |
xmlToExportAttributeDefScope(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumberpublic static final String TABLE_GROUPER_ATTRIBUTE_DEF_SCOPE
public static final String COLUMN_CONTEXT_ID
public static final String COLUMN_CREATED_ON
public static final String COLUMN_LAST_UPDATED
public static final String COLUMN_ID
public static final String COLUMN_ATTRIBUTE_DEF_ID
public static final String COLUMN_ATTRIBUTE_DEF_SCOPE_TYPE
public static final String COLUMN_SCOPE_STRING
public static final String COLUMN_SCOPE_STRING2
public static final String FIELD_ATTRIBUTE_DEF_ID
public static final String FIELD_ATTRIBUTE_DEF_SCOPE_TYPE
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_ID
public static final String FIELD_LAST_UPDATED_DB
public static final String FIELD_SCOPE_STRING
public static final String FIELD_SCOPE_STRING2
public String getId()
public void setId(String id1)
id1 - public String getScopeString()
public void setScopeString(String scopeString1)
scopeString1 - public String getAttributeDefId()
public void setAttributeDefId(String attributeDefId1)
attributeDefId1 - public AttributeDefScopeType getAttributeDefScopeType()
public void setAttributeDefScopeType(AttributeDefScopeType attributeDefScopeType1)
attributeDefScopeType1 - public String getAttributeDefScopeTypeDb()
public void setAttributeDefScopeTypeDb(String theAttributeDefScopeType1)
theAttributeDefScopeType1 - public String getScopeString2()
public void setScopeString2(String scopeString2)
scopeString2 - the scopeString2 to setpublic void saveOrUpdate()
public Long getCreatedOnDb()
public Timestamp getCreatedOn()
public Timestamp getLastUpdated()
public Long getLastUpdatedDb()
public void setCreatedOn(Timestamp createdOn1)
createdOn1 - public void setCreatedOnDb(Long createdOn1)
createdOn1 - public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1 - public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1 - public void setContextId(String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public AttributeDefScope clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public String getContextId()
public void xmlCopyBusinessPropertiesToExisting(AttributeDefScope existingRecord)
XmlImportableBasexmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(AttributeDefScope other)
XmlImportableBasexmlDifferentBusinessProperties in interface XmlImportableBase<AttributeDefScope>other - the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(AttributeDefScope other)
XmlImportableBasexmlDifferentUpdateProperties in interface XmlImportableBase<AttributeDefScope>other - the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public AttributeDefScope xmlSaveBusinessProperties(AttributeDefScope existingRecord)
XmlImportableBasexmlSaveBusinessProperties 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 itXmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)public void xmlSaveUpdateProperties()
XmlImportableBasexmlSaveUpdateProperties in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlSaveUpdateProperties()public AttributeDefScope xmlRetrieveByIdOrKey(Collection<String> idsToIgnore)
XmlImportableMultiplexmlRetrieveByIdOrKey in interface XmlImportableMultiple<AttributeDefScope>idsToIgnore - these are ids already processed, do not pick theseXmlImportableMultiple.xmlRetrieveByIdOrKey(java.util.Collection)public XmlExportAttributeDefScope xmlToExportAttributeDefScope(GrouperVersion grouperVersion)
grouperVersion - public String xmlGetId()
XmlImportableBasexmlGetId in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlGetId()public void xmlSetId(String theId)
XmlImportableBasexmlSetId in interface XmlImportableBase<AttributeDefScope>XmlImportableBase.xmlSetId(java.lang.String)public String xmlToString()
XmlImportableBasexmlToString 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
}
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public String toString()
toString in class ObjectObject.toString()Copyright © 2016 Internet2. All rights reserved.