public class ExternalSubject extends GrouperAPI implements GrouperHasContext, Hib3GrouperVersioned
| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_CONTEXT_ID
column name for context id
|
static String |
COLUMN_CREATE_TIME
column name for create time
|
static String |
COLUMN_CREATOR_MEMBER_ID
column name for creator member id
|
static String |
COLUMN_DESCRIPTION
column name for description
|
static String |
COLUMN_DISABLED_TIME
column name for disabled time
|
static String |
COLUMN_EMAIL
column name for email
|
static String |
COLUMN_ENABLED
column name for enabled
|
static String |
COLUMN_IDENTIFIER
column name for identifier
|
static String |
COLUMN_INSTITUTION
column name for institution
|
static String |
COLUMN_MODIFIER_MEMBER_ID
column name for modifier member id
|
static String |
COLUMN_MODIFY_TIME
column name for modify time
|
static String |
COLUMN_NAME
column name for name
|
static String |
COLUMN_SEARCH_STRING_LOWER
column name for searchStringLower
|
static String |
COLUMN_UUID
column name for uuid
|
static String |
COLUMN_VETTED_EMAIL_ADDRESSES
column name for vettedEmailAddresses
|
static String |
FIELD_CONTEXT_ID
constant for field name for: contextId
|
static String |
FIELD_CREATE_TIME
constant for field name for: createTime
|
static String |
FIELD_CREATOR_MEMBER_ID
constant for field name for: creatorMemberId
|
static String |
FIELD_DESCRIPTION
constant for field name for: description
|
static String |
FIELD_DISABLED_TIME
constant for field name for: disabledTime
|
static String |
FIELD_EMAIL
constant for field name for: email
|
static String |
FIELD_ENABLED
constant for field name for: enabled
|
static String |
FIELD_IDENTIFIER
constant for field name for: identifier
|
static String |
FIELD_INSTITUTION
constant for field name for: institution
|
static String |
FIELD_MODIFIER_MEMBER_ID
constant for field name for: modifierMemberId
|
static String |
FIELD_MODIFY_TIME
constant for field name for: modifyTime
|
static String |
FIELD_NAME
constant for field name for: name
|
static String |
FIELD_SEARCH_STRING_LOWER
constant for field name for: searchStringLower
|
static String |
FIELD_UUID
constant for field name for: uuid
|
static String |
FIELD_VETTED_EMAIL_ADDRESSES
constant for field name for: vettedEmailAddresses
|
static String |
TABLE_GROUPER_EXT_SUBJ
table name for external subjects
|
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER| Constructor and Description |
|---|
ExternalSubject() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVettedEmailAddress(String vettedEmailAddress)
add a vetted email address and store this object if necessary
|
boolean |
assignAttribute(String attributeName,
String attributeValue)
assign an attribute to this subject, change value if already exists, add if not
|
ExternalSubject |
clone()
deep clone the fields in this object
|
void |
delete()
delete this object from the DB.
|
String |
getContextId()
contextId links to audit tables
|
Date |
getCreateTime()
Get creation time for this subject.
|
long |
getCreateTimeDb() |
String |
getCreatorMemberId() |
String |
getDescription()
description, which is generated from other attributes
|
Date |
getDisabledTime()
when this was disabled, or when it will be disabled, millis from 1970
|
Long |
getDisabledTimeDb()
when this was disabled, or when it will be disabled
|
String |
getEmail()
email address
|
String |
getEnabledDb()
if this is enabled
|
String |
getIdentifier()
the thing that the subject uses to login
|
String |
getInstitution()
institution where the user is from
|
String |
getModifierMemberId() |
Date |
getModifyTime()
Get modify time for this subject.
|
long |
getModifyTimeDb() |
String |
getName()
name of subject
|
String |
getSearchStringLower()
search string to find a subject, in all lower case
|
String |
getUuid()
uuid for row
|
String |
getVettedEmailAddresses()
comma separated vetted email addresses
|
static int |
internal_daemonCalcFields()
fix enabled and disabled memberships, and return the count of how many were fixed
|
static int |
internal_fixDisabled()
fix enabled and disabled memberships, and return the count of how many were fixed
|
boolean |
isEnabled()
if this is enabled
|
static void |
notifyWatcherAboutRegistration(String identifier,
String emailAddressToNotify,
String emailAddressOfInvitee)
notify watcher about a registration.
|
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs
|
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs
|
boolean |
removeAttribute(String attributeName)
remove an attribute
|
ExternalSubjectAttribute |
retrieveAttribute(String attributeName,
boolean exceptionIfNotFound)
get an attributes for this subject
|
Set<ExternalSubjectAttribute> |
retrieveAttributes()
get all attributes for this subject
|
String |
retrieveFieldValue(String fieldOrAttributeName)
get the value by field name or attribute
|
void |
setContextId(String contextId1)
contextId links to audit tables
|
void |
setCreateTimeDb(long createTime1)
create time
|
void |
setCreatorMemberId(String creatorMemberId1)
member id of creator
|
void |
setDescription(String description1)
description, which is generated from other attributes
|
void |
setDisabledTime(Date theDisabledTime1)
when this was disabled, or when it will be disabled, millis from 1970
|
void |
setDisabledTimeDb(Long disabledTime1)
when this was disabled, or when it will be disabled
|
void |
setEmail(String email1)
email address
|
void |
setEnabled(boolean enabled1)
if this is enabled
|
void |
setEnabledDb(String enabled1)
if this is enabled, T or F
|
void |
setIdentifier(String identifier1)
the thing that the subject uses to login
|
void |
setInstitution(String institution1)
institution where the user is from
|
void |
setModifierMemberId(String modifierMemberId1)
member id of modifier
|
void |
setModifyTimeDb(long modifyTime1)
last time modified
|
void |
setName(String name1)
name of subject
|
void |
setSearchStringLower(String searchStringLower1)
search string to find a subject, in all lower case
|
void |
setUuid(String uuid1)
uuid for row
|
void |
setVettedEmailAddresses(String vettedEmailAddresses1)
comma separated vetted email addresses
|
static String |
sourceId()
source id for external subjects
|
static String |
sourceName()
source name for external subjects
|
void |
store()
store this object to the DB.
|
void |
store(Set<ExternalSubjectAttribute> externalSubjectAttributes,
String externalSubjectInviteName,
boolean validateAttributes,
boolean autoaddGroups,
boolean fromRecalcDaemon)
store this object to the DB.
|
static boolean |
subjectCanEditExternalUser(Subject subject)
see if someone is allowed to edit, cache for 1 minute, note, this method has no security
|
String |
toString() |
void |
validateIdentifier()
validate that the identifier is ok, based on grouper.properties
|
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumberpublic static final String TABLE_GROUPER_EXT_SUBJ
public static final String COLUMN_CONTEXT_ID
public static final String COLUMN_DESCRIPTION
public static final String COLUMN_DISABLED_TIME
public static final String COLUMN_EMAIL
public static final String COLUMN_ENABLED
public static final String COLUMN_IDENTIFIER
public static final String COLUMN_INSTITUTION
public static final String COLUMN_NAME
public static final String COLUMN_SEARCH_STRING_LOWER
public static final String COLUMN_VETTED_EMAIL_ADDRESSES
public static final String COLUMN_UUID
public static final String COLUMN_CREATE_TIME
public static final String COLUMN_CREATOR_MEMBER_ID
public static final String COLUMN_MODIFY_TIME
public static final String COLUMN_MODIFIER_MEMBER_ID
public static final String FIELD_CONTEXT_ID
public static final String FIELD_CREATE_TIME
public static final String FIELD_CREATOR_MEMBER_ID
public static final String FIELD_DESCRIPTION
public static final String FIELD_DISABLED_TIME
public static final String FIELD_EMAIL
public static final String FIELD_ENABLED
public static final String FIELD_IDENTIFIER
public static final String FIELD_INSTITUTION
public static final String FIELD_MODIFIER_MEMBER_ID
public static final String FIELD_MODIFY_TIME
public static final String FIELD_NAME
public static final String FIELD_SEARCH_STRING_LOWER
public static final String FIELD_VETTED_EMAIL_ADDRESSES
public static final String FIELD_UUID
public String getVettedEmailAddresses()
public void setVettedEmailAddresses(String vettedEmailAddresses1)
vettedEmailAddresses1 - public static void notifyWatcherAboutRegistration(String identifier, String emailAddressToNotify, String emailAddressOfInvitee)
identifier - emailAddressToNotify - emailAddressOfInvitee - public void addVettedEmailAddress(String vettedEmailAddress)
vettedEmailAddress - public Long getDisabledTimeDb()
public void setDisabledTimeDb(Long disabledTime1)
disabledTime1 - public Date getDisabledTime()
public void setDisabledTime(Date theDisabledTime1)
theDisabledTime1 - public boolean isEnabled()
public String getEnabledDb()
public void setEnabled(boolean enabled1)
enabled1 - public void setEnabledDb(String enabled1)
enabled1 - public String getContextId()
public String getSearchStringLower()
public void setSearchStringLower(String searchStringLower1)
searchStringLower1 - public String getUuid()
public void setUuid(String uuid1)
uuid1 - public String getIdentifier()
public void setIdentifier(String identifier1)
identifier1 - public String getName()
public void setName(String name1)
name1 - public String getDescription()
public void setDescription(String description1)
description1 - public String getEmail()
public void setEmail(String email1)
email1 - public String getInstitution()
public void setInstitution(String institution1)
institution1 - public ExternalSubject clone()
clone in interface GrouperCloneableclone in class GrouperAPIObject.clone()public void setContextId(String contextId1)
setContextId in interface GrouperHasContextcontextId1 - public Date getCreateTime()
Date that this subject was created.public long getCreateTimeDb()
public String getCreatorMemberId()
public String getModifierMemberId()
public void setCreateTimeDb(long createTime1)
createTime1 - public void setCreatorMemberId(String creatorMemberId1)
creatorMemberId1 - public void setModifierMemberId(String modifierMemberId1)
modifierMemberId1 - public void setModifyTimeDb(long modifyTime1)
modifyTime1 - public Date getModifyTime()
Date that this subject was created.public long getModifyTimeDb()
public static boolean subjectCanEditExternalUser(Subject subject)
subject - public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycleonPreSave in interface HibGrouperLifecycleonPreSave in class GrouperAPIGrouperAPI.onPreSave(HibernateSession)public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycleonPreUpdate in interface HibGrouperLifecycleonPreUpdate in class GrouperAPIGrouperAPI.onPreUpdate(HibernateSession)public void store()
public String retrieveFieldValue(String fieldOrAttributeName)
fieldOrAttributeName - public void store(Set<ExternalSubjectAttribute> externalSubjectAttributes, String externalSubjectInviteName, boolean validateAttributes, boolean autoaddGroups, boolean fromRecalcDaemon)
externalSubjectAttributes - null to not worry, not null to affect the external subject attributes tooexternalSubjectInviteName - is a variable you could put in the URL to pass to the hook so you can
add the users to custom groups or whatnotvalidateAttributes - if required attributes should be validatedautoaddGroups - if groups should be auto-added (e.g. not from daemon)fromRecalcDaemon - if the recalc daemon is doing the storingpublic void validateIdentifier()
public static String sourceName()
public static String sourceId()
public void delete()
public static int internal_fixDisabled()
public static int internal_daemonCalcFields()
public boolean assignAttribute(String attributeName, String attributeValue)
attributeName - attributeValue - public Set<ExternalSubjectAttribute> retrieveAttributes()
public ExternalSubjectAttribute retrieveAttribute(String attributeName, boolean exceptionIfNotFound)
attributeName - exceptionIfNotFound - public String toString()
toString in class ObjectObject.toString()public boolean removeAttribute(String attributeName)
attributeName - Copyright © 2016 Internet2. All rights reserved.