|
||||||||||
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.permissions.role.RoleSet
public class RoleSet
Field Summary | |
---|---|
static java.lang.String |
COLUMN_CONTEXT_ID
column |
static java.lang.String |
COLUMN_CREATED_ON
column |
static java.lang.String |
COLUMN_DEPTH
column |
static java.lang.String |
COLUMN_ID
column |
static java.lang.String |
COLUMN_IF_HAS_ROLE_ID
column |
static java.lang.String |
COLUMN_LAST_UPDATED
column |
static java.lang.String |
COLUMN_PARENT_ROLE_SET_ID
column |
static java.lang.String |
COLUMN_THEN_HAS_ROLE_ID
column |
static java.lang.String |
COLUMN_TYPE
column |
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_DEPTH
constant for field name for: depth |
static java.lang.String |
FIELD_ID
constant for field name for: id |
static java.lang.String |
FIELD_IF_HAS_ROLE_ID
constant for field name for: ifHasRoleId |
static java.lang.String |
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb |
static java.lang.String |
FIELD_PARENT_ROLE_SET_ID
constant for field name for: parentRoleSetId |
static java.lang.String |
FIELD_THEN_HAS_ROLE_ID
constant for field name for: thenHasRoleId |
static java.lang.String |
FIELD_TYPE
constant for field name for: type |
static java.lang.String |
TABLE_GROUPER_ROLE_SET
name of the groups role 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 | |
---|---|
RoleSet()
|
Method Summary | |
---|---|
int |
__getDepth()
depth of this relationship (0 means self, 1 means one hop, 2 means 2 hops, etc) |
java.lang.String |
__getId()
if of this object |
GrouperSetElement |
__getIfHasElement()
if has this element then has another element |
java.lang.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. |
java.lang.String |
__getParentGrouperSetId()
parent set id |
GrouperSetElement |
__getThenHasElement()
has this element if it has another |
java.lang.String |
__getThenHasElementId()
has this element Id if it has another id |
void |
__setParentGrouperSetId(java.lang.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 |
java.util.Set<java.lang.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(java.lang.Object other)
|
static RoleSet |
findInCollection(java.util.Collection<RoleSet> roleSets,
java.lang.String ifHasId,
java.lang.String thenHasId,
int depth,
boolean exceptionIfNull)
find role set, better be here |
java.lang.String |
getContextId()
context id of the transaction |
java.sql.Timestamp |
getCreatedOn()
when created |
java.lang.Long |
getCreatedOnDb()
when created |
int |
getDepth()
|
java.lang.String |
getId()
|
Role |
getIfHasRole()
|
java.lang.String |
getIfHasRoleId()
|
java.sql.Timestamp |
getLastUpdated()
when last updated |
java.lang.Long |
getLastUpdatedDb()
when last updated |
RoleSet |
getParentRoleSet()
|
java.lang.String |
getParentRoleSetId()
for self, or immediate, just use this id. |
Role |
getThenHasRole()
|
java.lang.String |
getThenHasRoleId()
|
RoleHierarchyType |
getType()
|
java.lang.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(java.lang.String contextId)
set context id |
void |
setCreatedOn(java.sql.Timestamp createdOn1)
when created |
void |
setCreatedOnDb(java.lang.Long createdOn1)
when created |
void |
setDepth(int depth)
set depth |
void |
setId(java.lang.String id)
set id |
void |
setIfHasRoleId(java.lang.String memberRoleId)
Set role id for the child |
void |
setLastUpdated(java.sql.Timestamp lastUpdated1)
when last updated |
void |
setLastUpdatedDb(java.lang.Long lastUpdated1)
when last updated |
void |
setParentRoleSetId(java.lang.String parentId1)
for self, or immediate, just use this id. |
void |
setThenHasRoleId(java.lang.String thenHasRoleId)
Set role id for the then |
void |
setType(RoleHierarchyType type1)
set group set assignment type |
void |
setTypeDb(java.lang.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. name) |
boolean |
xmlDifferentUpdateProperties(RoleSet other)
see if the update cols are different (e.g. last updated) |
java.lang.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. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportRoleSet |
xmlToExportRoleSet(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 |
---|
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onSave, onUpdate, setHibernateVersionNumber |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TABLE_GROUPER_ROLE_SET
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_DEPTH
public static final java.lang.String COLUMN_IF_HAS_ROLE_ID
public static final java.lang.String COLUMN_THEN_HAS_ROLE_ID
public static final java.lang.String COLUMN_PARENT_ROLE_SET_ID
public static final java.lang.String COLUMN_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_DEPTH
public static final java.lang.String FIELD_ID
public static final java.lang.String FIELD_IF_HAS_ROLE_ID
public static final java.lang.String FIELD_LAST_UPDATED_DB
public static final java.lang.String FIELD_THEN_HAS_ROLE_ID
public static final java.lang.String FIELD_PARENT_ROLE_SET_ID
public static final java.lang.String FIELD_TYPE
Constructor Detail |
---|
public RoleSet()
Method Detail |
---|
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.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 onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public static RoleSet findInCollection(java.util.Collection<RoleSet> roleSets, java.lang.String ifHasId, java.lang.String thenHasId, int depth, boolean exceptionIfNull)
roleSets
- ifHasId
- thenHasId
- depth
- is the depth expectingexceptionIfNull
-
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public GrouperAPI clone()
GrouperAPI
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public RoleSet getParentRoleSet()
public Role getIfHasRole()
public Role getThenHasRole()
public java.lang.String getId()
public void setId(java.lang.String id)
id
- public void setContextId(java.lang.String contextId)
setContextId
in interface GrouperHasContext
contextId
- public java.lang.String getParentRoleSetId()
public void setParentRoleSetId(java.lang.String parentId1)
parentId1
- public java.lang.String getThenHasRoleId()
public void setThenHasRoleId(java.lang.String thenHasRoleId)
thenHasRoleId
- public java.lang.String getIfHasRoleId()
public void setIfHasRoleId(java.lang.String memberRoleId)
memberRoleId
- public RoleHierarchyType getType()
public java.lang.String getTypeDb()
public void setType(RoleHierarchyType type1)
type1
- public void setTypeDb(java.lang.String type1)
type1
- public int getDepth()
public void setDepth(int depth)
depth
- public java.lang.String getContextId()
public java.sql.Timestamp getCreatedOn()
public java.lang.Long getCreatedOnDb()
public java.sql.Timestamp getLastUpdated()
public java.lang.Long getLastUpdatedDb()
public void saveOrUpdate()
saveOrUpdate
in interface GrouperSet
public void delete()
delete
in interface GrouperSet
public void setCreatedOnDb(java.lang.Long createdOn1)
createdOn1
- public void setCreatedOn(java.sql.Timestamp createdOn1)
createdOn1
- public void setLastUpdated(java.sql.Timestamp lastUpdated1)
lastUpdated1
- public void setLastUpdatedDb(java.lang.Long lastUpdated1)
lastUpdated1
- public java.lang.String __getId()
GrouperSet
__getId
in interface GrouperSet
GrouperSet.__getId()
public java.lang.String __getIfHasElementId()
GrouperSet
__getIfHasElementId
in interface GrouperSet
GrouperSet.__getIfHasElementId()
public java.lang.String __getThenHasElementId()
GrouperSet
__getThenHasElementId
in interface GrouperSet
GrouperSet.__getThenHasElementId()
public int __getDepth()
GrouperSet
__getDepth
in interface GrouperSet
GrouperSet.__getDepth()
public GrouperSetElement __getIfHasElement()
GrouperSet
__getIfHasElement
in interface GrouperSet
GrouperSet.__getIfHasElement()
public GrouperSetElement __getThenHasElement()
GrouperSet
__getThenHasElement
in interface GrouperSet
GrouperSet.__getThenHasElement()
public void __setParentGrouperSetId(java.lang.String grouperSetId)
GrouperSet
__setParentGrouperSetId
in interface GrouperSet
GrouperSet.__setParentGrouperSetId(java.lang.String)
public GrouperSet __getParentGrouperSet()
GrouperSet
__getParentGrouperSet
in interface GrouperSet
GrouperSet.__getParentGrouperSet()
public java.lang.String __getParentGrouperSetId()
GrouperSet
__getParentGrouperSetId
in interface GrouperSet
GrouperSet.__getParentGrouperSetId()
public void xmlCopyBusinessPropertiesToExisting(RoleSet existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<RoleSet>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public boolean xmlDifferentBusinessProperties(RoleSet other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<RoleSet>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(RoleSet other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<RoleSet>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public RoleSet xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<RoleSet>
XmlImportable.xmlRetrieveByIdOrKey()
public RoleSet xmlSaveBusinessProperties(RoleSet existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
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 it
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<RoleSet>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportRoleSet xmlToExportRoleSet(GrouperVersion grouperVersion)
grouperVersion
-
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<RoleSet>
XmlImportableBase.xmlGetId()
public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<RoleSet>
XmlImportableBase.xmlSetId(java.lang.String)
public java.lang.String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<RoleSet>
XmlImportableBase.xmlToString()
public RoleSet dbVersion()
dbVersion
in class GrouperAPI
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public java.util.Set<java.lang.String> dbVersionDifferentFields()
GrouperAPI
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |