|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.AclEntry
public class AclEntry
Nested Class Summary | |
---|---|
static class |
AclEntry.AccessLevel
|
Field Summary | |
---|---|
static java.lang.String |
ACL_DCS_
|
static java.lang.String |
ACL_DCS_DESC
|
static java.lang.String |
ACL_SERVICE_
|
static java.lang.String |
SUBACL_SEPARATOR
|
Constructor Summary | |
---|---|
AclEntry(AclEntry aclEntry)
Copy Constructor |
|
AclEntry(java.lang.String name,
I18N.Text desc,
AclEntry.AccessLevel[] values,
AclEntry.AccessLevel dftLvl)
Constructor |
|
AclEntry(java.lang.String name,
I18N.Text desc,
AclEntry.AccessLevel maxLvl,
AclEntry.AccessLevel dftLvl)
Constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this AclEntry |
static java.lang.String |
CreateAclName(java.lang.String aclName,
java.lang.String subAcl)
|
boolean |
equals(java.lang.Object other)
Returns true if the specified Object is equal to this AclEntry |
static AclEntry.AccessLevel |
getAccessLevel(int accessLevel)
|
static AclEntry.AccessLevel |
getAccessLevel(java.lang.String accessLevel,
java.util.Locale locale)
|
AclEntry.AccessLevel[] |
getAccessLevelValues()
Gets the access level values for this AclEntry |
AclEntry.AccessLevel |
getDefaultAccessLevel()
Gets the default access level for this AclEntry |
java.lang.String |
getDescription(java.util.Locale loc)
Gets the description of this AclEntry |
AclEntry.AccessLevel |
getMaximumAccessLevel()
Gets the maximum access level for this AclEntry |
java.lang.String |
getName()
Gets the name of this AclEntry |
static AclEntry.AccessLevel[] |
GetValueListForMaximumAccessLevel(AclEntry.AccessLevel maxAcc)
|
boolean |
isHidden()
Returns the 'hidden' state of this AclEntry |
static boolean |
okAll(AclEntry.AccessLevel level)
|
static boolean |
okAll(int level)
|
static boolean |
okRead(AclEntry.AccessLevel level)
|
static boolean |
okRead(int level)
|
static boolean |
okWrite(AclEntry.AccessLevel level)
|
static boolean |
okWrite(int level)
|
static AclEntry.AccessLevel |
parseAccessLevel(java.lang.String accStr,
AclEntry.AccessLevel dft)
|
static java.lang.String[] |
ParseAclName(java.lang.String aclName)
|
void |
setDefaultAccessLevel(AclEntry.AccessLevel dft)
Sets the default access level for this AclEntry |
void |
setHidden(boolean hidden)
Sets the 'hidden' state of this AclEntry |
java.lang.String |
toString()
Returns a String representation of this AclEntry |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ACL_DCS_
public static final java.lang.String ACL_DCS_DESC
public static final java.lang.String ACL_SERVICE_
public static final java.lang.String SUBACL_SEPARATOR
Constructor Detail |
---|
public AclEntry(java.lang.String name, I18N.Text desc, AclEntry.AccessLevel[] values, AclEntry.AccessLevel dftLvl)
name
- The name associated with the AclEntrydesc
- The description of the AclEntryvalues
- The valid access level valuespublic AclEntry(java.lang.String name, I18N.Text desc, AclEntry.AccessLevel maxLvl, AclEntry.AccessLevel dftLvl)
name
- The name associated with the AclEntrydesc
- The description of the AclEntrymaxLvl
- The maximum access levelpublic AclEntry(AclEntry aclEntry)
aclEntry
- The other AclEntry instance to copyMethod Detail |
---|
public static AclEntry.AccessLevel getAccessLevel(int accessLevel)
public static AclEntry.AccessLevel getAccessLevel(java.lang.String accessLevel, java.util.Locale locale)
public static AclEntry.AccessLevel parseAccessLevel(java.lang.String accStr, AclEntry.AccessLevel dft)
public static AclEntry.AccessLevel[] GetValueListForMaximumAccessLevel(AclEntry.AccessLevel maxAcc)
public static boolean okRead(AclEntry.AccessLevel level)
public static boolean okRead(int level)
public static boolean okWrite(AclEntry.AccessLevel level)
public static boolean okWrite(int level)
public static boolean okAll(AclEntry.AccessLevel level)
public static boolean okAll(int level)
public static java.lang.String CreateAclName(java.lang.String aclName, java.lang.String subAcl)
public static java.lang.String[] ParseAclName(java.lang.String aclName)
public java.lang.String getName()
public java.lang.String getDescription(java.util.Locale loc)
public void setHidden(boolean hidden)
hidden
- True to set this AclEntry hiddenpublic boolean isHidden()
public AclEntry.AccessLevel[] getAccessLevelValues()
public AclEntry.AccessLevel getMaximumAccessLevel()
public void setDefaultAccessLevel(AclEntry.AccessLevel dft)
dft
- The default access level for this AclEntrypublic AclEntry.AccessLevel getDefaultAccessLevel()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- The other Object to compare for equals
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |