edu.internet2.middleware.grouper.flat
Class FlatMembership

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.flat.FlatMembership
All Implemented Interfaces:
HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperUtil.FieldValuable, Serializable, org.hibernate.classic.Lifecycle

public class FlatMembership
extends GrouperAPI
implements Hib3GrouperVersioned

Author:
shilen $Id: FlatMembership.java 6410 2010-03-12 19:31:40Z shilen $
See Also:
Serialized Form

Field Summary
static String COLUMN_CONTEXT_ID
          Context id links together multiple operations into one high level action
static String COLUMN_FIELD_ID
          field represented by this flattened membership record
static String COLUMN_HIBERNATE_VERSION_NUMBER
          hibernate version
static String COLUMN_ID
          db id for this row
static String COLUMN_MEMBER_ID
          member id
static String COLUMN_OWNER_ATTR_DEF_ID
          owner attribute def if applicable
static String COLUMN_OWNER_GROUP_ID
          owner group if applicable
static String COLUMN_OWNER_ID
          owner id
static String COLUMN_OWNER_STEM_ID
          owner stem if applicable
static String FIELD_CONTEXT_ID
          constant for field name for: contextId
static String FIELD_FIELD_ID
          constant for field name for: fieldId
static String FIELD_ID
          constant for field name for: id
static String FIELD_MEMBER_ID
          constant for field name for: memberId
static String FIELD_OWNER_ATTR_DEF_ID
          constant for field name for: ownerAttrDefId
static String FIELD_OWNER_GROUP_ID
          constant for field name for: ownerGroupId
static String FIELD_OWNER_ID
          constant for field name for: ownerId
static String FIELD_OWNER_STEM_ID
          constant for field name for: ownerStemId
static String TABLE_GROUPER_FLAT_MEMBERSHIPS
          name of the table in the database.
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
FlatMembership()
           
 
Method Summary
 GrouperAPI clone()
          deep clone the fields in this object
 void delete()
          delete this object
 String getContextId()
           
 String getFieldId()
           
 String getId()
           
 Member getMember()
           
 String getMemberId()
           
 String getOwnerAttrDefId()
           
 String getOwnerGroupId()
           
 String getOwnerId()
           
 String getOwnerStemId()
           
 void saveOrUpdate()
          save or update this object
 void setContextId(String contextId)
          set context id
 void setFieldId(String fieldId)
           
 void setId(String id)
          set id
 void setMember(Member member)
          set the member of this flat membership
 void setMemberId(String memberId)
          Set member id
 void setOwnerAttrDefId(String ownerAttrDefId)
          Set attrdef id for the owner if this is a attrdef membership
 void setOwnerGroupId(String ownerGroupId)
          Set group id for the owner if this is a group membership
 void setOwnerId(String ownerId)
          Set owner id
 void setOwnerStemId(String ownerStemId)
          Set stem id for the owner if this is a stem membership
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_ID

public static final String COLUMN_ID
db id for this row

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final String COLUMN_CONTEXT_ID
Context id links together multiple operations into one high level action

See Also:
Constant Field Values

COLUMN_FIELD_ID

public static final String COLUMN_FIELD_ID
field represented by this flattened membership record

See Also:
Constant Field Values

COLUMN_OWNER_ID

public static final String COLUMN_OWNER_ID
owner id

See Also:
Constant Field Values

COLUMN_OWNER_GROUP_ID

public static final String COLUMN_OWNER_GROUP_ID
owner group if applicable

See Also:
Constant Field Values

COLUMN_OWNER_ATTR_DEF_ID

public static final String COLUMN_OWNER_ATTR_DEF_ID
owner attribute def if applicable

See Also:
Constant Field Values

COLUMN_OWNER_STEM_ID

public static final String COLUMN_OWNER_STEM_ID
owner stem if applicable

See Also:
Constant Field Values

COLUMN_MEMBER_ID

public static final String COLUMN_MEMBER_ID
member id

See Also:
Constant Field Values

COLUMN_HIBERNATE_VERSION_NUMBER

public static final String COLUMN_HIBERNATE_VERSION_NUMBER
hibernate version

See Also:
Constant Field Values

FIELD_CONTEXT_ID

public static final String FIELD_CONTEXT_ID
constant for field name for: contextId

See Also:
Constant Field Values

FIELD_FIELD_ID

public static final String FIELD_FIELD_ID
constant for field name for: fieldId

See Also:
Constant Field Values

FIELD_ID

public static final String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_MEMBER_ID

public static final String FIELD_MEMBER_ID
constant for field name for: memberId

See Also:
Constant Field Values

FIELD_OWNER_ATTR_DEF_ID

public static final String FIELD_OWNER_ATTR_DEF_ID
constant for field name for: ownerAttrDefId

See Also:
Constant Field Values

FIELD_OWNER_GROUP_ID

public static final String FIELD_OWNER_GROUP_ID
constant for field name for: ownerGroupId

See Also:
Constant Field Values

FIELD_OWNER_ID

public static final String FIELD_OWNER_ID
constant for field name for: ownerId

See Also:
Constant Field Values

FIELD_OWNER_STEM_ID

public static final String FIELD_OWNER_STEM_ID
constant for field name for: ownerStemId

See Also:
Constant Field Values

TABLE_GROUPER_FLAT_MEMBERSHIPS

public static final String TABLE_GROUPER_FLAT_MEMBERSHIPS
name of the table in the database.

See Also:
Constant Field Values
Constructor Detail

FlatMembership

public FlatMembership()
Method Detail

clone

public GrouperAPI clone()
Description copied from class: GrouperAPI
deep clone the fields in this object

Specified by:
clone in interface GrouperCloneable
Specified by:
clone in class GrouperAPI
Returns:
the clone of the object
See Also:
GrouperAPI.clone()

getContextId

public String getContextId()
Returns:
context id

setContextId

public void setContextId(String contextId)
set context id

Parameters:
contextId -

getId

public String getId()
Returns:
id

setId

public void setId(String id)
set id

Parameters:
id -

getFieldId

public String getFieldId()
Returns:
field id

setFieldId

public void setFieldId(String fieldId)
Parameters:
fieldId -

getOwnerId

public String getOwnerId()
Returns:
owner id

setOwnerId

public void setOwnerId(String ownerId)
Set owner id

Parameters:
ownerId -

getMemberId

public String getMemberId()
Returns:
member id

setMemberId

public void setMemberId(String memberId)
Set member id

Parameters:
memberId -

getOwnerGroupId

public String getOwnerGroupId()
Returns:
group id for the owner if this is a group membership

setOwnerGroupId

public void setOwnerGroupId(String ownerGroupId)
Set group id for the owner if this is a group membership

Parameters:
ownerGroupId -

getOwnerStemId

public String getOwnerStemId()
Returns:
stem id for the owner if this is a stem membership

setOwnerStemId

public void setOwnerStemId(String ownerStemId)
Set stem id for the owner if this is a stem membership

Parameters:
ownerStemId -

getOwnerAttrDefId

public String getOwnerAttrDefId()
Returns:
attrdef id for the owner if this is a attrdef membership

setOwnerAttrDefId

public void setOwnerAttrDefId(String ownerAttrDefId)
Set attrdef id for the owner if this is a attrdef membership

Parameters:
ownerAttrDefId -

getMember

public Member getMember()
Returns:
member

setMember

public void setMember(Member member)
set the member of this flat membership

Parameters:
member -

saveOrUpdate

public void saveOrUpdate()
save or update this object


delete

public void delete()
delete this object