edu.internet2.middleware.grouper.attr.assign
Class AttributeAssign

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by edu.internet2.middleware.grouper.attr.assign.AttributeAssign
All Implemented Interfaces:
AttributeAssignable, HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperHasContext, GrouperUtil.FieldValuable, XmlImportableBase<AttributeAssign>, XmlImportableMultiple<AttributeAssign>, Serializable, org.hibernate.classic.Lifecycle

public class AttributeAssign
extends GrouperAPI
implements GrouperHasContext, Hib3GrouperVersioned, XmlImportableMultiple<AttributeAssign>, AttributeAssignable

assignment of an attribute

Author:
mchyzer
See Also:
Serialized Form

Field Summary
static String COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID
          actions col in db
static String COLUMN_ATTRIBUTE_ASSIGN_DELEGATABLE
          column
static String COLUMN_ATTRIBUTE_ASSIGN_TYPE
          column
static String COLUMN_ATTRIBUTE_DEF_NAME_ID
          column
static String COLUMN_CONTEXT_ID
          column
static String COLUMN_CREATED_ON
          column
static String COLUMN_DISABLED_TIME
          column
static String COLUMN_DISALLOWED
          allowed col in db
static String COLUMN_ENABLED
          column
static String COLUMN_ENABLED_TIME
          column
static String COLUMN_ID
          column
static String COLUMN_LAST_UPDATED
          column
static String COLUMN_NOTES
          column
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 FIELD_ATTRIBUTE_ASSIGN_ACTION_ID
          constant for field name for: attributeAssignActionId
static String FIELD_ATTRIBUTE_ASSIGN_DELEGATABLE
          constant for field name for: attributeAssignDelegatable
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_CREATED_ON_DB
          constant for field name for: createdOnDb
static String FIELD_DISABLED_TIME_DB
          constant for field name for: disabledTimeDb
static String FIELD_DISALLOWED
          constant for field name for: disallowed
static String FIELD_ENABLED_TIME_DB
          constant for field name for: enabledTimeDb
static String FIELD_ID
          constant for field name for: id
static String FIELD_LAST_UPDATED_DB
          constant for field name for: lastUpdatedDb
static String FIELD_NOTES
          constant for field name for: notes
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_VALUE_DELEGATE
          constant for field name for: valueDelegate
static String TABLE_GROUPER_ATTRIBUTE_ASSIGN
          name of the groups attribute def 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
AttributeAssign()
           
