Right now the way to create or read permissions is not straightforward. The
APIs are really twisted. The fact that the permissions are stored in the
Registry is an implementation detail. Users should not be calling Registry
APIs to deal with permissions. We have users interested
in programmatically creating their permissions. Ideally, it would be great
to have a simple API like the following:

public final class PermissionsUtil {


public void createPermission(String permissionKey, List<UserRole> roles);

public void addRolesToPermission(String permissionKey, List<UserRole>
roles);

public void removeRolesFromPermission(String permissionKey, List<UserRole>
roles);

public void deletePermission(String permissionKey);

public List<UserRole> getRolesWithPermission(String permissionKey);

public Permission getPermission(String permissionKey);

}


public class Permission {

     private String permissionKey;
     private List<UserRole> userRoles;

}


Can somebody own this task?

-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to