public class Group extends CloneableDataObject implements ComponentOwner
Title: Service Event Fabric Core
Description: Defines a Security Group.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
Group |
clone()
Clones the group.
|
int |
compareTo(com.streamscape.sef.security.AbstractEntity other) |
java.lang.String |
getDescription()
Returns the description of the group.
|
CIString |
getName()
Returns the name of the group.
|
CIString |
getOrganization()
Returns a name of the organization associated with the group.
|
SecurityContext |
getSecurityContext()
Returns a Security Context associated with the group.
|
boolean |
hasUser(java.lang.String userName)
Checks if the group has the specified user.
|
boolean |
hasUsers()
Checks if the group has any users.
|
boolean |
isAdministrator()
Checks if the owner has administrator rights.
|
boolean |
isSudoCapable()
Checks if the owner is a sudo capable user.
|
boolean |
isValid()
Checks if the group is valid.
|
java.util.List |
listUsers()
Returns a sorted list of names of all users in the group.
|
void |
setDescription(java.lang.String description)
Sets the specified description of the group.
|
java.lang.String |
toString() |
getSerialVersionUID
public CIString getName()
getName
in interface ComponentOwner
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to be set.public CIString getOrganization()
public boolean hasUser(java.lang.String userName)
userName
- the name of the user to be checked.true
if the group has the specified user, false
otherwise.public boolean hasUsers()
true
if the group has users, false
otherwise.public java.util.List listUsers()
public boolean isValid()
true
if the group is valid, false
otherwise.public SecurityContext getSecurityContext()
null
.getSecurityContext
in interface ComponentOwner
null
if the group has no active Dataspaces bound to it.public boolean isSudoCapable()
ComponentOwner
isSudoCapable
in interface ComponentOwner
true
if the owner is a sudo capable user, false
otherwise.public boolean isAdministrator()
ComponentOwner
isAdministrator
in interface ComponentOwner
true
if the owner has administrator rights, false
otherwise.public Group clone()
clone
in interface CloneableObject
public int compareTo(com.streamscape.sef.security.AbstractEntity other)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.