public static class CMSecurity.SecGroup
extends java.lang.Object
Constructor | Description |
---|---|
SecGroup(CMSecurity.SecFlag[] flags) |
Constructor from existing security flag data.
|
SecGroup(java.lang.String name,
java.util.Set<CMSecurity.SecFlag> flags) |
Constructor from existing security flag data.
|
SecGroup(java.lang.String name,
java.util.Set<CMSecurity.SecFlag> flags,
java.util.List<CMSecurity.SecGroup> groups,
java.util.List<CMSecurity.SecPath> paths,
java.util.Set<java.lang.String> jFlags) |
Constructor from existing security flag data.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
contains(CMSecurity.SecFlag flag,
boolean isSubOp) |
Checks this group and all subgroups for access to the given security flag, also checking
for subop (area) access if the isSubOp flag is sent.
|
boolean |
containsAny(CMSecurity.SecGroup group,
boolean isSubOp) |
Checks this group and all subgroups for access to any of the security flags or journal flags
in the given group.
|
boolean |
containsJournal(java.lang.String journalFlag) |
Checks the given group and all subgroups for access to a journal of the given name
|
CMSecurity.SecGroup |
copyOf() |
Returns an exact copy of this object.
|
java.util.Iterator<CMSecurity.SecFlag> |
flags() |
Returns an iterator through all the security flags that this group
has access to, including all subgroups.
|
java.lang.String |
getName() |
Returns the name of this security group.
|
java.util.Iterator<CMSecurity.SecPath> |
paths() |
Returns an iterator of all file paths that this group
has special access to, including those of subgroups.
|
void |
reset(java.util.Set<CMSecurity.SecFlag> flags,
java.util.List<CMSecurity.SecGroup> groups,
java.util.List<CMSecurity.SecPath> paths,
java.util.Set<java.lang.String> jFlags) |
Re-populates this group from new security flag data.
|
int |
size() |
The number of all flags that this group was created with
|
java.lang.String |
toString() |
Converts this object to a ; delimited string
|
java.lang.String |
toString(char separatorChar) |
Converts this group object to a delimited string
|
public SecGroup(java.lang.String name, java.util.Set<CMSecurity.SecFlag> flags, java.util.List<CMSecurity.SecGroup> groups, java.util.List<CMSecurity.SecPath> paths, java.util.Set<java.lang.String> jFlags)
name
- the name of the groupflags
- the basic security flags in this groupgroups
- other groups allowed by this grouppaths
- filesystem paths that this group grants access tojFlags
- names of journal that administrative rights are given topublic SecGroup(java.lang.String name, java.util.Set<CMSecurity.SecFlag> flags)
name
- the name of the groupflags
- the basic security flags in this grouppublic SecGroup(CMSecurity.SecFlag[] flags)
flags
- the basic security flags in this grouppublic java.lang.String getName()
public void reset(java.util.Set<CMSecurity.SecFlag> flags, java.util.List<CMSecurity.SecGroup> groups, java.util.List<CMSecurity.SecPath> paths, java.util.Set<java.lang.String> jFlags)
flags
- the basic security flags in this groupgroups
- other groups allowed by this grouppaths
- filesystem paths that this group grants access tojFlags
- names of journal that administrative rights are given topublic boolean containsJournal(java.lang.String journalFlag)
journalFlag
- the name of the journalpublic boolean contains(CMSecurity.SecFlag flag, boolean isSubOp)
flag
- the security flag to look forisSubOp
- true if this should also check for equivalent subop (area) flagspublic boolean containsAny(CMSecurity.SecGroup group, boolean isSubOp)
group
- the group containing flags to look for in this classisSubOp
- true if this should also check for equivalent subop (area) flagspublic int size()
public java.lang.String toString()
toString
in class java.lang.Object
public CMSecurity.SecGroup copyOf()
public java.lang.String toString(char separatorChar)
separatorChar
- the delimiterpublic java.util.Iterator<CMSecurity.SecPath> paths()
public java.util.Iterator<CMSecurity.SecFlag> flags()