Dashboard Builder Security 6.2.0.CR1

org.jboss.dashboard.security
Class PermissionManager

java.lang.Object
  extended by org.jboss.dashboard.security.PermissionManager

@ApplicationScoped
@Named(value="permissionManager")
public class PermissionManager
extends Object


Constructor Summary
PermissionManager()
           
 
Method Summary
 PermissionDescriptor createNewItem()
           
 List<PermissionDescriptor> find(List<Long> permissionIds)
          Recover the Permissions by the Ids indicated in the List parameter
 PermissionDescriptor find(Principal prpal, Permission perm)
          Find the permission descriptor for given principal and permission
 List<PermissionDescriptor> find(String resourceName)
          Recover the Permissions for the given permission resource name
 List<PermissionDescriptor> find(String permissionClass, String permissionResource)
          Recover Permissions for the given permission class and resource name
 List<PermissionDescriptor> find(String permissionClass, String permissionResource, Boolean includeReadOnly)
          Recover Permissions for the given permission class and resource name, including or excluding the ones marked as readonly
 PermissionDescriptor findPermissionDescriptorById(Long idPermission)
          Recover a Permission by its Id
 List<PermissionDescriptor> getAllInstances()
           
static PermissionManager lookup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionManager

public PermissionManager()
Method Detail

lookup

public static PermissionManager lookup()

createNewItem

public PermissionDescriptor createNewItem()

getAllInstances

public List<PermissionDescriptor> getAllInstances()
                                           throws Exception
Throws:
Exception

find

public PermissionDescriptor find(Principal prpal,
                                 Permission perm)
Find the permission descriptor for given principal and permission


find

public List<PermissionDescriptor> find(String resourceName)
                                throws Exception
Recover the Permissions for the given permission resource name

Throws:
Exception

find

public List<PermissionDescriptor> find(String permissionClass,
                                       String permissionResource)
Recover Permissions for the given permission class and resource name


find

public List<PermissionDescriptor> find(String permissionClass,
                                       String permissionResource,
                                       Boolean includeReadOnly)
Recover Permissions for the given permission class and resource name, including or excluding the ones marked as readonly


findPermissionDescriptorById

public PermissionDescriptor findPermissionDescriptorById(Long idPermission)
Recover a Permission by its Id


find

public List<PermissionDescriptor> find(List<Long> permissionIds)
Recover the Permissions by the Ids indicated in the List parameter


Dashboard Builder Security 6.2.0.CR1

Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.