com.redhat.rhn.common.security.acl
Class AclFactory

java.lang.Object
  extended by com.redhat.rhn.common.security.acl.AclFactory

public class AclFactory
extends java.lang.Object

Class to assist with creating Acls. This Factory will setup the Acl class as well as setup the default as well as the mixin AclHandlers associated with the Acl. TODO - consider caching the Acl instances within the Factory so we don't have to instantiate new ones each time. Not sure how to do this yet.


Method Summary
 Acl getAcl(java.lang.String mixinsIn)
          Get an instance of an Acl
static AclFactory getInstance()
          Get the running instance of the AclFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static AclFactory getInstance()
Get the running instance of the AclFactory

Returns:
The AclFactory singleton

getAcl

public Acl getAcl(java.lang.String mixinsIn)
Get an instance of an Acl

Parameters:
mixinsIn - the String with a comma separated list of classnames
Returns:
Acl created