|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.Stem
public class Stem
A namespace within the Groups Registry.
Nested Class Summary | |
---|---|
static class |
Stem.Scope
Search scope: one-level or subtree. |
Field Summary | |
---|---|
static java.lang.String |
COLUMN_ALTERNATE_NAME
an alternate name for this stem |
static java.lang.String |
COLUMN_CONTEXT_ID
context id column name |
static java.lang.String |
COLUMN_CREATE_TIME
id col in db |
static java.lang.String |
COLUMN_CREATOR_ID
col |
static java.lang.String |
COLUMN_DESCRIPTION
id col in db |
static java.lang.String |
COLUMN_DISPLAY_EXTENSION
id col in db |
static java.lang.String |
COLUMN_DISPLAY_NAME
col |
static java.lang.String |
COLUMN_EXTENSION
id col in db |
static java.lang.String |
COLUMN_HIBERNATE_VERSION_NUMBER
column for hibernate version number |
static java.lang.String |
COLUMN_ID
id col in db |
static java.lang.String |
COLUMN_ID_INDEX
unique number for this stem |
static java.lang.String |
COLUMN_LAST_MEMBERSHIP_CHANGE
timestamp of the last membership change for this group |
static java.lang.String |
COLUMN_MODIFIER_ID
id col in db |
static java.lang.String |
COLUMN_MODIFY_TIME
id col in db |
static java.lang.String |
COLUMN_NAME
col |
static java.lang.String |
COLUMN_OLD_ID
old id col for id conversion |
static java.lang.String |
COLUMN_OLD_UUID
old uuid id col for id conversion |
static java.lang.String |
COLUMN_PARENT_STEM
col |
static java.lang.String |
COLUMN_UUID
uuid col in db (not used anymore) |
static java.lang.String |
DELIM
Hierarchy delimiter. |
static java.lang.String |
FIELD_ALTERNATE_NAME_DB
constant for field name for: alternateNameDb |
static java.lang.String |
FIELD_CREATE_TIME
constant for field name for: createTime |
static java.lang.String |
FIELD_CREATOR_UUID
constant for field name for: creatorUUID |
static java.lang.String |
FIELD_DB_VERSION
constant for field name for: dbVersion |
static java.lang.String |
FIELD_DESCRIPTION
constant for field name for: description |
static java.lang.String |
FIELD_DISPLAY_EXTENSION
constant for field name for: displayExtension |
static java.lang.String |
FIELD_DISPLAY_NAME
constant for field name for: displayName |
static java.lang.String |
FIELD_EXTENSION
constant for field name for: extension |
static java.lang.String |
FIELD_ID_INDEX
constant for field name for: idIndex |
static java.lang.String |
FIELD_LAST_MEMBERSHIP_CHANGE_DB
constant for field name for: lastMembershipChangeDb |
static java.lang.String |
FIELD_MODIFIER_UUID
constant for field name for: modifierUUID |
static java.lang.String |
FIELD_MODIFY_TIME
constant for field name for: modifyTime |
static java.lang.String |
FIELD_NAME
constant for field name for: name |
static java.lang.String |
FIELD_PARENT_UUID
constant for field name for: parentUuid |
static java.lang.String |
FIELD_UUID
constant for field name for: uuid |
static java.lang.String |
ROOT_INT
root int |
static java.lang.String |
ROOT_NAME
Default name of root stem. |
static java.lang.String |
TABLE_GROUPER_STEMS
table for stems table in the db |
static java.lang.String |
VALIDATION_STEM_DESCRIPTION_TOO_LONG_KEY
|
static java.lang.String |
VALIDATION_STEM_DISPLAY_EXTENSION_TOO_LONG_KEY
|
static java.lang.String |
VALIDATION_STEM_DISPLAY_NAME_TOO_LONG_KEY
|
static java.lang.String |
VALIDATION_STEM_EXTENSION_TOO_LONG_KEY
|
static java.lang.String |
VALIDATION_STEM_NAME_TOO_LONG_KEY
|
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI |
---|
FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER |
Fields inherited from interface org.hibernate.classic.Lifecycle |
---|
NO_VETO, VETO |
Constructor Summary | |
---|---|
Stem()
|
Method Summary | |
---|---|
java.lang.String |
__getId()
if of this object |
java.lang.String |
__getName()
name of this object (for logging) |
static Stem |
_createStemAndParentStemsIfNotExist(GrouperSession grouperSession,
java.lang.String stemName,
java.lang.String stemDisplayNameForInserts)
create stems and parents if not exist. |
void |
addAlternateName(java.lang.String alternateName)
Add an alternate name for this stem. |
AttributeDef |
addChildAttributeDef(java.lang.String extension,
AttributeDefType attributeDefType)
Add a new attribute def to the registry. |
AttributeDefName |
addChildAttributeDefName(AttributeDef attributeDef,
java.lang.String extension,
java.lang.String displayExtension)
Add a new attribute def to the registry. |
AttributeDefName |
addChildAttributeDefName(AttributeDef attributeDef,
java.lang.String extension,
java.lang.String displayExtension,
java.lang.String uuid)
Add a new attribute def to the registry. |
Group |
addChildGroup(java.lang.String extension,
java.lang.String displayExtension)
Add a new group to the registry. |
Role |
addChildRole(java.lang.String extension,
java.lang.String displayExtension)
Add a new role to the registry. |
Stem |
addChildStem(java.lang.String extension,
java.lang.String displayExtension)
Add a new stem to the registry. |
Stem |
addChildStem(java.lang.String extension,
java.lang.String displayExtension,
java.lang.String uuid,
boolean failIfExists)
Add a new stem to the registry. |
boolean |
assignIdIndex(long theIdIndex)
assign different id index |
boolean |
canHavePrivilege(edu.internet2.middleware.subject.Subject subject,
java.lang.String privilegeOrListName,
boolean secure)
see if the subject has a privilege or another privilege that implies this privilege. |
Stem |
clone()
deep clone the fields in this object |
int |
compareTo(Stem that)
|
Stem |
copy(Stem stem)
Copy this stem to another Stem. |
Stem |
dbVersion()
save the state when retrieving from DB |
java.util.Set<java.lang.String> |
dbVersionDifferentFields()
note, these are massaged so that name, extension, etc look like normal fields. |
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db |
void |
delete()
Delete this stem from the Groups Registry. |
boolean |
deleteAlternateName(java.lang.String alternateName)
Delete the specified alternate name. |
static boolean |
deleteOccuring()
see if we are in the middle of a delete (e.g. for hook) |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAlternateName()
Returns the alternate name for the stem. |
java.lang.String |
getAlternateNameDb()
Returns the alternate name for the stem. |
java.util.Set<java.lang.String> |
getAlternateNames()
Returns the alternate names for the stem. |
AttributeAssignStemDelegate |
getAttributeDelegate()
get the logic delegate |
AttributeValueDelegate |
getAttributeValueDelegate()
this delegate works on attributes and values at the same time |
java.util.Set |
getChildGroups()
Get groups that are immediate children of this stem. |
java.util.Set<Group> |
getChildGroups(Privilege[] privileges,
Stem.Scope scope)
Deprecated. use the overload |
java.util.Set<Group> |
getChildGroups(Stem.Scope scope)
Get groups that are children of this stem. |
java.util.Set<Group> |
getChildGroups(Stem.Scope scope,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Get groups that are children of this stem. |
java.util.Set<Group> |
getChildGroups(Stem.Scope scope,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions,
java.util.Set<TypeOfGroup> typeOfGroups)
Get groups that are children of this stem. |
java.util.Set<Group> |
getChildMembershipGroups(Stem.Scope scope,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Get groups that are children of this stem and there is a list membership. |
java.util.Set<Stem> |
getChildStems()
Get stems that are immediate children of this stem. |
java.util.Set<Stem> |
getChildStems(Privilege[] privileges,
Stem.Scope scope)
get child stems |
java.util.Set<Stem> |
getChildStems(Stem.Scope scope)
Get stems that are children of this stem. |
java.util.Set<Stem> |
getChildStems(Stem.Scope scope,
QueryOptions queryOptions)
Get stems that are children of this stem. |
java.util.Set<Stem> |
getChildStems(Stem.Scope scope,
java.util.Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Get groups that are children of this stem. |
java.lang.String |
getContextId()
context id of the transaction |
edu.internet2.middleware.subject.Subject |
getCreateSubject()
Get subject that created this stem. |
java.util.Date |
getCreateTime()
Get creation time for this stem. |
long |
getCreateTimeLong()
|
java.util.Set |
getCreators()
Get subjects with CREATE privilege on this stem. |
java.lang.String |
getCreatorUuid()
|
java.lang.String |
getDescription()
Get stem description. |
java.lang.String |
getDescriptionDb()
|
java.lang.String |
getDisplayExtension()
Get stem displayExtension. |
java.lang.String |
getDisplayExtensionDb()
|
java.lang.String |
getDisplayName()
Get stem displayName. |
java.lang.String |
getDisplayNameDb()
|
java.lang.String |
getExtension()
Get stem extension. |
java.lang.String |
getExtensionDb()
|
java.lang.String |
getId()
id is same as uuid |
java.lang.Long |
getIdIndex()
id of the group as a unique integer |
java.sql.Timestamp |
getLastMembershipChange()
when the last member has changed |
java.lang.Long |
getLastMembershipChangeDb()
when the last member has changed, used by hibernate |
java.lang.String |
getModifierUuid()
|
edu.internet2.middleware.subject.Subject |
getModifySubject()
Get subject that last modified this stem. |
java.util.Date |
getModifyTime()
Get last modified time for this stem. |
long |
getModifyTimeLong()
|
java.lang.String |
getName()
Get stem name. |
java.lang.String |
getNameDb()
|
Stem |
getParentStem()
Get parent stem. |
java.lang.String |
getParentStemName()
get the name of the parent stem |
java.lang.String |
getParentUuid()
|
java.util.Set<NamingPrivilege> |
getPrivs(edu.internet2.middleware.subject.Subject subj)
Get privileges that the specified subject has on this stem. |
java.util.Set |
getStemAdmins()
Get subjects with STEM_ADMIN privilege on this stem. |
java.util.Set |
getStemAttrReaders()
Get subjects with STEM_ATTR_READ privilege on this stem. |
java.util.Set |
getStemAttrUpdaters()
Get subjects with STEM_ATTR_UPDATE privilege on this stem. |
java.util.Set |
getStemmers()
Get subjects with STEM privilege on this stem. |
java.lang.String |
getUuid()
|
void |
grantPriv(edu.internet2.middleware.subject.Subject subj,
Privilege priv)
Grant a privilege on this stem. |
boolean |
grantPriv(edu.internet2.middleware.subject.Subject subj,
Privilege priv,
boolean exceptionIfAlreadyMember)
Grant a privilege on this stem. |
boolean |
grantPrivs(edu.internet2.middleware.subject.Subject subject,
boolean stemAdminChecked,
boolean createChecked,
boolean attrReadChecked,
boolean attrUpdateChecked,
boolean revokeIfUnchecked)
grant privs to stem |
boolean |
hasCreate(edu.internet2.middleware.subject.Subject subj)
Check whether a subject has the CREATE privilege on this stem. |
int |
hashCode()
|
boolean |
hasPrivilege(edu.internet2.middleware.subject.Subject subject,
java.lang.String privilegeOrListName)
see if the subject has a privilege |
boolean |
hasStem(edu.internet2.middleware.subject.Subject subj)
Check whether a member has the STEM privilege on this stem. |
boolean |
hasStemAdmin(edu.internet2.middleware.subject.Subject subj)
Check whether a member has the STEM_ADMIN privilege on this stem. |
boolean |
hasStemAttrRead(edu.internet2.middleware.subject.Subject subj)
Check whether a subject has the STEM_ATTR_READ privilege on this stem. |
boolean |
hasStemAttrUpdate(edu.internet2.middleware.subject.Subject subj)
Check whether a subject has the STEM_ATTR_UPDATE privilege on this stem. |
AttributeDef |
internal_addChildAttributeDef(GrouperSession session,
java.lang.String extn,
java.lang.String id,
AttributeDefType attributeDefType,
java.lang.String description)
|
AttributeDefName |
internal_addChildAttributeDefName(GrouperSession session,
AttributeDef attributeDef,
java.lang.String extension,
java.lang.String displayExtension,
java.lang.String id,
java.lang.String description)
|
Role |
internal_addChildEntity(java.lang.String extension,
java.lang.String displayExtension,
java.lang.String uuid)
Add a new role to the registry. |
Group |
internal_addChildGroup(java.lang.String extn,
java.lang.String dExtn,
java.lang.String uuid)
add child group with uuid |
Group |
internal_addChildGroup(java.lang.String extn,
java.lang.String dExtn,
java.lang.String uuid,
java.lang.String description,
java.util.Set<GroupType> types,
java.util.Map<java.lang.String,java.lang.String> attributes,
boolean addDefaultGroupPrivileges,
TypeOfGroup typeOfGroup,
boolean checkSecurity)
|
Group |
internal_addChildGroup(java.lang.String extn,
java.lang.String dExtn,
java.lang.String uuid,
TypeOfGroup typeOfGroup)
add child group with uuid |
Role |
internal_addChildRole(java.lang.String extension,
java.lang.String displayExtension,
java.lang.String uuid)
Add a new role to the registry. |
Stem |
internal_addChildStem(java.lang.String extn,
java.lang.String dExtn,
java.lang.String uuid)
add child stem with uuid |
static Stem |
internal_addRootStem(GrouperSession s,
boolean[] changed)
add root stem |
boolean |
internal_grantPriv(edu.internet2.middleware.subject.Subject subj,
Privilege priv,
boolean exceptionIfAlreadyMember,
java.lang.String uuid)
Grant a privilege on this stem. |
void |
internal_setModified()
set modified |
boolean |
isChildGroup(Group group)
TODO 20070813 make public? |
boolean |
isChildStem(Stem stem)
TODO 20070813 make public? |
boolean |
isRootStem()
|
boolean |
matchesLowerSearchStrings(java.util.Set<java.lang.String> filterStrings)
see if this object matches the filter strings |
void |
move(Stem stem)
Move this stem to another Stem. |
void |
obliterate(boolean printOutput,
boolean testOnly)
Delete this stem from the Groups Registry including all sub objects. |
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 |
void |
revokePriv(Privilege priv)
Revoke all privileges of the specified type on this stem. |
void |
revokePriv(edu.internet2.middleware.subject.Subject subj,
Privilege priv)
Revoke a privilege on this stem. |
boolean |
revokePriv(edu.internet2.middleware.subject.Subject subj,
Privilege priv,
boolean exceptionIfAlreadyRevoked)
Revoke a privilege on this stem. |
static Stem |
saveStem(GrouperSession grouperSession,
java.lang.String stemNameToEdit,
java.lang.String uuid,
java.lang.String name,
java.lang.String displayExtension,
java.lang.String description,
SaveMode saveMode,
boolean createParentStemsIfNotExist)
create or update a stem. |
void |
setAlternateNameDb(java.lang.String alternateName)
Set the group's alternate name Used by hibernate. |
void |
setContextId(java.lang.String contextId1)
context id of the transaction |
void |
setCreateTimeLong(long createTime)
|
void |
setCreatorUuid(java.lang.String creatorUUID)
|
void |
setDescription(java.lang.String value)
Set stem description. |
void |
setDescriptionDb(java.lang.String description)
|
void |
setDisplayExtension(java.lang.String value)
Set displayExtension. |
void |
setDisplayExtensionDb(java.lang.String displayExtension)
|
void |
setDisplayName(java.lang.String displayName)
|
void |
setDisplayNameDb(java.lang.String displayName)
|
void |
setExtension(java.lang.String value)
Set extension. |
void |
setExtension(java.lang.String value,
boolean assignAlternateName)
Set extension. |
void |
setExtensionDb(java.lang.String extension)
|
void |
setIdIndex(java.lang.Long idIndex1)
id of the group as a unique integer |
void |
setLastMembershipChangeDb(java.lang.Long theMembershipLastChange)
when the last member has changed, used by hibernate |
void |
setModifierUuid(java.lang.String modifierUUID)
|
void |
setModifyTimeLong(long modifyTime)
|
void |
setName(java.lang.String name)
|
void |
setNameDb(java.lang.String name)
|
void |
setParentUuid(java.lang.String parentUUID)
|
void |
setUuid(java.lang.String uuid)
|
void |
store()
will be implemented soon |
java.lang.String |
toString()
|
java.lang.String |
toStringDb()
|
void |
validate()
|
void |
xmlCopyBusinessPropertiesToExisting(Stem existingRecord)
copy business (non update) properties to an existing record |
boolean |
xmlDifferentBusinessProperties(Stem other)
see if the non update cols are different (e.g. name) |
boolean |
xmlDifferentUpdateProperties(Stem other)
see if the update cols are different (e.g. last updated) |
java.lang.String |
xmlGetId()
set id key in db |
Stem |
xmlRetrieveByIdOrKey()
retrieve from db by id or key. |
Stem |
xmlSaveBusinessProperties(Stem existingRecord)
save the business properties (not update properties) |
void |
xmlSaveUpdateProperties()
save the udpate properties (e.g. last updated). |
void |
xmlSetId(java.lang.String theId)
set id key in db |
XmlExportStem |
xmlToExportStem(GrouperVersion grouperVersion)
convert to xml bean for export |
java.lang.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 |
---|
public static final java.lang.String VALIDATION_STEM_NAME_TOO_LONG_KEY
public static final java.lang.String VALIDATION_STEM_DISPLAY_NAME_TOO_LONG_KEY
public static final java.lang.String VALIDATION_STEM_EXTENSION_TOO_LONG_KEY
public static final java.lang.String VALIDATION_STEM_DISPLAY_EXTENSION_TOO_LONG_KEY
public static final java.lang.String VALIDATION_STEM_DESCRIPTION_TOO_LONG_KEY
public static final java.lang.String TABLE_GROUPER_STEMS
public static final java.lang.String COLUMN_UUID
public static final java.lang.String COLUMN_PARENT_STEM
public static final java.lang.String COLUMN_NAME
public static final java.lang.String COLUMN_DISPLAY_NAME
public static final java.lang.String COLUMN_CREATOR_ID
public static final java.lang.String COLUMN_ID
public static final java.lang.String COLUMN_ID_INDEX
public static final java.lang.String COLUMN_CREATE_TIME
public static final java.lang.String COLUMN_MODIFIER_ID
public static final java.lang.String COLUMN_MODIFY_TIME
public static final java.lang.String COLUMN_DISPLAY_EXTENSION
public static final java.lang.String COLUMN_EXTENSION
public static final java.lang.String COLUMN_DESCRIPTION
public static final java.lang.String COLUMN_ALTERNATE_NAME
public static final java.lang.String COLUMN_HIBERNATE_VERSION_NUMBER
public static final java.lang.String COLUMN_CONTEXT_ID
public static final java.lang.String COLUMN_OLD_ID
public static final java.lang.String COLUMN_OLD_UUID
public static final java.lang.String COLUMN_LAST_MEMBERSHIP_CHANGE
public static final java.lang.String FIELD_ALTERNATE_NAME_DB
public static final java.lang.String FIELD_CREATE_TIME
public static final java.lang.String FIELD_CREATOR_UUID
public static final java.lang.String FIELD_DB_VERSION
public static final java.lang.String FIELD_DESCRIPTION
public static final java.lang.String FIELD_DISPLAY_EXTENSION
public static final java.lang.String FIELD_DISPLAY_NAME
public static final java.lang.String FIELD_EXTENSION
public static final java.lang.String FIELD_ID_INDEX
public static final java.lang.String FIELD_MODIFIER_UUID
public static final java.lang.String FIELD_MODIFY_TIME
public static final java.lang.String FIELD_NAME
public static final java.lang.String FIELD_PARENT_UUID
public static final java.lang.String FIELD_UUID
public static final java.lang.String FIELD_LAST_MEMBERSHIP_CHANGE_DB
public static final java.lang.String DELIM
public static final java.lang.String ROOT_NAME
public static final java.lang.String ROOT_INT
Constructor Detail |
---|
public Stem()
Method Detail |
---|
public java.lang.String getParentStemName()
public java.lang.String getId()
getId
in interface GrouperId
public int compareTo(Stem that)
compareTo
in interface java.lang.Comparable<Stem>
Comparable.compareTo(java.lang.Object)
public AttributeAssignStemDelegate getAttributeDelegate()
AttributeAssignable
getAttributeDelegate
in interface AttributeAssignable
public AttributeValueDelegate getAttributeValueDelegate()
getAttributeValueDelegate
in interface AttributeAssignable
public java.lang.String getContextId()
public void setContextId(java.lang.String contextId1)
setContextId
in interface GrouperHasContext
contextId1
- public Group addChildGroup(java.lang.String extension, java.lang.String displayExtension) throws GroupAddException, InsufficientPrivilegeException
// Add a group with the extension "edu" beneath this stem. try { Group edu = ns.addChildGroup("edu", "edu domain"); } catch (GroupAddException eGA) { // Group not added } catch (InsufficientPrivilegeException eIP) { // Not privileged to add group }
extension
- Group's extensiondisplayExtension
- Groups' displayExtension
Group
GroupAddException
InsufficientPrivilegeException
public AttributeDef addChildAttributeDef(java.lang.String extension, AttributeDefType attributeDefType) throws InsufficientPrivilegeException
extension
- attributeDef's extensionattributeDefType
-
AttributeDef
InsufficientPrivilegeException
public AttributeDefName addChildAttributeDefName(AttributeDef attributeDef, java.lang.String extension, java.lang.String displayExtension) throws InsufficientPrivilegeException
attributeDef
- is the definition of this attributeextension
- attributeDef's extensiondisplayExtension
-
AttributeDef
InsufficientPrivilegeException
public AttributeDefName addChildAttributeDefName(AttributeDef attributeDef, java.lang.String extension, java.lang.String displayExtension, java.lang.String uuid) throws InsufficientPrivilegeException
attributeDef
- is the definition of this attributeextension
- attributeDef's extensiondisplayExtension
-
AttributeDef
InsufficientPrivilegeException
public Stem addChildStem(java.lang.String extension, java.lang.String displayExtension, java.lang.String uuid, boolean failIfExists) throws InsufficientPrivilegeException, StemAddException
// Add a stem with the extension "edu" beneath this stem. try { Stem edu = ns.addChildStem("edu", "edu domain"); } catch (StemAddException e) { // Stem not added }
extension
- Stem's extensiondisplayExtension
- Stem' displayExtensionuuid
- if creating this is the uuidfailIfExists
- throws StemAddException if exists, else just return the existing stem
Stem
InsufficientPrivilegeException
StemAddException
public Stem addChildStem(java.lang.String extension, java.lang.String displayExtension) throws InsufficientPrivilegeException, StemAddException
// Add a stem with the extension "edu" beneath this stem. try { Stem edu = ns.addChildStem("edu", "edu domain"); } catch (StemAddException e) { // Stem not added }
extension
- Stem's extensiondisplayExtension
- Stem' displayExtension
Stem
InsufficientPrivilegeException
StemAddException
public static boolean deleteOccuring()
public void delete() throws InsufficientPrivilegeException, StemDeleteException
try { ns.delete(); } catch (InsufficientPrivilegeException eIP) { // not privileged to delete stem } catch (StemDeleteException eSD) { // unable to delete stem }
InsufficientPrivilegeException
StemDeleteException
public java.util.Set getChildGroups()
Group
objects.getChildGroups(Scope)
public java.util.Set<Group> getChildGroups(Stem.Scope scope) throws java.lang.IllegalArgumentException
scope
- of search: Scope.ONE
or Scope.SUB
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Group> getChildGroups(Stem.Scope scope, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions)
scope
- of search: Scope.ONE
or Scope.SUB
inPrivSet
- set of privileges that the grouper session needs one of for the row to be returned.
AccessPrivilege has some pre-baked constant sets for use herequeryOptions
-
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Group> getChildGroups(Stem.Scope scope, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions, java.util.Set<TypeOfGroup> typeOfGroups) throws java.lang.IllegalArgumentException
scope
- of search: Scope.ONE
or Scope.SUB
inPrivSet
- set of privileges that the grouper session needs one of for the row to be returned.
AccessPrivilege has some pre-baked constant sets for use heretypeOfGroups
- is the type of groups to get, or null for allqueryOptions
-
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Group> getChildMembershipGroups(Stem.Scope scope, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws java.lang.IllegalArgumentException
scope
- of search: Scope.ONE
or Scope.SUB
inPrivSet
- set of privileges that the grouper session needs one of for the row to be returned.
AccessPrivilege has some pre-baked constant sets for use herequeryOptions
-
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Stem> getChildStems(Stem.Scope scope, java.util.Set<Privilege> inPrivSet, QueryOptions queryOptions) throws java.lang.IllegalArgumentException
scope
- of search: Scope.ONE
or Scope.SUB
inPrivSet
- set of privileges that the grouper session needs one of for the row to be returned.
AccessPrivilege has some pre-baked constant sets for use herequeryOptions
-
java.lang.IllegalArgumentException
- if null scope.@Deprecated public java.util.Set<Group> getChildGroups(Privilege[] privileges, Stem.Scope scope) throws java.lang.IllegalArgumentException
privileges
- privsscope
- all or direct
java.lang.IllegalArgumentException
- if any parameter is null.public java.util.Set<Stem> getChildStems()
Stem
objects.getChildStems(Scope)
public java.util.Set<Stem> getChildStems(Stem.Scope scope)
scope
- of search: Scope.ONE
or Scope.SUB
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Stem> getChildStems(Stem.Scope scope, QueryOptions queryOptions) throws java.lang.IllegalArgumentException
scope
- of search: Scope.ONE
or Scope.SUB
queryOptions
-
java.lang.IllegalArgumentException
- if null scope.public java.util.Set<Stem> getChildStems(Privilege[] privileges, Stem.Scope scope) throws java.lang.IllegalArgumentException
privileges
- privsscope
- all or direct
java.lang.IllegalArgumentException
- if any parameter is null.public edu.internet2.middleware.subject.Subject getCreateSubject() throws edu.internet2.middleware.subject.SubjectNotFoundException
// Get creator of this stem. try { Subject creator = ns.getCreateSubject(); } catch (SubjectNotFoundException e) { // Couldn't find subject }
Subject
that created this stem.
edu.internet2.middleware.subject.SubjectNotFoundException
public java.util.Date getCreateTime()
// Get create time. Date created = ns.getCreateTime();
Date
that this stem was created.public java.util.Set getCreators() throws GrouperException
Set creators = ns.getCreators();
Subject
objects
GrouperException
public java.lang.String getDescription()
// Get description String description = ns.getDescription();
getDescription
in interface GrouperObject
public java.lang.String getDisplayExtension()
// Get displayExtension String displayExtn = ns.getDisplayExtension();
public java.lang.String getDisplayName()
// Get displayName String displayName = ns.getDisplayName();
getDisplayName
in interface GrouperObject
public java.lang.String getExtension()
// Get extension String extension = ns.getExtension();
public edu.internet2.middleware.subject.Subject getModifySubject() throws edu.internet2.middleware.subject.SubjectNotFoundException
// Get last modifier of this stem. try { Subject modifier = ns.getModifySubject(); } catch (SubjectNotFoundException e) { // Couldn't find subject }
Subject
that last modified this stem.
edu.internet2.middleware.subject.SubjectNotFoundException
public java.util.Date getModifyTime()
// Get last modified time. Date modified = ns.getModifyTime();
Date
that this stem was last modified.public java.lang.String getName()
// Get name String name = ns.getName();
getName
in interface GrouperObject
getName
in interface Owner
public Stem getParentStem() throws StemNotFoundException
// Get parent Stem parent = ns.getParentStem();
Stem
.
StemNotFoundException
- if stem not foundpublic java.lang.String getAlternateNameDb()
public java.lang.String getAlternateName()
public void setAlternateNameDb(java.lang.String alternateName)
alternateName
- public java.util.Set<java.lang.String> getAlternateNames()
public void addAlternateName(java.lang.String alternateName)
alternateName
- public boolean deleteAlternateName(java.lang.String alternateName)
alternateName
-
public java.util.Set<NamingPrivilege> getPrivs(edu.internet2.middleware.subject.Subject subj)
Set privs = ns.getPrivs(subj);
subj
- Get privileges for this subject.
NamingPrivilege
objects.public java.util.Set getStemmers() throws GrouperException
Set stemmers = ns.getStemmers();
Subject
objects
GrouperException
public java.util.Set getStemAdmins() throws GrouperException
Set stemAdmins = ns.getStemAdmins();
Subject
objects
GrouperException
public java.util.Set getStemAttrReaders() throws GrouperException
Set subjects = ns.getStemAttrReaders();
Subject
objects
GrouperException
public java.util.Set getStemAttrUpdaters() throws GrouperException
Set subjects = ns.getStemAttrUpdaters();
Subject
objects
GrouperException
public java.lang.String getUuid()
getUuid
in interface Owner
public void grantPriv(edu.internet2.middleware.subject.Subject subj, Privilege priv) throws GrantPrivilegeException, InsufficientPrivilegeException, SchemaException
try { ns.grantPriv(subj, NamingPrivilege.CREATE); } catch (GrantPrivilegeException e) { // Error granting privilege }
subj
- Grant privilege to this subject.priv
- Grant this privilege.
GrantPrivilegeException
InsufficientPrivilegeException
SchemaException
public boolean grantPriv(edu.internet2.middleware.subject.Subject subj, Privilege priv, boolean exceptionIfAlreadyMember) throws GrantPrivilegeException, InsufficientPrivilegeException, SchemaException
try { ns.grantPriv(subj, NamingPrivilege.CREATE); } catch (GrantPrivilegeException e) { // Error granting privilege }
subj
- Grant privilege to this subject.priv
- Grant this privilege.exceptionIfAlreadyMember
- if false, and subject is already a member,
then dont throw a MemberAddException if the member is already in the group
GrantPrivilegeException
InsufficientPrivilegeException
SchemaException
public boolean internal_grantPriv(edu.internet2.middleware.subject.Subject subj, Privilege priv, boolean exceptionIfAlreadyMember, java.lang.String uuid) throws GrantPrivilegeException, InsufficientPrivilegeException, SchemaException
try { ns.grantPriv(subj, NamingPrivilege.CREATE); } catch (GrantPrivilegeException e) { // Error granting privilege }
subj
- Grant privilege to this subject.priv
- Grant this privilege.exceptionIfAlreadyMember
- if false, and subject is already a member,
then dont throw a MemberAddException if the member is already in the groupuuid
-
GrantPrivilegeException
InsufficientPrivilegeException
SchemaException
public boolean hasCreate(edu.internet2.middleware.subject.Subject subj)
if (ns.hasCreate(subj)) { // Has CREATE } // Does not have CREATE }
subj
- Check whether this subject has CREATE.
public boolean hasStemAttrRead(edu.internet2.middleware.subject.Subject subj)
if (ns.hasStemAttrRead(subj)) { // Has STEM_ATTR_READ } // Does not have STEM_ATTR_READ }
subj
- Check whether this subject has STEM_ATTR_READ.
public boolean hasStemAttrUpdate(edu.internet2.middleware.subject.Subject subj)
if (ns.hasStemAttrUpdate(subj)) { // Has STEM_ATTR_UPDATE } // Does not have STEM_ATTR_UPDATE }
subj
- Check whether this subject has STEM_ATTR_UPDATE.
public boolean hasStem(edu.internet2.middleware.subject.Subject subj)
if (ns.hasStem(subj)) { // Has STEM } // Does not have STEM }
subj
- check whether this subject has STEM.
public boolean hasStemAdmin(edu.internet2.middleware.subject.Subject subj)
if (ns.hasStemAdmin(subj)) { // Has STEM_ADMIN } // Does not have STEM_ADMIN }
subj
- check whether this subject has STEM_ADMIN.
public boolean hasPrivilege(edu.internet2.middleware.subject.Subject subject, java.lang.String privilegeOrListName)
subject
- privilegeOrListName
-
public boolean isChildGroup(Group group) throws java.lang.IllegalArgumentException
group
- group
java.lang.IllegalArgumentException
- if group is null.public boolean isChildStem(Stem stem) throws java.lang.IllegalArgumentException
stem
- stem
java.lang.IllegalArgumentException
- if stem is null.public boolean isRootStem()
public void revokePriv(Privilege priv) throws InsufficientPrivilegeException, RevokePrivilegeException, SchemaException
try { ns.revokePriv(NamingPrivilege.CREATE); } catch (InsufficientPrivilegeException eIP) { // Not privileged to revoke this privilege } catch (RevokePrivilegeException eRP) { // Error revoking privilege }
priv
- Revoke this privilege.
InsufficientPrivilegeException
RevokePrivilegeException
SchemaException
public void revokePriv(edu.internet2.middleware.subject.Subject subj, Privilege priv) throws InsufficientPrivilegeException, RevokePrivilegeException, SchemaException
try { ns.revokePriv(subj, NamingPrivilege.CREATE); } catch (InsufficientPrivilegeException eIP) { // Not privileged to revoke this privilege } catch (RevokePrivilegeException eRP) { // Error revoking privilege }
subj
- Revoke privilege from this subject.priv
- Revoke this privilege.
InsufficientPrivilegeException
RevokePrivilegeException
SchemaException
public boolean revokePriv(edu.internet2.middleware.subject.Subject subj, Privilege priv, boolean exceptionIfAlreadyRevoked) throws InsufficientPrivilegeException, RevokePrivilegeException, SchemaException
try { ns.revokePriv(subj, NamingPrivilege.CREATE); } catch (InsufficientPrivilegeException eIP) { // Not privileged to revoke this privilege } catch (RevokePrivilegeException eRP) { // Error revoking privilege }
subj
- Revoke privilege from this subject.priv
- Revoke this privilege.exceptionIfAlreadyRevoked
- if false, and subject is already a member,
then dont throw a MemberAddException if the member is already in the group
InsufficientPrivilegeException
RevokePrivilegeException
SchemaException
public void setDescription(java.lang.String value) throws InsufficientPrivilegeException, StemModifyException
// Set description try { ns.setDescription(value); } } catch (InsufficientPrivilegeException e0) { // Not privileged to set description catch (StemModifyException e1) { // Error setting description }
value
- Set description to this value.
InsufficientPrivilegeException
StemModifyException
public void store()
public void validate()
public void setDisplayExtension(java.lang.String value) throws InsufficientPrivilegeException, StemModifyException
This will also update the displayName of all child stems and groups.
try { ns.setDisplayExtension(value); } catch (InsufficientPrivilegeException eIP) { // Not privileged to set displayExtension catch (StemModifyException eNSM) { // Error setting displayExtension }
value
- Set displayExtension to this value.
InsufficientPrivilegeException
StemModifyException
public void setExtension(java.lang.String value) throws InsufficientPrivilegeException, StemModifyException
This will also update the name of all child stems and groups.
try { ns.setExtension(value); } catch (InsufficientPrivilegeException eIP) { // Not privileged to set "extension" catch (StemModifyException eNSM) { // Error setting "extension" }
value
- Set extension to this value.
InsufficientPrivilegeException
StemModifyException
public void setExtension(java.lang.String value, boolean assignAlternateName) throws InsufficientPrivilegeException, StemModifyException
This will also update the name of all child stems and groups.
try { ns.setExtension(value, true); } catch (InsufficientPrivilegeException eIP) { // Not privileged to set "extension" catch (StemModifyException eNSM) { // Error setting "extension" }
value
- Set extension to this value.assignAlternateName
- Whether to add the old group and stem names as
alternate names for any renamed groups and stems.
InsufficientPrivilegeException
StemModifyException
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static Stem internal_addRootStem(GrouperSession s, boolean[] changed) throws GrouperException
s
- sessionchanged
- if you want to know if it was added, pass in array of size one, else null
GrouperException
- is problempublic void internal_setModified()
public Group internal_addChildGroup(java.lang.String extn, java.lang.String dExtn, java.lang.String uuid) throws GroupAddException, InsufficientPrivilegeException
extn
- extensiondExtn
- display extensionuuid
- uuid
GroupAddException
- if problem
InsufficientPrivilegeException
- if problempublic Group internal_addChildGroup(java.lang.String extn, java.lang.String dExtn, java.lang.String uuid, TypeOfGroup typeOfGroup) throws GroupAddException, InsufficientPrivilegeException
extn
- extensiondExtn
- display extensionuuid
- uuidtypeOfGroup
-
GroupAddException
- if problem
InsufficientPrivilegeException
- if problempublic Group internal_addChildGroup(java.lang.String extn, java.lang.String dExtn, java.lang.String uuid, java.lang.String description, java.util.Set<GroupType> types, java.util.Map<java.lang.String,java.lang.String> attributes, boolean addDefaultGroupPrivileges, TypeOfGroup typeOfGroup, boolean checkSecurity) throws GroupAddException, InsufficientPrivilegeException
extn
- dExtn
- uuid
- description
- types
- attributes
- addDefaultGroupPrivileges
- typeOfGroup
- or null for defaultcheckSecurity
-
GroupAddException
InsufficientPrivilegeException
public AttributeDefName internal_addChildAttributeDefName(GrouperSession session, AttributeDef attributeDef, java.lang.String extension, java.lang.String displayExtension, java.lang.String id, java.lang.String description) throws InsufficientPrivilegeException
attributeDef
- session
- extension
- displayExtension
- id
- description
-
AttributeDefNameAddException
InsufficientPrivilegeException
public AttributeDef internal_addChildAttributeDef(GrouperSession session, java.lang.String extn, java.lang.String id, AttributeDefType attributeDefType, java.lang.String description) throws InsufficientPrivilegeException
session
- extn
- id
- attributeDefType
- description
-
AttributeDefAddException
InsufficientPrivilegeException
public Stem internal_addChildStem(java.lang.String extn, java.lang.String dExtn, java.lang.String uuid) throws StemAddException, InsufficientPrivilegeException
extn
- extensiondExtn
- display extensionuuid
- uuid
StemAddException
- if problem
InsufficientPrivilegeException
- if problempublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public long getCreateTimeLong()
public java.lang.String getCreatorUuid()
public java.lang.String getDescriptionDb()
public java.lang.String getDisplayExtensionDb()
public java.lang.String getDisplayNameDb()
public java.lang.String getExtensionDb()
public java.lang.String getModifierUuid()
public long getModifyTimeLong()
public java.lang.String getNameDb()
public java.lang.String getParentUuid()
public int hashCode()
hashCode
in class java.lang.Object
public void setCreateTimeLong(long createTime)
createTime
- public void setCreatorUuid(java.lang.String creatorUUID)
creatorUUID
- public void setDescriptionDb(java.lang.String description)
description
- public void setDisplayExtensionDb(java.lang.String displayExtension)
displayExtension
- public void setDisplayName(java.lang.String displayName)
displayName
- public void setDisplayNameDb(java.lang.String displayName)
displayName
- public void setExtensionDb(java.lang.String extension)
extension
- public void setModifierUuid(java.lang.String modifierUUID)
modifierUUID
- public void setModifyTimeLong(long modifyTime)
modifyTime
- public void setName(java.lang.String name)
name
- public void setNameDb(java.lang.String name)
name
- public void setParentUuid(java.lang.String parentUUID)
parentUUID
- public void setUuid(java.lang.String uuid)
uuid
- public java.lang.String toStringDb()
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
onPostDelete
in class GrouperAPI
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
onPostSave
in class GrouperAPI
GrouperAPI.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
onPostUpdate
in class GrouperAPI
GrouperAPI.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
onPreDelete
in class GrouperAPI
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
onPreSave
in class GrouperAPI
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
onPreUpdate
in class GrouperAPI
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public Stem dbVersion()
dbVersion
in class GrouperAPI
public java.util.Set<java.lang.String> dbVersionDifferentFields()
dbVersionDifferentFields
in class GrouperAPI
GrouperAPI.dbVersionDifferentFields()
public void dbVersionReset()
dbVersionReset
in class GrouperAPI
public Stem clone()
clone
in interface GrouperCloneable
clone
in class GrouperAPI
Object.clone()
public static Stem _createStemAndParentStemsIfNotExist(GrouperSession grouperSession, java.lang.String stemName, java.lang.String stemDisplayNameForInserts) throws InsufficientPrivilegeException, StemNotFoundException, StemAddException
stemName
- grouperSession
- stemDisplayNameForInserts
- optional, will use this for display name, and not just default to the name. Note this is
only used if creating something, it will not update existing stems
InsufficientPrivilegeException
StemNotFoundException
StemAddException
public static Stem saveStem(GrouperSession grouperSession, java.lang.String stemNameToEdit, java.lang.String uuid, java.lang.String name, java.lang.String displayExtension, java.lang.String description, SaveMode saveMode, boolean createParentStemsIfNotExist) throws StemNotFoundException, InsufficientPrivilegeException, StemAddException, StemModifyException
create or update a stem. Note this will not move a stem at this time (might in future) This is a static method since setters to Stem objects persist to the DB Steps: 1. Find the stem by stemNameToEdit (if not there then its an insert) 2. Internally set all the fields of the stem (no need to reset if already the same) 3. Store the stem (insert or update) if needed 4. Return the stem object This occurs in a transaction, so if a part of it fails, it rolls back, and potentially rolls back outer transactions too
grouperSession
- to act asstemNameToEdit
- is the name of the stem to edit (or null if insert)description
- new description for stemdisplayExtension
- display friendly name for this stem only
(parent stems are not specified)name
- this is required, and is the full name of the stem
including the names of parent stems. e.g. stem1:stem2:stem3
the parent stem must exist unless createParentStemsIfNotExist.
Can rename a stem extension, but not the parent stem name (move)uuid
- of the stem. uuid for an inserted stemsaveMode
- to constrain if insert only or update only, if null defaults to INSERT_OR_UPDATEcreateParentStemsIfNotExist
- true if the stems should be created if they dont exist, false
for StemNotFoundException if not exist. Note, the display extension on created stems
will equal the extension. This could be dangerous and should probably only be used for testing
StemNotFoundException
InsufficientPrivilegeException
StemAddException
StemModifyException
public void move(Stem stem) throws StemModifyException, InsufficientPrivilegeException
stem
-
StemModifyException
InsufficientPrivilegeException
public Stem copy(Stem stem) throws StemAddException, InsufficientPrivilegeException
stem
-
StemAddException
InsufficientPrivilegeException
public java.lang.Long getLastMembershipChangeDb()
public void setLastMembershipChangeDb(java.lang.Long theMembershipLastChange)
theMembershipLastChange
- public java.sql.Timestamp getLastMembershipChange()
public Role addChildRole(java.lang.String extension, java.lang.String displayExtension) throws GroupAddException, InsufficientPrivilegeException
// Add a role with the extension "edu" beneath this stem. try { Group edu = ns.addChildRole("edu", "edu domain"); } catch (GroupAddException eGA) { // Group not added } catch (InsufficientPrivilegeException eIP) { // Not privileged to add group }
extension
- Role extensiondisplayExtension
- Role displayExtension
Role
GroupAddException
InsufficientPrivilegeException
public Role internal_addChildRole(java.lang.String extension, java.lang.String displayExtension, java.lang.String uuid) throws GroupAddException, InsufficientPrivilegeException
// Add a role with the extension "edu" beneath this stem. try { Group edu = ns.addChildRole("edu", "edu domain"); } catch (GroupAddException eGA) { // Group not added } catch (InsufficientPrivilegeException eIP) { // Not privileged to add group }
extension
- Role extensiondisplayExtension
- Role displayExtensionuuid
- is uuid or null if generated
Role
GroupAddException
InsufficientPrivilegeException
public Role internal_addChildEntity(java.lang.String extension, java.lang.String displayExtension, java.lang.String uuid) throws GroupAddException, InsufficientPrivilegeException
// Add a role with the extension "edu" beneath this stem. try { Group edu = ns.addChildEntity("edu", "edu domain"); } catch (GroupAddException eGA) { // Group not added } catch (InsufficientPrivilegeException eIP) { // Not privileged to add group }
extension
- Entity extensiondisplayExtension
- Entity displayExtensionuuid
- is uuid or null if generated
Role
GroupAddException
InsufficientPrivilegeException
public boolean xmlDifferentBusinessProperties(Stem other)
XmlImportableBase
xmlDifferentBusinessProperties
in interface XmlImportableBase<Stem>
other
- the one to compare with
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)
public boolean xmlDifferentUpdateProperties(Stem other)
XmlImportableBase
xmlDifferentUpdateProperties
in interface XmlImportableBase<Stem>
other
- the one to compare with
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)
public void xmlCopyBusinessPropertiesToExisting(Stem existingRecord)
XmlImportableBase
xmlCopyBusinessPropertiesToExisting
in interface XmlImportableBase<Stem>
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)
public Stem xmlRetrieveByIdOrKey()
XmlImportable
xmlRetrieveByIdOrKey
in interface XmlImportable<Stem>
XmlImportable.xmlRetrieveByIdOrKey()
public boolean assignIdIndex(long theIdIndex)
theIdIndex
-
public Stem xmlSaveBusinessProperties(Stem existingRecord)
XmlImportableBase
xmlSaveBusinessProperties
in interface XmlImportableBase<Stem>
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
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)
public void xmlSaveUpdateProperties()
XmlImportableBase
xmlSaveUpdateProperties
in interface XmlImportableBase<Stem>
XmlImportableBase.xmlSaveUpdateProperties()
public XmlExportStem xmlToExportStem(GrouperVersion grouperVersion)
grouperVersion
-
public java.lang.String xmlGetId()
XmlImportableBase
xmlGetId
in interface XmlImportableBase<Stem>
XmlImportableBase.xmlGetId()
public void xmlSetId(java.lang.String theId)
XmlImportableBase
xmlSetId
in interface XmlImportableBase<Stem>
XmlImportableBase.xmlSetId(java.lang.String)
public java.lang.String xmlToString()
XmlImportableBase
xmlToString
in interface XmlImportableBase<Stem>
XmlImportableBase.xmlToString()
public void obliterate(boolean printOutput, boolean testOnly) throws InsufficientPrivilegeException, StemDeleteException
try { ns.delete(); } catch (InsufficientPrivilegeException eIP) { // not privileged to delete stem } catch (StemDeleteException eSD) { // unable to delete stem }
printOutput
- testOnly
-
InsufficientPrivilegeException
StemDeleteException
public java.lang.String __getId()
GrouperSetElement
__getId
in interface GrouperSetElement
GrouperSetElement.__getId()
public java.lang.String __getName()
GrouperSetElement
__getName
in interface GrouperSetElement
GrouperSetElement.__getName()
public java.lang.Long getIdIndex()
public void setIdIndex(java.lang.Long idIndex1)
idIndex1
- public boolean matchesLowerSearchStrings(java.util.Set<java.lang.String> filterStrings)
GrouperObject
matchesLowerSearchStrings
in interface GrouperObject
GrouperObject.matchesLowerSearchStrings(Set)
public boolean canHavePrivilege(edu.internet2.middleware.subject.Subject subject, java.lang.String privilegeOrListName, boolean secure)
subject
- privilegeOrListName
- secure
- if the user must be an admin to check
public boolean grantPrivs(edu.internet2.middleware.subject.Subject subject, boolean stemAdminChecked, boolean createChecked, boolean attrReadChecked, boolean attrUpdateChecked, boolean revokeIfUnchecked)
subject
- to addcreateChecked
- stemAdminChecked
- attrReadChecked
- attrUpdateChecked
- revokeIfUnchecked
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |