| |
|
| java.lang.Object com.pentaho.security.acls.AclPublisher
Constructor Summary | |
public | AclPublisher(List defAcls) Constructor that allows overriding the source of the default access
control list. | public | AclPublisher() Default constructor. |
AclPublisher | public AclPublisher(List defAcls)(Code) | | Constructor that allows overriding the source of the default access
control list. This constructor is mainly used from test cases.
Parameters: defAcls - |
AclPublisher | public AclPublisher()(Code) | | Default constructor. This constructor reads the default access controls
from the pentaho.xml. The pentaho.xml needs to have a section similar to
the following:
<acl-publisher>
<!--
These acls are used when
publishing from the file system. Every folder
gets these ACLS.
Authenticated is a "default" role that everyone
gets when they're authenticated
(be sure to setup your bean xml properly
for this to work).
-->
<default-acls>
<acl-entry role="Admin"
acl="7" /> <!-- Admin users get all authorities -->
<acl-entry role="cto"
acl="7" /> <!-- CTO gets everything -->
<acl-entry role="dev"
acl="6" /> <!-- Dev gets execute/subscribe -->
<acl-entry
role="Authenticated" acl="2" /> <!-- Authenticated users get
execute only -->
</default-acls>
</acl-publisher>
|
getDefaultAclList | public List getDefaultAclList()(Code) | | Returns the list of default access controls. The returned list should be
newly created, not simply the list inside the class. In other words, this
should construct a new list, and all the default acls to it.
A new list containing all the default access controls. |
publishDefaultAcls | public void publishDefaultAcls(IAclSolutionFile rootFile)(Code) | | This method is called from the RDBMS repository publish method when
publishing a file-based solution to the RDBMS repository. This
implementation recurses through all the children of the specified
IAclSolutionFile, and applies the default access controls
only to the
Parameters: rootFile - See Also: IAclSolutionFile |
|
|
|