edu.internet2.middleware.grouper.pit
Class PITAttributeAssign

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

public class PITAttributeAssign
extends GrouperPIT
implements Hib3GrouperVersioned

Author:
shilen $Id$
See Also:
Serialized Form

Field Summary
static String COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID
          column
static String COLUMN_ATTRIBUTE_ASSIGN_TYPE
          column
static String COLUMN_ATTRIBUTE_DEF_NAME_ID
          column
static String COLUMN_CONTEXT_ID
          Context id links together multiple operations into one high level action
static String COLUMN_DISALLOWED
          column
static String COLUMN_ID
          db id for this row
static String COLUMN_OWNER_ATTRIBUTE_ASSIGN_ID
          column
static String COLUMN_OWNER_ATTRIBUTE_DEF_ID
          column
static String COLUMN_OWNER_GROUP_ID
          column
static String COLUMN_OWNER_MEMBER_ID
          column
static String COLUMN_OWNER_MEMBERSHIP_ID
          column
static String COLUMN_OWNER_STEM_ID
          column
static String COLUMN_SOURCE_ID
          column
static String FIELD_ATTRIBUTE_ASSIGN_ACTION_ID
          constant for field name for: attributeAssignActionId
static String FIELD_ATTRIBUTE_ASSIGN_TYPE
          constant for field name for: attributeAssignType
static String FIELD_ATTRIBUTE_DEF_NAME_ID
          constant for field name for: attributeDefNameId
static String FIELD_CONTEXT_ID
          constant for field name for: contextId
static String FIELD_DISALLOWED
          constant for field name for: disallowed
static String FIELD_ID
          constant for field name for: id
static String FIELD_OWNER_ATTRIBUTE_ASSIGN_ID
          constant for field name for: ownerAttributeAssignId
static String FIELD_OWNER_ATTRIBUTE_DEF_ID
          constant for field name for: ownerAttributeDefId
static String FIELD_OWNER_GROUP_ID
          constant for field name for: ownerGroupId
static String FIELD_OWNER_MEMBER_ID
          constant for field name for: ownerMemberId
static String FIELD_OWNER_MEMBERSHIP_ID
          constant for field name for: ownerMembershipId
static String FIELD_OWNER_STEM_ID
          constant for field name for: ownerStemId
static String FIELD_SOURCE_ID
          constant for field name for: sourceId
static String TABLE_GROUPER_PIT_ATTRIBUTE_ASSIGN
          name of the table in the database.
 
Fields inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
COLUMN_ACTIVE, COLUMN_END_TIME, COLUMN_START_TIME, FIELD_ACTIVE_DB, FIELD_END_TIME_DB, FIELD_START_TIME_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
PITAttributeAssign()
           
 
Method Summary
 PITAttributeAssign clone()
          deep clone the fields in this object
 PITAttributeAssign 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()
          delete this object
 boolean equals(Object other)
           
 String getAttributeAssignActionId()
           
 String getAttributeAssignTypeDb()
           
 String getAttributeDefNameId()
           
 String getContextId()
           
 String getDisallowedDb()
          disallowed for the db string
 String getId()
           
 boolean getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate()
           
 String getOwnerAttributeAssignId()
           
 String getOwnerAttributeDefId()
           
 String getOwnerGroupId()
           
 String getOwnerMemberId()
           
 String getOwnerMembershipId()
           
 PITAttributeAssign getOwnerPITAttributeAssign()
           
 PITAttributeDef getOwnerPITAttributeDef()
           
 PITGroup getOwnerPITGroup()
           
 PITMember getOwnerPITMember()
           
 PITMembership getOwnerPITMembership()
           
 PITStem getOwnerPITStem()
           
 String getOwnerStemId()
           
 PITAttributeAssignAction getPITAttributeAssignAction()
           
 PITAttributeDefName getPITAttributeDefName()
           
 String getSourceId()
           
 int hashCode()
           
 boolean isDisallowed()
          if permission is disallowed from a wider allow, null means false
 void onPostSave(HibernateSession hibernateSession)
          after a save (insert) occurs
 void onPreDelete(HibernateSession hibernateSession)
          before a delete (insert) occurs
 void onPreUpdate(HibernateSession hibernateSession)
          before an update occurs
 void save()
          save this object
 void setAttributeAssignActionId(String attributeAssignActionId)
           
 void setAttributeAssignTypeDb(String attributeAssignType)
           
 void setAttributeDefNameId(String attributeDefNameId)
           
 void setContextId(String contextId)
          set context id
 void setDisallowed(boolean disallowed1)
          if permission is disallowed from a wider allow, null means false
 void setDisallowedDb(String theDisallowed)
          disallowed for the db string
 void setId(String id)
          set id
 void setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate)
           
 void setOwnerAttributeAssignId(String ownerAttributeAssignId)
           
 void setOwnerAttributeDefId(String ownerAttributeDefId)
           
 void setOwnerGroupId(String ownerGroupId)
           
 void setOwnerMemberId(String ownerMemberId)
           
 void setOwnerMembershipId(String ownerMembershipId)
           
 void setOwnerStemId(String ownerStemId)
           
 void setSourceId(String sourceId)
          set source id
 void update()
          update this object
 
Methods inherited from class edu.internet2.middleware.grouper.pit.GrouperPIT
getActiveDb, getEndTime, getEndTimeDb, getStartTime, getStartTimeDb, isActive, setActiveDb, setEndTimeDb, setStartTimeDb
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostUpdate, onPreSave, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
getClass, 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_OWNER_GROUP_ID

public static final String COLUMN_OWNER_GROUP_ID
column

See Also:
Constant Field Values

COLUMN_DISALLOWED

public static final String COLUMN_DISALLOWED
column

See Also:
Constant Field Values

COLUMN_OWNER_STEM_ID

public static final String COLUMN_OWNER_STEM_ID
column

See Also:
Constant Field Values

COLUMN_OWNER_MEMBER_ID

public static final String COLUMN_OWNER_MEMBER_ID
column

See Also:
Constant Field Values

COLUMN_OWNER_MEMBERSHIP_ID

public static final String COLUMN_OWNER_MEMBERSHIP_ID
column

See Also:
Constant Field Values

COLUMN_OWNER_ATTRIBUTE_ASSIGN_ID

public static final String COLUMN_OWNER_ATTRIBUTE_ASSIGN_ID
column

See Also:
Constant Field Values

COLUMN_OWNER_ATTRIBUTE_DEF_ID

public static final String COLUMN_OWNER_ATTRIBUTE_DEF_ID
column

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID

public static final String COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID
column

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_DEF_NAME_ID

public static final String COLUMN_ATTRIBUTE_DEF_NAME_ID
column

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_ASSIGN_TYPE

public static final String COLUMN_ATTRIBUTE_ASSIGN_TYPE
column

See Also:
Constant Field Values

COLUMN_SOURCE_ID

public static final String COLUMN_SOURCE_ID
column

See Also:
Constant Field Values

FIELD_SOURCE_ID

public static final String FIELD_SOURCE_ID
constant for field name for: sourceId

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_DISALLOWED

public static final String FIELD_DISALLOWED
constant for field name for: disallowed

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_OWNER_ATTRIBUTE_ASSIGN_ID

public static final String FIELD_OWNER_ATTRIBUTE_ASSIGN_ID
constant for field name for: ownerAttributeAssignId

See Also:
Constant Field Values

FIELD_OWNER_ATTRIBUTE_DEF_ID

public static final String FIELD_OWNER_ATTRIBUTE_DEF_ID
constant for field name for: ownerAttributeDefId

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_MEMBER_ID

public static final String FIELD_OWNER_MEMBER_ID
constant for field name for: ownerMemberId

See Also:
Constant Field Values

FIELD_OWNER_MEMBERSHIP_ID

public static final String FIELD_OWNER_MEMBERSHIP_ID
constant for field name for: ownerMembershipId

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

FIELD_ATTRIBUTE_ASSIGN_ACTION_ID

public static final String FIELD_ATTRIBUTE_ASSIGN_ACTION_ID
constant for field name for: attributeAssignActionId

See Also:
Constant Field Values

FIELD_ATTRIBUTE_ASSIGN_TYPE

public static final String FIELD_ATTRIBUTE_ASSIGN_TYPE
constant for field name for: attributeAssignType

See Also:
Constant Field Values

FIELD_ATTRIBUTE_DEF_NAME_ID

public static final String FIELD_ATTRIBUTE_DEF_NAME_ID
constant for field name for: attributeDefNameId

See Also:
Constant Field Values

TABLE_GROUPER_PIT_ATTRIBUTE_ASSIGN

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

See Also:
Constant Field Values
Constructor Detail

PITAttributeAssign

public PITAttributeAssign()
Method Detail

getSourceId

public String getSourceId()
Returns:
source id

setSourceId

public void setSourceId(String sourceId)
set source id

Parameters:
sourceId -

getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate

public boolean getNotificationsForRolesWithPermissionChangesOnSaveOrUpdate()
Returns:
boolean

setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate

public void setNotificationsForRolesWithPermissionChangesOnSaveOrUpdate(boolean notificationsForRolesWithPermissionChangesOnSaveOrUpdate)
Parameters:
notificationsForRolesWithPermissionChangesOnSaveOrUpdate -

clone

public PITAttributeAssign 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()

isDisallowed

public boolean isDisallowed()
if permission is disallowed from a wider allow, null means false

Returns:
the disallowed

setDisallowed

