public class RoleSet extends GrouperAPI implements Hib3GrouperVersioned, GrouperSet, GrouperHasContext, XmlImportable<RoleSet>
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_CONTEXT_ID
column
|
static String |
COLUMN_CREATED_ON
column
|
static String |
COLUMN_DEPTH
column
|
static String |
COLUMN_ID
column
|
static String |
COLUMN_IF_HAS_ROLE_ID
column
|
static String |
COLUMN_LAST_UPDATED
column
|
static String |
COLUMN_PARENT_ROLE_SET_ID
column
|
static String |
COLUMN_THEN_HAS_ROLE_ID
column
|
static String |
COLUMN_TYPE
column
|
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_DEPTH
constant for field name for: depth
|
static String |
FIELD_ID
constant for field name for: id
|
static String |
FIELD_IF_HAS_ROLE_ID
constant for field name for: ifHasRoleId
|
static String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb
|
static String |
FIELD_PARENT_ROLE_SET_ID
constant for field name for: parentRoleSetId
|
static String |
FIELD_THEN_HAS_ROLE_ID
constant for field name for: thenHasRoleId
|
static String |
FIELD_TYPE
constant for field name for: type
|
static String |
TABLE_GROUPER_ROLE_SET
name of the groups role table in the db
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
RoleSet() |
| Modifier and Type | Method and Description |
|---|---|
int |
__getDepth()
depth of this relationship (0 means self, 1 means one hop, 2 means 2 hops, etc)
|
String |
__getId()
if of this object
|
GrouperSetElement |
__getIfHasElement()
if has this element then has another element
|
String |
__getIfHasElementId()
if has this element id then has another element id
|
GrouperSet |
__getParentGrouperSet()
get the parent set
the parent is the relationship leading up to this relationship.
|
String |
__getParentGrouperSetId()
parent set id
|
GrouperSetElement |
__getThenHasElement()
has this element if it has another
|
String |
__getThenHasElementId()
has this element Id if it has another id
|
void |
__setParentGrouperSetId(String grouperSetId)
set the parent id of this set.
|
GrouperAPI |
clone()
deep clone the fields in this object
|
RoleSet |
dbVersion()
save the state when retrieving from DB
|
Set<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(Object other) |
static RoleSet |
findInCollection(Collection<RoleSet> roleSets,
String ifHasId,
String thenHasId,
int depth,
boolean exceptionIfNull)
find role set, better be here
|
String |
getContextId()
context id of the transaction
|
Timestamp |
getCreatedOn()
when created
|
Long |
getCreatedOnDb()
when created
|
int |
getDepth() |
String |
getId() |
Role |
getIfHasRole() |
String |
getIfHasRoleId() |
Timestamp |
getLastUpdated()
when last updated
|
Long |
getLastUpdatedDb()
when last updated
|
RoleSet |
getParentRoleSet() |
String |
getParentRoleSetId()
for self, or immediate, just use this id.
|
Role |
getThenHasRole() |
String |
getThenHasRoleId() |
RoleHierarchyType |
getType() |
String |
getTypeDb()
get string value of type for hibernate
|
int |
hashCode() |
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 |
saveOrUpdate()
save or update this object
|
void |
setContextId(String contextId)
set context id
|
void |
setCreatedOn(Timestamp createdOn1)
when created
|
void |
setCreatedOnDb(Long createdOn1)
when created
|
void |
setDepth(int depth)
set depth
|
void |
setId(String id)
set id
|
void |
setIfHasRoleId(String memberRoleId)
Set role id for the child
|
void |
setLastUpdated(Timestamp lastUpdated1)
when last updated
|
void |
setLastUpdatedDb(Long lastUpdated1)
when last updated
|
void |
setParentRoleSetId(String parentId1)
for self, or immediate, just use this id.
|
void |
setThenHasRoleId(String thenHasRoleId)
Set role id for the then
|
void |
setType(RoleHierarchyType type1)
set group set assignment type
|
void |
setTypeDb(String type1)
set group set assignment type
|
void |
xmlCopyBusinessPropertiesToExisting(RoleSet existingRecord)
copy business (non update) properties to an existing record
|
boolean |
xmlDifferentBusinessProperties(RoleSet other)
see if the non update cols are different (e.g.
|
boolean |
xmlDifferentUpdateProperties(RoleSet other)
see if the update cols are different (e.g.
|
String |
xmlGetId()
set id key in db
|
RoleSet |
xmlRetrieveByIdOrKey()
retrieve from db by id or key.
|
RoleSet |
xmlSaveBusinessProperties(RoleSet 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
|
XmlExportRoleSet |
xmlToExportRoleSet(GrouperVersion grouperVersion)
convert to xml bean for export
|
String |
xmlToString()
convert to string for log
|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onSave, onUpdate, setHibernateVersionNumberpublic static final String TABLE_GROUPER_ROLE_SET
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_DEPTH
public static final String COLUMN_IF_HAS_ROLE_ID
public static final String COLUMN_THEN_HAS_ROLE_ID
public static final String COLUMN_PARENT_ROLE_SET_ID
public static final String COLUMN_TYPE
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATED_ON_DB
public static final String FIELD_DEPTH
public static final String FIELD_ID
public static final String FIELD_IF_HAS_ROLE_ID
public static final String FIELD_LAST_UPDATED_DB
public static final String FIELD_THEN_HAS_ROLE_ID
public static final String FIELD_PARENT_ROLE_SET_ID
public static final String FIELD_TYPE
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(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 onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)public static RoleSet findInCollection(Collection<RoleSet> roleSets, String ifHasId, String thenHasId, int depth, boolean exceptionIfNull)
roleSets - ifHasId - thenHasId - depth - is the depth expectingexceptionIfNull - public boolean equals(Object other)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public GrouperAPI clone()
GrouperAPIclone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public RoleSet getParentRoleSet()
public Role getIfHasRole()
public Role getThenHasRole()
public String getId()
public void setId(String id)
id - public void setContextId(String contextId)
setContextId in interface GrouperHasContextcontextId - public String getParentRoleSetId()
public void setParentRoleSetId(String parentId1)
parentId1 - public String getThenHasRoleId()
public void setThenHasRoleId(String thenHasRoleId)
thenHasRoleId - public String getIfHasRoleId()
public void setIfHasRoleId(String memberRoleId)
memberRoleId - public RoleHierarchyType getType()
public String getTypeDb()
public void setType(RoleHierarchyType type1)
type1 - public void setTypeDb(String type1)
type1 - public int getDepth()
public void setDepth(int depth)
depth - public String getContextId()
public Timestamp getCreatedOn()
public Long getCreatedOnDb()
public Timestamp getLastUpdated()
public Long getLastUpdatedDb()
public void saveOrUpdate()
saveOrUpdate in interface GrouperSetpublic void delete()
delete in interface GrouperSetpublic void setCreatedOnDb(Long createdOn1)
createdOn1 - public void setCreatedOn(Timestamp createdOn1)
createdOn1 - public void setLastUpdated(Timestamp lastUpdated1)
lastUpdated1 - public void setLastUpdatedDb(Long lastUpdated1)
lastUpdated1 - public String __getId()
GrouperSet__getId in interface GrouperSetGrouperSet.__getId()public String __getIfHasElementId()
GrouperSet__getIfHasElementId in interface GrouperSetGrouperSet.__getIfHasElementId()public String __getThenHasElementId()
GrouperSet__getThenHasElementId in interface GrouperSetGrouperSet.__getThenHasElementId()public int __getDepth()
GrouperSet__getDepth in interface GrouperSetGrouperSet.__getDepth()public GrouperSetElement __getIfHasElement()
GrouperSet__getIfHasElement in interface GrouperSetGrouperSet.__getIfHasElement()public GrouperSetElement __getThenHasElement()
GrouperSet__getThenHasElement in interface GrouperSetGrouperSet.__getThenHasElement()public void __setParentGrouperSetId(String grouperSetId)
GrouperSet__setParentGrouperSetId in interface GrouperSetGrouperSet.__setParentGrouperSetId(java.lang.String)public GrouperSet __getParentGrouperSet()
GrouperSet__getParentGrouperSet in interface GrouperSetGrouperSet.__getParentGrouperSet()public String __getParentGrouperSetId()
GrouperSet__getParentGrouperSetId in interface GrouperSetGrouperSet.__getParentGrouperSetId()public void xmlCopyBusinessPropertiesToExisting(RoleSet existingRecord)
XmlImportableBasexmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<RoleSet>XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)public boolean xmlDifferentBusinessProperties(RoleSet other)
XmlImportableBasexmlDifferentBusinessProperties in interface XmlImportableBase<RoleSet>other - the one to compare withXmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)public boolean xmlDifferentUpdateProperties(RoleSet other)
XmlImportableBasexmlDifferentUpdateProperties in interface XmlImportableBase<RoleSet>other - the one to compare withXmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)public RoleSet xmlRetrieveByIdOrKey()
XmlImportablexmlRetrieveByIdOrKey in interface XmlImportable<RoleSet>XmlImportable.xmlRetrieveByIdOrKey()public RoleSet xmlSaveBusinessProperties(RoleSet existingRecord)
XmlImportableBasexmlSaveBusinessProperties in interface XmlImportableBase<RoleSet>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<RoleSet>XmlImportableBase.xmlSaveUpdateProperties()public XmlExportRoleSet xmlToExportRoleSet(GrouperVersion grouperVersion)
grouperVersion - public String xmlGetId()
XmlImportableBasexmlGetId in interface XmlImportableBase<RoleSet>XmlImportableBase.xmlGetId()public void xmlSetId(String theId)
XmlImportableBasexmlSetId in interface XmlImportableBase<RoleSet>XmlImportableBase.xmlSetId(java.lang.String)public String xmlToString()
XmlImportableBasexmlToString in interface XmlImportableBase<RoleSet>XmlImportableBase.xmlToString()public RoleSet dbVersion()
dbVersion in class GrouperAPIpublic void dbVersionReset()
dbVersionReset in class GrouperAPIpublic Set<String> dbVersionDifferentFields()
GrouperAPIdbVersionDifferentFields in class GrouperAPIGrouperAPI.dbVersionDifferentFields()Copyright © 2016 Internet2. All rights reserved.