|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.common.security.acl.BaseHandler
com.redhat.rhn.common.security.acl.Access
public class Access
Access is a concrete implementation of an AclHandler.
This is default implementation which is always included
when evaluating Acls.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
Access()
Constructor for Access object |
|
| Method Summary | |
|---|---|
boolean |
aclCanAccessChannel(java.lang.Object ctx,
java.lang.String[] params)
returns true or false ifthe user has access to a channel |
boolean |
aclIs(java.lang.Object ctx,
java.lang.String[] params)
Returns true if the given value in the param is found in the global configuration. |
boolean |
aclIsSolaris(java.lang.Object ctx,
java.lang.String[] params)
returns true if sid is a solaris system |
boolean |
aclNeedFirstUser(java.lang.Object ctx,
java.lang.String[] p)
Returns true if the system is a satellite and has any users. |
boolean |
aclOrgChannelFamily(java.lang.Object ctx,
java.lang.String[] params)
TODO: Right now this method calls a small little query very similar to how the perl code decides this acl. |
boolean |
aclOrgEntitlement(java.lang.Object ctx,
java.lang.String[] params)
Checks if their Org has the entitlement. |
boolean |
aclOrgIsPayingCustomer(java.lang.Object ctx,
java.lang.String[] params)
Checks if this user is a paying customer. |
boolean |
aclOrgProxyEvrAtLeast(java.lang.Object ctx,
java.lang.String[] params)
FIXME not implemented. |
boolean |
aclOrgRole(java.lang.Object ctx,
java.lang.String[] params)
Checks if the User's Org has the requested Role. |
boolean |
aclProbeSuiteAccess(java.lang.Object ctx,
java.lang.String[] p)
Check that the current user has access to the probe suite. |
boolean |
aclSystemFeature(java.lang.Object ctx,
java.lang.String[] params)
Check if a System has a feature |
boolean |
aclSystemHasManagementEntitlement(java.lang.Object ctx,
java.lang.String[] params)
Check if a system has a management entitlement |
boolean |
aclSystemHasVirtualizationEntitlement(java.lang.Object ctx,
java.lang.String[] params)
Check if a system has virtualization entitlements. |
boolean |
aclSystemIsInSSM(java.lang.Object ctx,
java.lang.String[] params)
Check if a system has a management entitlement |
boolean |
aclUidRole(java.lang.Object ctx,
java.lang.String[] params)
Returns true if the User whose uid matches the given uid, is in the given Role. |
boolean |
aclUserAuthenticated(java.lang.Object ctx,
java.lang.String[] params)
Returns true if the User has been authenticated by the system. |
boolean |
aclUserCanManageChannels(java.lang.Object ctx,
java.lang.String[] params)
Returns true is the user is either a channel administrator or an org administrator |
boolean |
aclUserRole(java.lang.Object ctx,
java.lang.String[] params)
Returns true if current User is in the Role. |
| Methods inherited from class com.redhat.rhn.common.security.acl.BaseHandler |
|---|
checkMonitoring, getAsLong |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public Access()
| Method Detail |
|---|
public boolean aclUidRole(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclUserRole(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclIs(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclOrgChannelFamily(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclSystemFeature(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclSystemHasVirtualizationEntitlement(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context map to pass in.params - Parameters to use to fetch from context.
public boolean aclSystemHasManagementEntitlement(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context map to pass in.params - Parameters to use to fetch from context.
public boolean aclSystemIsInSSM(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context map to pass in.params - Parameters to use to fetch from context.
public boolean aclOrgIsPayingCustomer(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context. Not used
for this method.
public boolean aclOrgEntitlement(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Used to specify the Role label
public boolean aclOrgRole(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Used to specify the Role label
public boolean aclUserAuthenticated(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Not used
public boolean aclIsSolaris(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclOrgProxyEvrAtLeast(java.lang.Object ctx,
java.lang.String[] params)
ctx - Context Map to pass inparams - Parameters to use to fetch from Context
public boolean aclProbeSuiteAccess(java.lang.Object ctx,
java.lang.String[] p)
suite_id
ctx - acl contextp - parameters for acl (ignored)
true if the user has access to the suite
public boolean aclNeedFirstUser(java.lang.Object ctx,
java.lang.String[] p)
ctx - acl contextp - parameters for acl (ignored)
public boolean aclCanAccessChannel(java.lang.Object ctx,
java.lang.String[] params)
ctx - acl contextparams - params need the channel id as param 0
public boolean aclUserCanManageChannels(java.lang.Object ctx,
java.lang.String[] params)
ctx - acl contextparams - parameters for acl (ignored)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||