public void setDisallowed(boolean disallowed1)
if permission is disallowed from a wider allow, null means false

Parameters:
disallowed1 - the disallowed to set

getDisallowedDb

public String getDisallowedDb()
disallowed for the db string

Returns:
the string

setDisallowedDb

public void setDisallowedDb(String theDisallowed)
disallowed for the db string

Parameters:
theDisallowed - the string T or F or null

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 -

getOwnerAttributeAssignId

public String getOwnerAttributeAssignId()
Returns:
ownerAttributeAssignId

setOwnerAttributeAssignId

public void setOwnerAttributeAssignId(String ownerAttributeAssignId)
Parameters:
ownerAttributeAssignId -

getOwnerAttributeDefId

public String getOwnerAttributeDefId()
Returns:
ownerAttributeDefId

setOwnerAttributeDefId

public void setOwnerAttributeDefId(String ownerAttributeDefId)
Parameters:
ownerAttributeDefId -

getOwnerGroupId

public String getOwnerGroupId()
Returns:
ownerGroupId

setOwnerGroupId

public void setOwnerGroupId(String ownerGroupId)
Parameters:
ownerGroupId -

getOwnerMemberId

public String getOwnerMemberId()
Returns:
ownerMemberId

setOwnerMemberId

public void setOwnerMemberId(String ownerMemberId)
Parameters:
ownerMemberId -

getOwnerMembershipId

public String getOwnerMembershipId()
Returns:
ownerMembershipId

setOwnerMembershipId

public void setOwnerMembershipId(String ownerMembershipId)
Parameters:
ownerMembershipId -

getOwnerStemId

public String getOwnerStemId()
Returns:
ownerStemId

setOwnerStemId

public void setOwnerStemId(String ownerStemId)
Parameters:
ownerStemId -

getAttributeAssignActionId

public String getAttributeAssignActionId()
Returns:
attributeAssignActionId

setAttributeAssignActionId

public void setAttributeAssignActionId(String attributeAssignActionId)
Parameters:
attributeAssignActionId -

getAttributeAssignTypeDb

public String getAttributeAssignTypeDb()
Returns:
attributeAssignType

setAttributeAssignTypeDb

public void setAttributeAssignTypeDb(String attributeAssignType)
Parameters:
attributeAssignType -

getAttributeDefNameId

public String getAttributeDefNameId()
Returns:
attributeDefNameId

setAttributeDefNameId

public void setAttributeDefNameId(String attributeDefNameId)
Parameters:
attributeDefNameId -

save

public void save()
save this object


update

public void update()
update this object


delete

public void delete()
delete this object


onPreUpdate

public void onPreUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before an update occurs

Specified by:
onPreUpdate in interface HibGrouperLifecycle
Overrides:
onPreUpdate in class GrouperAPI
See Also:
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPostSave

public void onPostSave(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after a save (insert) occurs

Specified by:
onPostSave in interface HibGrouperLifecycle
Overrides:
onPostSave in class GrouperAPI
See Also:
GrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

dbVersion

public PITAttributeAssign dbVersion()
save the state when retrieving from DB

Overrides:
dbVersion in class GrouperAPI
Returns:
the dbVersion

dbVersionReset

public void dbVersionReset()
take a snapshot of the data since this is what is in the db

Overrides:
dbVersionReset in class GrouperAPI

dbVersionDifferentFields

public Set<String> dbVersionDifferentFields()
Description copied from class: GrouperAPI
see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName

Overrides:
dbVersionDifferentFields in class GrouperAPI
Returns:
a set of attributes changed, or empty set if none
See Also:
GrouperAPI.dbVersionDifferentFields()

equals

public boolean equals(Object other)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

onPreDelete

public void onPreDelete(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
before a delete (insert) occurs

Specified by:
onPreDelete in interface HibGrouperLifecycle
Overrides:
onPreDelete in class GrouperAPI
See Also:
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)

getPITAttributeAssignAction

public PITAttributeAssignAction getPITAttributeAssignAction()
Returns:
pitAttributeAssignAction

getPITAttributeDefName

public PITAttributeDefName getPITAttributeDefName()
Returns:
pitAttributeDefName

getOwnerPITGroup

public PITGroup getOwnerPITGroup()
Returns:
pitOwnerGroup

getOwnerPITAttributeAssign

public PITAttributeAssign getOwnerPITAttributeAssign()
Returns:
pitOwnerAttributeAssign

getOwnerPITAttributeDef

public PITAttributeDef getOwnerPITAttributeDef()
Returns:
pitOwnerAttributeDef

getOwnerPITMember

public PITMember getOwnerPITMember()
Returns:
pitOwnerMember

getOwnerPITMembership

public PITMembership getOwnerPITMembership()
Returns:
pitOwnerMembership

getOwnerPITStem

public PITStem getOwnerPITStem()
Returns:
pitOwnerStem