AttributeAssign(AttributeAssign ownerAttributeAssign, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
AttributeAssign(AttributeDef ownerAttributeDef, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
AttributeAssign(Group ownerGroup, Member ownerMember, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid.
AttributeAssign(Group ownerGroup, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
AttributeAssign(Membership ownerMembership, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
AttributeAssign(Member ownerMember, String theActionId, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
AttributeAssign(Stem ownerStem, String theAction, AttributeDefName theAttributeDefName, String uuid)
          create an attribute assign, including a uuid
 
Method Summary
static Set<AttributeAssign> attributeAssignDeletes()
           
 AttributeAssign clone()
          deep clone the fields in this object
 AttributeAssign 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
 void deleteAndStore()
          e.g.
 boolean equals(Object other)
           
 AttributeAssignAction getAttributeAssignAction()
           
 String getAttributeAssignActionId()
          action for this assignment (e.g.
 AttributeAssignDelegatable getAttributeAssignDelegatable()
          get the enum for delegatable, do not return null
 String getAttributeAssignDelegatableDb()
          internal method for hibernate to persist this enum
 AttributeAssignType getAttributeAssignType()
          get the enum for delegatable, should not return null
 String getAttributeAssignTypeDb()
          internal method for hibernate to persist this enum
 AttributeDef getAttributeDef()
           
 AttributeDefName getAttributeDefName()
           
 String getAttributeDefNameId()
          attribute name in this assignment
 AttributeAssignAttrAssignDelegate getAttributeDelegate()
          get the logic delegate
 AttributeValueDelegate getAttributeValueDelegate()
          this delegate works on attributes and values at the same time
 String getContextId()
          context id of the transaction
 Timestamp getCreatedOn()
          when created
 Long getCreatedOnDb()
          when created
 Timestamp getDisabledTime()
          if there is a date here, and it is in the past, this assignment is disabled
 Long getDisabledTimeDb()
          if there is a date here, and it is in the past, this assignment is disabled
 String getDisallowedDb()
          if this is a permission, then if this permission assignment is allowed or not
 String getEnabledDb()
          true or false for if this assignment is enabled (e.g.
 Timestamp getEnabledTime()
          if there is a date here, and it is in the future, this assignment is disabled until that time
 Long getEnabledTimeDb()
          if there is a date here, and it is in the future, this assignment is disabled until that time
 String getId()
          id of this attribute assign
 Timestamp getLastUpdated()
          when last updated
 Long getLastUpdatedDb()
          when last updated
 String getNotes()
          notes about this assignment, free-form text
 AttributeAssign getOwnerAttributeAssign()
          if this is a attribute assign attribute, this is the foreign key
 String getOwnerAttributeAssignId()
          if this is an attribute assign attribute, this is the foreign key
 AttributeDef getOwnerAttributeDef()
          if this is a attributeDef attribute, this is the foreign key
 String getOwnerAttributeDefId()
          if this is an attribute def attribute, this is the foreign key
 Group getOwnerGroup()
          if this is a group attribute, this is the foreign key
 String getOwnerGroupId()
          if this is a group attribute, this is the foreign key
 Membership getOwnerImmediateMembership()
          if this is a membership attribute, this is the foreign key
 Member getOwnerMember()
          if this is a member attribute, this is the foreign key
 String getOwnerMemberId()
          if this is a member attribute, this is the foreign key
 Membership getOwnerMembership()
          if this is a membership attribute, this is the foreign key
 String getOwnerMembershipId()
          if this is a membership attribute, this is the foreign key
 String getOwnerSingleId()
          if it is possible to get a single ownerid (i.e.
 Stem getOwnerStem()
          if this is a stem attribute, this is the foreign key
 Stem getOwnerStemFailsafe()
          if this is a stem attribute, this is the foreign key
 String getOwnerStemId()
          if this is a stem attribute, this is the foreign key
 AttributeAssignValueDelegate getValueDelegate()
           
 int hashCode()
           
static int internal_fixEnabledDisabled()
          fix enabled and disabled memberships, and return the count of how many were fixed
 void internalSetAttributeDef(AttributeDef attributeDef1)
          set this for caching
 void internalSetAttributeDefName(AttributeDefName attributeDefName1)
          set this for caching
 boolean isDisallowed()
          if this is a permission, then if this permission assignment is allowed or not
 boolean isEnabled()
          true or false for if this assignment is enabled (e.g.
 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
 AttributeAssignable retrieveAttributeAssignable()
          get the delegate that relates the object with the the assignment
 AttributeAssignBaseDelegate retrieveAttributeAssignDelegate()
          get the delegate that relates the object with the the assignment
static Set<AttributeDef> retrieveAttributeDefs(Collection<AttributeAssign> attributeAssigns)
          retrieve a set of attributeDefs based on some assignments
 void saveOrUpdate()
          save or update this object
 void saveOrUpdate(boolean checkSecurity)
          save or update this object
 void setAttributeAssignActionId(String theActionId)
          default is "assign" actions must contain only alphanumeric or underscore, case sensitive e.g.
 void setAttributeAssignDelegatable(AttributeAssignDelegatable attributeAssignDelegatable1)
           
 void setAttributeAssignDelegatableDb(String theAttributeAssignDelegatableDb)
          internal method for hibernate to set if delegatable
 void setAttributeAssignType(AttributeAssignType attributeAssignType1)
           
 void setAttributeAssignTypeDb(String theAttributeAssignTypeDb)
          internal method for hibernate to set if delegatable
 void setAttributeDefNameId(String attributeDefNameId1)
          attribute name in this assignment
 void setContextId(String contextId1)
          context id of the transaction
 void setCreatedOn(Timestamp createdOn1)
          when created
 void setCreatedOnDb(Long createdOn1)
          when created
 void setDisabledTime(Timestamp disabledTimeDb1)
          if there is a date here, and it is in the past, this assignment is disabled
 void setDisabledTimeDb(Long disabledTimeDb1)
          if there is a date here, and it is in the past, this assignment is disabled
 void setDisallowed(boolean disallowed1)
          if this is a permission, then if this permission assignment is allowed or not
 void setDisallowedDb(String disallowed1)
          if this is a permission, then if this permission assignment is allowed or not
 void setEnabled(boolean enabled1)
          true or false for if this assignment is enabled (e.g.
 void setEnabledDb(String enabled1)
          true or false for if this assignment is enabled (e.g.
 void setEnabledTime(Timestamp enabledTimeDb1)
          if there is a date here, and it is in the future, this assignment is disabled until that time
 void setEnabledTimeDb(Long enabledTimeDb1)
          if there is a date here, and it is in the future, this assignment is disabled until that time
 void setId(String id1)
          id of this attribute assign
 void setLastUpdated(Timestamp lastUpdated1)
          when last updated
 void setLastUpdatedDb(Long lastUpdated1)
          when last updated
 void setNotes(String notes1)
          notes about this assignment, free-form text
 void setOwnerAttributeAssignId(String ownerAttributeAssignId1)
          if this is an attribute assign attribute, this is the foreign key
 void setOwnerAttributeDefId(String ownerAttributeDefId1)
          if this is an attribute def attribute, this is the foreign key
 void setOwnerGroupId(String ownerAttributeGroupId1)
          if this is a group attribute, this is the foreign key
 void setOwnerMemberId(String ownerAttributeMemberId1)
          if this is a member attribute, this is the foreign key
 void setOwnerMembershipId(String ownerAttributeMembershipId1)
          if this is a membership attribute, this is the foreign key
 void setOwnerStemId(String ownerAttributeStemId1)
          if this is a stem attribute, this is the foreign key
 String toString()
           
 void xmlCopyBusinessPropertiesToExisting(AttributeAssign existingRecord)
          copy business (non update) properties to an existing record
 boolean xmlDifferentBusinessProperties(AttributeAssign other)
          see if the non update cols are different (e.g.
 boolean xmlDifferentUpdateProperties(AttributeAssign other)
          see if the update cols are different (e.g.
 String xmlGetId()
          set id key in db
 AttributeAssign xmlRetrieveByIdOrKey(Collection<String> idsToIgnore)
          retrieve from db by id or key.
 AttributeAssign xmlSaveBusinessProperties(AttributeAssign 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
 XmlExportAttributeAssign xmlToExportAttributeAssign(GrouperVersion grouperVersion)
          convert to xml bean for export
 String xmlToString()
          convert to string for log
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TABLE_GROUPER_ATTRIBUTE_ASSIGN

public static final String TABLE_GROUPER_ATTRIBUTE_ASSIGN
name of the groups attribute def table in the db

See Also:
Constant Field Values

COLUMN_DISALLOWED

public static final String COLUMN_DISALLOWED
allowed col in db

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID

public static final String COLUMN_ATTRIBUTE_ASSIGN_ACTION_ID
actions col in db

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final String COLUMN_CONTEXT_ID
column

See Also:
Constant Field Values

COLUMN_CREATED_ON

public static final String COLUMN_CREATED_ON
column

See Also:
Constant Field Values

COLUMN_LAST_UPDATED

public static final String COLUMN_LAST_UPDATED
column

See Also:
Constant Field Values

COLUMN_NOTES

public static final String COLUMN_NOTES
column

See Also:
Constant Field Values

COLUMN_ID

public static final String COLUMN_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_DELEGATABLE

public static final String COLUMN_ATTRIBUTE_ASSIGN_DELEGATABLE
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_OWNER_GROUP_ID

public static final String COLUMN_OWNER_GROUP_ID
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_ENABLED

public static final String COLUMN_ENABLED
column

See Also:
Constant Field Values

COLUMN_ENABLED_TIME

public static final String COLUMN_ENABLED_TIME
column

See Also:
Constant Field Values

COLUMN_DISABLED_TIME

public static final String COLUMN_DISABLED_TIME
column

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_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_DELEGATABLE

public static final String FIELD_ATTRIBUTE_ASSIGN_DELEGATABLE
constant for field name for: attributeAssignDelegatable

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

FIELD_CONTEXT_ID

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

See Also:
Constant Field Values

FIELD_CREATED_ON_DB

public static final String FIELD_CREATED_ON_DB
constant for field name for: createdOnDb

See Also:
Constant Field Values

FIELD_DISABLED_TIME_DB

public static final String FIELD_DISABLED_TIME_DB
constant for field name for: disabledTimeDb

See Also:
Constant Field Values

FIELD_ENABLED_TIME_DB

public static final String FIELD_ENABLED_TIME_DB
constant for field name for: enabledTimeDb

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_LAST_UPDATED_DB

public static final String FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb

See Also:
Constant Field Values

FIELD_NOTES

public static final String FIELD_NOTES
constant for field name for: notes

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_VALUE_DELEGATE

public static final String FIELD_VALUE_DELEGATE
constant for field name for: valueDelegate

See Also:
Constant Field Values
Constructor Detail

AttributeAssign

public AttributeAssign()

AttributeAssign

public AttributeAssign(Stem ownerStem,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerStem -
theAction -
theAttributeDefName -
uuid -

AttributeAssign

public AttributeAssign(AttributeDef ownerAttributeDef,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerAttributeDef -
theAction -
theAttributeDefName -
uuid - is uuid or null if generated

AttributeAssign

public AttributeAssign(Group ownerGroup,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerGroup -
theAction -
theAttributeDefName -
uuid - is the uuid or null if generated

AttributeAssign

public AttributeAssign(Group ownerGroup,
                       Member ownerMember,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid. This is for an immediate or effective membership

Parameters:
ownerGroup -
ownerMember -
theAction -
theAttributeDefName -
uuid -

AttributeAssign

public AttributeAssign(AttributeAssign ownerAttributeAssign,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerAttributeAssign -
theAction -
theAttributeDefName -
uuid - to use or null for generated

AttributeAssign

public AttributeAssign(Membership ownerMembership,
                       String theAction,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerMembership -
theAction -
theAttributeDefName -
uuid -

AttributeAssign

public AttributeAssign(Member ownerMember,
                       String theActionId,
                       AttributeDefName theAttributeDefName,
                       String uuid)
create an attribute assign, including a uuid

Parameters:
ownerMember -
theActionId -
theAttributeDefName -
uuid - is the uuid or null for generated
Method Detail

saveOrUpdate

public void saveOrUpdate()
save or update this object


saveOrUpdate

public void saveOrUpdate(boolean checkSecurity)
save or update this object

Parameters:
checkSecurity -

attributeAssignDeletes

public static Set<AttributeAssign> attributeAssignDeletes()
Returns:
if in delete

delete

public void delete()
delete this object


clone

public AttributeAssign clone()
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:
Object.clone()

getAttributeAssignDelegatable

public AttributeAssignDelegatable getAttributeAssignDelegatable()
get the enum for delegatable, do not return null

Returns:
the attributeAssignDelegatable

getAttributeAssignDelegatableDb

public String getAttributeAssignDelegatableDb()
internal method for hibernate to persist this enum

Returns:
the string value (enum name)

setAttributeAssignDelegatableDb

public void setAttributeAssignDelegatableDb(String theAttributeAssignDelegatableDb)
internal method for hibernate to set if delegatable

Parameters:
theAttributeAssignDelegatableDb -

setAttributeAssignDelegatable

public void setAttributeAssignDelegatable(AttributeAssignDelegatable attributeAssignDelegatable1)
Parameters:
attributeAssignDelegatable1 - the attributeAssignDelegatable to set

getAttributeAssignType

public AttributeAssignType getAttributeAssignType()
get the enum for delegatable, should not return null

Returns:
the attributeAssignDelegatable

getAttributeAssignTypeDb

public String getAttributeAssignTypeDb()
internal method for hibernate to persist this enum

Returns:
the string value (enum name)

setAttributeAssignTypeDb

public void setAttributeAssignTypeDb(String theAttributeAssignTypeDb)
internal method for hibernate to set if delegatable

Parameters:
theAttributeAssignTypeDb -

setAttributeAssignType

public void setAttributeAssignType(AttributeAssignType attributeAssignType1)
Parameters:
attributeAssignType1 - the attributeAssignDelegatable to set

setDisallowed

public void setDisallowed(boolean disallowed1)
if this is a permission, then if this permission assignment is allowed or not

Parameters:
disallowed1 - the allowed to set

setDisallowedDb

public void setDisallowedDb(String disallowed1)
if this is a permission, then if this permission assignment is allowed or not

Parameters:
disallowed1 - the allowed to set

getDisallowedDb

public String getDisallowedDb()
if this is a permission, then if this permission assignment is allowed or not

Returns:
the allowed

isDisallowed

public boolean isDisallowed()
if this is a permission, then if this permission assignment is allowed or not

Returns:
if allowed

getAttributeAssignActionId

public String getAttributeAssignActionId()
action for this assignment (e.g. assign). Generally this will be AttributeDef.ACTION_DEFAULT. action must exist in AttributeDef.actions

Returns:
the action

internalSetAttributeDefName

public void internalSetAttributeDefName(AttributeDefName attributeDefName1)
set this for caching

Parameters:
attributeDefName1 -

internalSetAttributeDef

public void internalSetAttributeDef(AttributeDef attributeDef1)
set this for caching

Parameters:
attributeDef1 -

getAttributeDefName

public AttributeDefName getAttributeDefName()
Returns:
attributeDefName

getAttributeAssignAction

public AttributeAssignAction getAttributeAssignAction()
Returns:
attributeAssignAction

getAttributeDef

public AttributeDef getAttributeDef()
Returns:
attributeDef

getAttributeDelegate

public AttributeAssignAttrAssignDelegate getAttributeDelegate()
Description copied from interface: AttributeAssignable
get the logic delegate

Specified by:
getAttributeDelegate in interface AttributeAssignable
Returns:
the delegate

setAttributeAssignActionId

public void setAttributeAssignActionId(String theActionId)
default is "assign" actions must contain only alphanumeric or underscore, case sensitive e.g. id for read,write,admin

Parameters:
theActionId -

getContextId

public String getContextId()
context id of the transaction

Returns:
context id

setContextId

public void setContextId(String contextId1)
context id of the transaction

Specified by:
setContextId in interface GrouperHasContext
Parameters:
contextId1 -

getId

public String getId()
id of this attribute assign

Returns:
id

setId

public void setId(String id1)
id of this attribute assign

Parameters:
id1 -

getLastUpdated

public Timestamp getLastUpdated()
when last updated

Returns:
timestamp

getLastUpdatedDb

public Long getLastUpdatedDb()
when last updated

Returns:
timestamp

setLastUpdated

public void setLastUpdated(Timestamp lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

setLastUpdatedDb

public void setLastUpdatedDb(Long lastUpdated1)
when last updated

Parameters:
lastUpdated1 -

getCreatedOn

public Timestamp getCreatedOn()
when created

Returns:
timestamp

getCreatedOnDb

public Long getCreatedOnDb()
when created

Returns:
timestamp

setCreatedOn

public void setCreatedOn(Timestamp createdOn1)
when created

Parameters:
createdOn1 -

setCreatedOnDb

public void setCreatedOnDb(Long createdOn1)
when created

Parameters:
createdOn1 -

getNotes

public String getNotes()
notes about this assignment, free-form text

Returns:
the notes

setNotes

public void setNotes(String notes1)
notes about this assignment, free-form text

Parameters:
notes1 -

getAttributeDefNameId

public String getAttributeDefNameId()
attribute name in this assignment

Returns:
the attributeNameId

setAttributeDefNameId

public void setAttributeDefNameId(String attributeDefNameId1)
attribute name in this assignment

Parameters:
attributeDefNameId1 - the attributeNameId to set

getOwnerAttributeAssignId

public String getOwnerAttributeAssignId()
if this is an attribute assign attribute, this is the foreign key

Returns:
the ownerAttributeAssignId

setOwnerAttributeAssignId

public void setOwnerAttributeAssignId(String ownerAttributeAssignId1)
if this is an attribute assign attribute, this is the foreign key

Parameters:
ownerAttributeAssignId1 - the ownerAttributeAssignId to set

getOwnerAttributeDefId

public String getOwnerAttributeDefId()
if this is an attribute def attribute, this is the foreign key

Returns:
the ownerAttributeDefId

setOwnerAttributeDefId

public void setOwnerAttributeDefId(String ownerAttributeDefId1)
if this is an attribute def attribute, this is the foreign key

Parameters:
ownerAttributeDefId1 - the ownerAttributeDefId to set

getOwnerGroupId

public String getOwnerGroupId()
if this is a group attribute, this is the foreign key

Returns:
the ownerAttributeGroupId

getOwnerGroup

public Group getOwnerGroup()
if this is a group attribute, this is the foreign key

Returns:
the ownerGroup

getOwnerMembership

public Membership getOwnerMembership()
if this is a membership attribute, this is the foreign key

Returns:
the ownerMembership

getOwnerMember

public Member getOwnerMember()
if this is a member attribute, this is the foreign key

Returns:
the ownerMember

getOwnerAttributeAssign

public AttributeAssign getOwnerAttributeAssign()
if this is a attribute assign attribute, this is the foreign key

Returns:
the ownerAttributeAssign

getOwnerAttributeDef

public AttributeDef getOwnerAttributeDef()
if this is a attributeDef attribute, this is the foreign key

Returns:
the ownerAttributeDef

getOwnerImmediateMembership

public Membership getOwnerImmediateMembership()
if this is a membership attribute, this is the foreign key

Returns:
the ownerAttributeDef

getOwnerStem

public Stem getOwnerStem()
if this is a stem attribute, this is the foreign key

Returns:
the ownerStem

getOwnerStemFailsafe

public Stem getOwnerStemFailsafe()
if this is a stem attribute, this is the foreign key

Returns:
the ownerStem

setOwnerGroupId

public void setOwnerGroupId(String ownerAttributeGroupId1)
if this is a group attribute, this is the foreign key

Parameters:
ownerAttributeGroupId1 - the ownerAttributeGroupId to set

getOwnerMemberId

public String getOwnerMemberId()
if this is a member attribute, this is the foreign key

Returns:
the ownerAttributeMemberId

setOwnerMemberId

public void setOwnerMemberId(String ownerAttributeMemberId1)
if this is a member attribute, this is the foreign key

Parameters:
ownerAttributeMemberId1 - the ownerAttributeMemberId to set

getOwnerMembershipId

public String getOwnerMembershipId()
if this is a membership attribute, this is the foreign key

Returns:
the ownerAttributeMembershipId

setOwnerMembershipId

public void setOwnerMembershipId(String ownerAttributeMembershipId1)
if this is a membership attribute, this is the foreign key

Parameters:
ownerAttributeMembershipId1 - the ownerAttributeMembershipId to set

getOwnerStemId

public String getOwnerStemId()
if this is a stem attribute, this is the foreign key

Returns:
the ownerAttributeStemId

setOwnerStemId

public void setOwnerStemId(String ownerAttributeStemId1)
if this is a stem attribute, this is the foreign key

Parameters:
ownerAttributeStemId1 - the ownerAttributeStemId to set

isEnabled

public boolean isEnabled()
true or false for if this assignment is enabled (e.g. might have expired)

Returns:
the enabled

getEnabledDb

public String getEnabledDb()
true or false for if this assignment is enabled (e.g. might have expired)

Returns:
the enabled

setEnabledDb

public void setEnabledDb(String enabled1)
true or false for if this assignment is enabled (e.g. might have expired) dont call this method, its for hibernate

Parameters:
enabled1 - the enabled to set

setEnabled

public void setEnabled(boolean enabled1)
true or false for if this assignment is enabled (e.g. might have expired) dont call this method, its for hibernate

Parameters:
enabled1 - the enabled to set

getEnabledTimeDb

public Long getEnabledTimeDb()
if there is a date here, and it is in the future, this assignment is disabled until that time

Returns:
the enabledTimeDb

setEnabledTimeDb

public void setEnabledTimeDb(Long enabledTimeDb1)
if there is a date here, and it is in the future, this assignment is disabled until that time

Parameters:
enabledTimeDb1 - the enabledTimeDb to set

getDisabledTimeDb

public Long getDisabledTimeDb()
if there is a date here, and it is in the past, this assignment is disabled

Returns:
the disabledTimeDb

setDisabledTimeDb

public void setDisabledTimeDb(Long disabledTimeDb1)
if there is a date here, and it is in the past, this assignment is disabled

Parameters:
disabledTimeDb1 - the disabledTimeDb to set

getEnabledTime

public Timestamp getEnabledTime()
if there is a date here, and it is in the future, this assignment is disabled until that time

Returns:
the enabledTimeDb

setEnabledTime

public void setEnabledTime(Timestamp enabledTimeDb1)
if there is a date here, and it is in the future, this assignment is disabled until that time

Parameters:
enabledTimeDb1 - the enabledTimeDb to set

getDisabledTime

public Timestamp getDisabledTime()
if there is a date here, and it is in the past, this assignment is disabled

Returns:
the disabledTimeDb

setDisabledTime

public void setDisabledTime(Timestamp disabledTimeDb1)
if there is a date here, and it is in the past, this assignment is disabled

Parameters:
disabledTimeDb1 - the disabledTimeDb to set

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

xmlCopyBusinessPropertiesToExisting

public void xmlCopyBusinessPropertiesToExisting(AttributeAssign existingRecord)
Description copied from interface: XmlImportableBase
copy business (non update) properties to an existing record

Specified by:
xmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AttributeAssign>
See Also:
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)

xmlDifferentBusinessProperties

public boolean xmlDifferentBusinessProperties(AttributeAssign other)
Description copied from interface: XmlImportableBase
see if the non update cols are different (e.g. name)

Specified by:
xmlDifferentBusinessProperties in interface XmlImportableBase<AttributeAssign>
Parameters:
other - the one to compare with
Returns:
true if so
See Also:
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)

xmlDifferentUpdateProperties

public boolean xmlDifferentUpdateProperties(AttributeAssign other)
Description copied from interface: XmlImportableBase
see if the update cols are different (e.g. last updated)

Specified by:
xmlDifferentUpdateProperties in interface XmlImportableBase<AttributeAssign>
Parameters:
other - the one to compare with
Returns:
true if so
See Also:
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)

xmlSaveBusinessProperties

public AttributeAssign xmlSaveBusinessProperties(AttributeAssign existingRecord)
Description copied from interface: XmlImportableBase
save the business properties (not update properties)

Specified by:
xmlSaveBusinessProperties in interface XmlImportableBase<AttributeAssign>
Parameters:
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
Returns:
the new object or existing
See Also:
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)

xmlSaveUpdateProperties

public void xmlSaveUpdateProperties()
Description copied from interface: XmlImportableBase
save the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate

Specified by:
xmlSaveUpdateProperties in interface XmlImportableBase<AttributeAssign>
See Also:
XmlImportableBase.xmlSaveUpdateProperties()

xmlRetrieveByIdOrKey

public AttributeAssign xmlRetrieveByIdOrKey(Collection<String> idsToIgnore)
Description copied from interface: XmlImportableMultiple
retrieve from db by id or key. throws exception if duplicate

Specified by:
xmlRetrieveByIdOrKey in interface XmlImportableMultiple<AttributeAssign>
Parameters:
idsToIgnore - these are ids already processed, do not pick these
Returns:
the object or null if not found
See Also:
XmlImportableMultiple.xmlRetrieveByIdOrKey(java.util.Collection)

xmlToExportAttributeAssign

public XmlExportAttributeAssign xmlToExportAttributeAssign(GrouperVersion grouperVersion)
convert to xml bean for export

Parameters:
grouperVersion -
Returns:
xml bean

xmlGetId

public String xmlGetId()
Description copied from interface: XmlImportableBase
set id key in db

Specified by:
xmlGetId in interface XmlImportableBase<AttributeAssign>
Returns:
id
See Also:
XmlImportableBase.xmlGetId()

xmlSetId

public void xmlSetId(String theId)
Description copied from interface: XmlImportableBase
set id key in db

Specified by:
xmlSetId in interface XmlImportableBase<AttributeAssign>
See Also:
XmlImportableBase.xmlSetId(java.lang.String)

xmlToString

public String xmlToString()
Description copied from interface: XmlImportableBase
convert to string for log

Specified by:
xmlToString in interface XmlImportableBase<AttributeAssign>
Returns:
the string value for log
See Also:
XmlImportableBase.xmlToString()

retrieveAttributeAssignable

public AttributeAssignable retrieveAttributeAssignable()
get the delegate that relates the object with the the assignment

Returns:
the delegate

retrieveAttributeAssignDelegate

public AttributeAssignBaseDelegate retrieveAttributeAssignDelegate()
get the delegate that relates the object with the the assignment

Returns:
the delegate

getValueDelegate

public AttributeAssignValueDelegate getValueDelegate()
Returns:
the value delegate

getAttributeValueDelegate

public AttributeValueDelegate getAttributeValueDelegate()
this delegate works on attributes and values at the same time

Specified by:
getAttributeValueDelegate in interface AttributeAssignable
Returns:
the delegate

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
Returns:
hashcode

retrieveAttributeDefs

public static Set<AttributeDef> retrieveAttributeDefs(Collection<AttributeAssign> attributeAssigns)
retrieve a set of attributeDefs based on some assignments

Parameters:
attributeAssigns -
Returns:
the set of attributeDefs

onPostDelete

public void onPostDelete(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after a delete occurs

Specified by:
onPostDelete in interface HibGrouperLifecycle
Overrides:
onPostDelete in class GrouperAPI
See Also:
GrouperAPI.onPostDelete(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:
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

onPostUpdate

public void onPostUpdate(HibernateSession hibernateSession)
Description copied from interface: HibGrouperLifecycle
after an update occurs

Specified by:
onPostUpdate in interface HibGrouperLifecycle
Overrides:
onPostUpdate in class GrouperAPI
See Also:
HibGrouperLifecycle.onPostUpdate(HibernateSession)

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)

onPreSave

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

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

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)

getOwnerSingleId

public String getOwnerSingleId()
if it is possible to get a single ownerid (i.e. not any_mem), then do that here

Returns:
the single owner id

deleteAndStore

public void deleteAndStore()
e.g. if enabled or disabled is switching, delete this attribute assignment (and child objects) and recommit it (which will not have the child objects or will have this time)


dbVersion

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

internal_fixEnabledDisabled

public static int internal_fixEnabledDisabled()
fix enabled and disabled memberships, and return the count of how many were fixed

Returns:
the number of records affected