public interface Entity extends GrouperSetElement, Comparable, GrouperObject
| Modifier and Type | Method and Description |
|---|---|
Group |
copy(Stem stem)
Copy this group to another Stem.
|
void |
delete()
delete this role.
|
Set<Subject> |
getAdmins()
Get subjects with the ADMIN privilege on this group.
|
AttributeAssignGroupDelegate |
getAttributeDelegate() |
AttributeValueDelegate |
getAttributeValueDelegate() |
String |
getContextId()
context id of the transaction
|
String |
getDescription()
description of role, friendly description, e.g.
|
String |
getDisplayExtension()
displayExtension of role
|
String |
getDisplayName()
displayName of attribute, e.g.
|
String |
getExtension()
extension of attribute expireTime
|
String |
getId()
uuid of role
|
String |
getName()
name of role
|
String |
getStemId()
stem that this attribute is in
|
Set<Subject> |
getViewers()
Get subjects with the VIEW privilege on this group.
|
boolean |
grantPriv(Subject subj,
Privilege priv,
boolean exceptionIfAlreadyMember)
Grant privilege to a subject on this group.
|
boolean |
hasAdmin(Subject subj)
Check whether the subject has ADMIN on this group.
|
boolean |
hasView(Subject subj)
Check whether the subject has VIEW on this group.
|
void |
move(Stem stem)
Move this group to another Stem.
|
boolean |
revokePriv(Subject subj,
Privilege priv,
boolean exceptionIfAlreadyRevoked)
Revoke a privilege from the specified subject.
|
void |
setDescription(String description1)
description of attribute, friendly description, e.g.
|
void |
setDisplayExtension(String displayExtension1)
displayExtension of attribute, e.g.
|
void |
setDisplayName(String displayName1)
displayName of attribute, e.g.
|
void |
setExtension(String extension1)
extension of attribute expireTime
|
void |
setId(String id1)
id of this attribute def name
|
void |
setName(String name1) |
void |
setStemId(String stemId1)
stem that this attribute is in
|
void |
store()
store this object to the DB.
|
Member |
toMember()
Convert this group to a
Member object. |
Subject |
toSubject()
Convert this group to a
Subject object. |
__getId, __getNamecompareTogetParentStem, matchesLowerSearchStringsvoid delete()
String getName()
getName in interface GrouperObjectString getDescription()
getDescription in interface GrouperObjectString getDisplayExtension()
String getDisplayName()
getDisplayName in interface GrouperObjectString getExtension()
String getStemId()
void setDescription(String description1)
description1 - void setDisplayExtension(String displayExtension1)
displayExtension1 - void setDisplayName(String displayName1)
displayName1 - void setExtension(String extension1)
extension1 - void setId(String id1)
id1 - void setName(String name1)
name1 - void setStemId(String stemId1)
stemId1 - Set<Subject> getAdmins()
Set admins = g.getAdmins();
GrouperExceptionSet<Subject> getViewers()
Set viewers = g.getViewers();
GrouperExceptionboolean grantPriv(Subject subj, Privilege priv, boolean exceptionIfAlreadyMember) throws GrantPrivilegeException, InsufficientPrivilegeException, SchemaException
try {
g.grantPriv(subj, AccessPrivilege.ADMIN);
}
catch (GrantPrivilegeException e0) {
// Not privileged to grant this privilege
}
catch (InsufficientPrivilegeException e1) {
// Unable to grant this 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 groupGrantPrivilegeExceptionInsufficientPrivilegeExceptionSchemaExceptionboolean hasAdmin(Subject subj)
if (g.hasAdmin(subj)) {
// Has ADMIN
}
else {
// Does not have ADMIN
}
subj - Check this subject.boolean hasView(Subject subj)
if (g.hasView(subj)) {
// Has VIEW
}
else {
// Does not have VIEW
}
subj - Check this member.boolean revokePriv(Subject subj, Privilege priv, boolean exceptionIfAlreadyRevoked) throws InsufficientPrivilegeException, RevokePrivilegeException, SchemaException
try {
g.revokePriv(subj, AccessPrivilege.OPTIN);
}
catch (InsufficientPrivilegeException e1) {
// 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 groupInsufficientPrivilegeExceptionRevokePrivilegeExceptionSchemaExceptionvoid store()
Member toMember() throws GrouperException
Member object.
Member m = g.toMember();
Group as a MemberGrouperExceptionSubject toSubject() throws GrouperException
Subject object.
Subject subj = g.toSubject();
Group as a SubjectGrouperExceptionString getContextId()
Group copy(Stem stem)
stem - InsufficientPrivilegeExceptionGroupAddExceptionvoid move(Stem stem)
stem - GroupModifyExceptionInsufficientPrivilegeExceptionAttributeValueDelegate getAttributeValueDelegate()
Group.getAttributeValueDelegate()AttributeAssignGroupDelegate getAttributeDelegate()
Group.getAttributeDelegate()Copyright © 2016 Internet2. All rights reserved.