edu.internet2.middleware.grouper.hooks.beans
Class HooksExternalSubjectBean

java.lang.Object
  extended by edu.internet2.middleware.grouper.hooks.beans.HooksBean
      extended by edu.internet2.middleware.grouper.hooks.beans.HooksExternalSubjectBean
All Implemented Interfaces:
GrouperCloneable

public class HooksExternalSubjectBean
extends HooksBean

bean to hold objects for attribute def name low level hooks


Field Summary
static String FIELD_AUTOADD_GROUPS
          constant for field name for: autoaddGroups
static String FIELD_EXTERNAL_SUBJECT
          constant for field name for: externalSubject
static String FIELD_EXTERNAL_SUBJECT_ATTRIBUTES
          constant for field name for: externalSubjectAttributes
static String FIELD_EXTERNAL_SUBJECT_INVITE_NAME
          constant for field name for: externalSubjectInviteName
static String FIELD_FROM_RECALC_DAEMON
          constant for field name for: fromRecalcDaemon
static String FIELD_INSERT
          constant for field name for: insert
static String FIELD_UPDATE
          constant for field name for: update
 
Constructor Summary
HooksExternalSubjectBean()
           
HooksExternalSubjectBean(ExternalSubject theExternalSubject, boolean isInsert, boolean isUpdate, Set<ExternalSubjectAttribute> theExternalSubjectAttributes, String theExternalSubjectInviteName, boolean theAutoAddGroups, boolean theFromDaemon)
          call this when editing the external subject, insert or udpate
 
Method Summary
 HooksExternalSubjectBean clone()
          deep clone the fields in this object
 ExternalSubject getExternalSubject()
          object being affected
 Set<ExternalSubjectAttribute> getExternalSubjectAttributes()
          the attributes that will be saved with the subject
 String getExternalSubjectInviteName()
          external subject invite name, in url to have different hooks
 boolean isAutoaddGroups()
          if should autoadd groups
 boolean isFromRecalcDaemon()
          if from daemon
 boolean isInsert()
          if this is an insert
 boolean isUpdate()
          if this is an update
 void setAutoaddGroups(boolean autoaddGroups1)
          if should autoadd groups
 void setExternalSubject(ExternalSubject theExternalSubject)
          object being affected
 void setExternalSubjectAttributes(Set<ExternalSubjectAttribute> theExternalSubjectAttributes)
          the attributes that will be saved with the subject
 void setExternalSubjectInviteName(String externalSubjectInviteName1)
          external subject invite name, in url to have different hooks
 void setFromRecalcDaemon(boolean fromDaemon1)
          if from daemon
 void setInsert(boolean insert1)
          if this is an insert
 void setUpdate(boolean update1)
          if this is an update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_AUTOADD_GROUPS

public static final String FIELD_AUTOADD_GROUPS
constant for field name for: autoaddGroups

See Also:
Constant Field Values

FIELD_EXTERNAL_SUBJECT

public static final String FIELD_EXTERNAL_SUBJECT
constant for field name for: externalSubject

See Also:
Constant Field Values

FIELD_EXTERNAL_SUBJECT_ATTRIBUTES

public static final String FIELD_EXTERNAL_SUBJECT_ATTRIBUTES
constant for field name for: externalSubjectAttributes

See Also:
Constant Field Values

FIELD_EXTERNAL_SUBJECT_INVITE_NAME

public static final String FIELD_EXTERNAL_SUBJECT_INVITE_NAME
constant for field name for: externalSubjectInviteName

See Also:
Constant Field Values

FIELD_FROM_RECALC_DAEMON

public static final String FIELD_FROM_RECALC_DAEMON
constant for field name for: fromRecalcDaemon

See Also:
Constant Field Values

FIELD_INSERT

public static final String FIELD_INSERT
constant for field name for: insert

See Also:
Constant Field Values

FIELD_UPDATE

public static final String FIELD_UPDATE
constant for field name for: update

See Also:
Constant Field Values
Constructor Detail

HooksExternalSubjectBean

public HooksExternalSubjectBean()

HooksExternalSubjectBean

public HooksExternalSubjectBean(ExternalSubject theExternalSubject,
                                boolean isInsert,
                                boolean isUpdate,
                                Set<ExternalSubjectAttribute> theExternalSubjectAttributes,
                                String theExternalSubjectInviteName,
                                boolean theAutoAddGroups,
                                boolean theFromDaemon)
call this when editing the external subject, insert or udpate

Parameters:
theExternalSubject -
isInsert -
isUpdate -
theExternalSubjectAttributes -
theExternalSubjectInviteName -
theAutoAddGroups -
theFromDaemon -
Method Detail

isAutoaddGroups

public boolean isAutoaddGroups()
if should autoadd groups

Returns:
the autoaddGroups

setAutoaddGroups

public void setAutoaddGroups(boolean autoaddGroups1)
if should autoadd groups

Parameters:
autoaddGroups1 - the autoaddGroups to set

isFromRecalcDaemon

public boolean isFromRecalcDaemon()
if from daemon

Returns:
the fromDaemon

setFromRecalcDaemon

public void setFromRecalcDaemon(boolean fromDaemon1)
if from daemon

Parameters:
fromDaemon1 - the fromDaemon to set

getExternalSubject

public ExternalSubject getExternalSubject()
object being affected

Returns:
external subject

setExternalSubject

public void setExternalSubject(ExternalSubject theExternalSubject)
object being affected

Parameters:
theExternalSubject -

getExternalSubjectAttributes

public Set<ExternalSubjectAttribute> getExternalSubjectAttributes()
the attributes that will be saved with the subject

Returns:
the attributes

setExternalSubjectAttributes

public void setExternalSubjectAttributes(Set<ExternalSubjectAttribute> theExternalSubjectAttributes)
the attributes that will be saved with the subject

Parameters:
theExternalSubjectAttributes -

isInsert

public boolean isInsert()
if this is an insert

Returns:
if insert

setInsert

public void setInsert(boolean insert1)
if this is an insert

Parameters:
insert1 -

isUpdate

public boolean isUpdate()
if this is an update

Returns:
if udpate

setUpdate

public void setUpdate(boolean update1)
if this is an update

Parameters:
update1 -

getExternalSubjectInviteName

public String getExternalSubjectInviteName()
external subject invite name, in url to have different hooks

Returns:
name

setExternalSubjectInviteName

public void setExternalSubjectInviteName(String externalSubjectInviteName1)
external subject invite name, in url to have different hooks

Parameters:
externalSubjectInviteName1 -

clone

public HooksExternalSubjectBean clone()
deep clone the fields in this object

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