edu.internet2.middleware.grouper.externalSubjects
Class ExternalSubjectInviteBean

java.lang.Object
  extended by edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectInviteBean

public class ExternalSubjectInviteBean
extends Object

bean to hold invite


Constructor Summary
ExternalSubjectInviteBean()
          make a bean based on the owner attribute assign
ExternalSubjectInviteBean(AttributeAssign ownerAttributeAssign)
          make a bean based on the owner attribute assign
 
Method Summary
 boolean deleteFromDb()
          delete this from the database
static List<ExternalSubjectInviteBean> findByEmailAddress(String emailAddress)
           
static List<ExternalSubjectInviteBean> findByEmailAddressViaUuid(String uuid)
           
static ExternalSubjectInviteBean findByUuid(String uuid)
          find an external subject invite bean by uuid
 String getEmail()
          email that was sent to the user (well, the first 2000 chars)
 String getEmailAddress()
          email address invite beans sent to
 Set<String> getEmailsWhenRegistered()
          list of emails to send to when the registration happens
 Long getExpireDate()
          when this expires: millis since 1970, or null if doesnt expire
 Set<String> getGroupIds()
          list of group ids to provision to when the user registers
 long getInviteDate()
          when the invite was sent out, millis since 1970
 String getMemberId()
          member id who invited the user
 String getUuid()
          uuid in the email sent to the invitee
 boolean isExpired()
          if this invite expired
 void setEmail(String email1)
          email that was sent to the user (well, the first 2000 chars)
 void setEmailAddress(String emailAddress1)
          email address invite beans sent to
 void setEmailsWhenRegistered(Set<String> emailsWhenRegistered1)
          list of emails to send to when the registration happens
 void setExpireDate(Long expireDate1)
          when this expires: millis since 1970, or null if doesnt expire
 void setGroupIds(Set<String> groupIds1)
          list of group ids to provision to when the user registers
 void setInviteDate(long inviteDate1)
          when the invite was sent out, millis since 1970
 void setMemberId(String memberId1)
          member id who invited the user
 void setUuid(String uuid1)
          uuid in the email sent to the invitee
 void storeToDb()
          store this to the DB, must have open root session
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalSubjectInviteBean

public ExternalSubjectInviteBean()
make a bean based on the owner attribute assign

Parameters:
ownerAttributeAssign -

ExternalSubjectInviteBean

public ExternalSubjectInviteBean(AttributeAssign ownerAttributeAssign)
make a bean based on the owner attribute assign

Parameters:
ownerAttributeAssign -
Method Detail

isExpired

public boolean isExpired()
if this invite expired

Returns:
true if expired

getEmailAddress

public String getEmailAddress()
email address invite beans sent to

Returns:
email address

setEmailAddress

public void setEmailAddress(String emailAddress1)
email address invite beans sent to

Parameters:
emailAddress1 -

getInviteDate

public long getInviteDate()
when the invite was sent out, millis since 1970

Returns:
invite date

setInviteDate

public void setInviteDate(long inviteDate1)
when the invite was sent out, millis since 1970

Parameters:
inviteDate1 -

getExpireDate

public Long getExpireDate()
when this expires: millis since 1970, or null if doesnt expire

Returns:
expire date

setExpireDate

public void setExpireDate(Long expireDate1)
when this expires: millis since 1970, or null if doesnt expire

Parameters:
expireDate1 -

getEmail

public String getEmail()
email that was sent to the user (well, the first 2000 chars)

Returns:
the email

setEmail

public void setEmail(String email1)
email that was sent to the user (well, the first 2000 chars)

Parameters:
email1 -

getEmailsWhenRegistered

public Set<String> getEmailsWhenRegistered()
list of emails to send to when the registration happens

Returns:
list of emails

setEmailsWhenRegistered

public void setEmailsWhenRegistered(Set<String> emailsWhenRegistered1)
list of emails to send to when the registration happens

Parameters:
emailsWhenRegistered1 -

getGroupIds

public Set<String> getGroupIds()
list of group ids to provision to when the user registers

Returns:
group ids

setGroupIds

public void setGroupIds(Set<String> groupIds1)
list of group ids to provision to when the user registers

Parameters:
groupIds1 -

getMemberId

public String getMemberId()
member id who invited the user

Returns:
member id

setMemberId

public void setMemberId(String memberId1)
member id who invited the user

Parameters:
memberId1 -

getUuid

public String getUuid()
uuid in the email sent to the invitee

Returns:
the uuid

setUuid

public void setUuid(String uuid1)
uuid in the email sent to the invitee

Parameters:
uuid1 -

deleteFromDb

public boolean deleteFromDb()
delete this from the database

Returns:
true if deleted, false if not there

storeToDb

public void storeToDb()
store this to the DB, must have open root session


findByUuid

public static ExternalSubjectInviteBean findByUuid(String uuid)
find an external subject invite bean by uuid

Parameters:
uuid -
Returns:
the beans

findByEmailAddress

public static List<ExternalSubjectInviteBean> findByEmailAddress(String emailAddress)
Parameters:
emailAddress -
Returns:
the beans

findByEmailAddressViaUuid

public static List<ExternalSubjectInviteBean> findByEmailAddressViaUuid(String uuid)
Parameters:
uuid -
Returns:
the beans

toString

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