public class Composite extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned, XmlImportable<Composite>
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_ID
id col in db
|
static String |
COLUMN_OLD_ID
old id col for id conversion
|
static String |
COLUMN_OLD_UUID
old uuid id col for id conversion
|
static String |
COLUMN_UUID
uuid col in db
|
static String |
FIELD_CREATE_TIME
constant for field name for: createTime
|
static String |
FIELD_CREATOR_UUID
constant for field name for: creatorUUID
|
static String |
FIELD_DB_VERSION
constant for field name for: dbVersion
|
static String |
FIELD_FACTOR_OWNER_UUID
constant for field name for: factorOwnerUUID
|
static String |
FIELD_LEFT_FACTOR_UUID
constant for field name for: leftFactorUUID
|
static String |
FIELD_RIGHT_FACTOR_UUID
constant for field name for: rightFactorUUID
|
static String |
FIELD_TYPE
constant for field name for: type
|
static String |
FIELD_UUID
constant for field name for: uuid
|
static String |
TABLE_GROUPER_COMPOSITES
table for composites
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
Composite() |
| Modifier and Type | Method and Description |
|---|---|
Composite |
clone()
deep clone the fields in this object
|
Composite |
dbVersion()
save the state when retrieving from DB
|
Set<String> |
dbVersionDifferentFields()
note, these are massaged so that name, extension, etc look like normal fields.
|
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db
|
boolean |
equals(Object other) |
String |
getContextId()
context id of the transaction
|
long |
getCreateTime() |
String |
getCreatorUuid() |
String |
getFactorOwnerUuid() |
String |
getLeftFactorUuid() |
Group |
getLeftGroup()
Return this
Composite's left factor. |
String |
getName() |
Group |
getOwnerGroup()
Return this
Composite's owner. |
String |
getRightFactorUuid() |
Group |
getRightGroup()
Return this
Composite's right factor. |
CompositeType |
getType()
Return this composite's type.
|
String |
getTypeDb()
simple getter for type for db
|
String |
getUuid() |
int |
hashCode() |
static Membership |
internal_createNewCompositeMembershipObject(String ownerGroupId,
String memberUuid,
String viaCompositeId) |
String |
internal_getLeftName()
left name
|
String |
internal_getOwnerName()
owner name
|
String |
internal_getRightName()
right name
|
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 |
setContextId(String contextId1)
context id of the transaction
|
void |
setCreateTime(long createTime) |
void |
setCreatorUuid(String creatorUUID) |
void |
setFactorOwnerUuid(String factorOwnerUUID) |
void |
setLeftFactorUuid(String leftFactorUUID) |
void |
setRightFactorUuid(String rightFactorUUID) |
void |
setTypeDb(String type) |
void |
setUuid(String uuid) |
void |
store()
store this object to the DB.
|
String |
toString() |
String |
toStringDto() |
void |
xmlCopyBusinessPropertiesToExisting(Composite existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(Composite other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(Composite other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
Composite |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
Composite |
xmlSaveBusinessProperties(Composite 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
|
XmlExportComposite |
xmlToExportComposite(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumberpublic static final String TABLE_GROUPER_COMPOSITES
public static final String COLUMN_ID
public static final String COLUMN_UUID
public static final String COLUMN_OLD_ID
public static final String COLUMN_OLD_UUID
public static final String FIELD_CREATE_TIME
public static final String FIELD_CREATOR_UUID
public static final String FIELD_DB_VERSION
public static final String FIELD_FACTOR_OWNER_UUID
public static final String FIELD_LEFT_FACTOR_UUID
public static final String FIELD_RIGHT_FACTOR_UUID
public static final String FIELD_TYPE
public static final String FIELD_UUID
public Group getLeftGroup() throws GroupNotFoundException
Composite's left factor.
try {
Group left = c.getLeftGroup();
}
catch (GroupNotFoundException eGNF) {
// unable to retrieve group
}
Group.GroupNotFoundExceptionpublic Group getOwnerGroup() throws GroupNotFoundException
Composite's owner.
try {
Group owner = c.geOwnerGroup();
}
catch (GroupNotFoundException eGNF) {
// unable to retrieve group
}
Group.GroupNotFoundExceptionpublic Group getRightGroup() throws GroupNotFoundException
Composite's right factor.
try {
Group right = c.getRightGroup();
}
catch (GroupNotFoundException eGNF) {
// unable to retrieve group
}
Group.GroupNotFoundExceptionpublic CompositeType getType()
CompositeType type = c.getType();
CompositeType of this Composite.public String getTypeDb()
public String getName()
public String internal_getLeftName()
public String internal_getOwnerName()
public String internal_getRightName()
public boolean equals(Object other)
public long getCreateTime()
public String getCreatorUuid()
public String getFactorOwnerUuid()
public String getLeftFactorUuid()
public String getRightFactorUuid()
public String getUuid()
public void setCreateTime(long createTime)
createTime - public void setCreatorUuid(String creatorUUID)
creatorUUID - public void setFactorOwnerUuid(String factorOwnerUUID)
factorOwnerUUID - public void setLeftFactorUuid(String leftFactorUUID)
leftFactorUUID - public void setRightFactorUuid(String rightFactorUUID)
rightFactorUUID - public void setTypeDb(String type)
type - public void setUuid(String uuid)
uuid - public String toStringDto()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycleonPostDelete in interface HibGrouperLifecycleonPostDelete in class GrouperAPIGrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPostSave in interface HibGrouperLifecycleonPostSave in class GrouperAPIGrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPostUpdate in interface HibGrouperLifecycleonPostUpdate in class GrouperAPIGrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycleonPreDelete in interface HibGrouperLifecycleonPreDelete in class GrouperAPIGrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)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 Composite dbVersion()
dbVersion in class GrouperAPIpublic Set<String> dbVersionDifferentFields()
dbVersionDifferentFields in class GrouperAPIGrouperAPI.dbVersionDifferentFields()public void dbVersionReset()
dbVersionReset in class GrouperAPIpublic Composite clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public String getContextId()
public void setContextId(String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public static Membership internal_createNewCompositeMembershipObject(String ownerGroupId, String memberUuid, String viaCompositeId)
ownerGroupId - memberUuid - viaCompositeId - public void xmlCopyBusinessPropertiesToExisting(Composite existingRecord)
XmlImportableBasexmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<Composite>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(Composite other)
XmlImportableBasexmlDifferentBusinessProperties in interface XmlImportableBase<Composite>other - the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(Composite other)
XmlImportableBasexmlDifferentUpdateProperties in interface XmlImportableBase<Composite>other - the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public Composite xmlRetrieveByIdOrKey()
XmlImportablexmlRetrieveByIdOrKey in interface XmlImportable<Composite>XmlImportable.xmlRetrieveByIdOrKey()public Composite xmlSaveBusinessProperties(Composite existingRecord)
XmlImportableBasexmlSaveBusinessProperties in interface XmlImportableBase<Composite>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 store()
public void xmlSaveUpdateProperties()
XmlImportableBasexmlSaveUpdateProperties in interface XmlImportableBase<Composite>XmlImportableBase.xmlSaveUpdateProperties()public XmlExportComposite xmlToExportComposite(GrouperVersion grouperVersion)
grouperVersion - public String xmlGetId()
XmlImportableBasexmlGetId in interface XmlImportableBase<Composite>XmlImportableBase.xmlGetId()public void xmlSetId(String theId)
XmlImportableBasexmlSetId in interface XmlImportableBase<Composite>XmlImportableBase.xmlSetId(java.lang.String)public String xmlToString()
XmlImportableBasexmlToString in interface XmlImportableBase<Composite>XmlImportableBase.xmlToString()Copyright © 2016 Internet2. All rights reserved.