public class AclRow extends TaggedName
Modifier and Type | Field and Description |
---|---|
private Acl |
acl
The ACL item for this row.
|
private AclDef |
aclDef
The ACL parent definition for this row.
|
private static java.lang.String |
SHARED_INSTANCE
Shared instance name
|
private java.lang.String |
subjects
The string representation for the subjects list.
|
private java.util.Set<java.lang.String> |
subjectsSet
A set with all subject names.
|
IDX_NAME, IDX_TAG
Constructor and Description |
---|
AclRow()
Default ctor.
|
AclRow(AclDef aclDef,
Acl acl,
java.lang.String subjects,
java.util.Set<java.lang.String> subjectsSet)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
clearErrorExact()
Clear the resource instance name nature error flag.
|
private void |
clearErrorName()
Clear the resource instance name error flag.
|
private void |
clearErrorOid()
Clear the OID error flag.
|
void |
clearErrorRights()
Clear the rights error flag.
|
private void |
clearErrorSubjs()
Clear the subjects error flag.
|
int |
compareTo(TaggedName o)
Compares this instance of the class with another.
|
boolean |
equals(java.lang.Object o)
Compares this instance of the class with another.
|
Acl |
getAcl()
Acl getter.
|
AclDef |
getAclDef()
AclDef getter.
|
boolean |
getExact()
Get the exact nature of this item.
|
int |
getId()
Get the id for this item.
|
java.lang.String |
getInstance()
Get the instance name for this item.
|
java.lang.String |
getName()
Get the Resource Instance Name for this item.
|
java.lang.String |
getResourceType()
Get the resource type for this item.
|
private java.lang.String |
getRights()
Get a string representation of the rights.
|
private java.lang.String |
getSubjects()
Get a string representation of the subjects.
|
java.util.Set<java.lang.String> |
getSubjectsSet()
Subjects getter.
|
java.lang.String |
getValueAt(int col)
Get a value for a certain column.
|
int |
hashCode()
Calculates the hash code for instances of this class.
|
private boolean |
isErrorExact()
Get the resource instance name nature error flag.
|
boolean |
isErrorName()
Get the resource instance name error flag.
|
private boolean |
isErrorOid()
Get the OID error flag.
|
boolean |
isErrorRights()
Get the rights error flag.
|
private boolean |
isErrorSubjs()
Get the subjects error flag.
|
private void |
setExact(boolean exact)
Set the exact nature of this item
|
void |
setName(java.lang.String name)
Set the Resource Instance Name for this item.
|
private static final java.lang.String SHARED_INSTANCE
private java.lang.String subjects
private java.util.Set<java.lang.String> subjectsSet
private Acl acl
private AclDef aclDef
public AclRow(AclDef aclDef, Acl acl, java.lang.String subjects, java.util.Set<java.lang.String> subjectsSet)
aclDef
- The ACL parent definition for this row.acl
- The acl item.subjects
- The string representation for the subjects list.public AclRow()
public int compareTo(TaggedName o)
compareTo
in interface java.lang.Comparable<TaggedName>
compareTo
in class TaggedName
o
- Object to compare with.public java.lang.String getValueAt(int col)
getValueAt
in class TaggedName
col
- The column for which the value is needed.public boolean equals(java.lang.Object o)
equals
in class TaggedName
o
- Object to compare with.true
when both are equalpublic int hashCode()
hashCode
in class TaggedName
public java.lang.String getInstance()
public java.lang.String getResourceType()
public int getId()
public java.lang.String getName()
getName
in class TaggedName
public void setName(java.lang.String name)
setName
in class TaggedName
name
- The name to be set.public boolean getExact()
true
if exact; false
if regexp.private void setExact(boolean exact)
exact
- true
if exact; false
if regexp.private java.lang.String getSubjects()
private java.lang.String getRights()
public Acl getAcl()
public AclDef getAclDef()
public java.util.Set<java.lang.String> getSubjectsSet()
private boolean isErrorOid()
true
if OID is invalidpublic boolean isErrorName()
true
if the resource instance name is invalidprivate boolean isErrorExact()
true
if the resource instance name nature is
invalidprivate boolean isErrorSubjs()
true
if subjects is invalidpublic boolean isErrorRights()
true
if rights is invalidprivate void clearErrorOid()
private void clearErrorName()
private void clearErrorExact()
private void clearErrorSubjs()
public void clearErrorRights()