WebLogic Integration


com.bea.wlpi.server.permission
Interface Permission


public interface Permission
extends javax.ejb.EJBObject

Provides permissions for interfaces within WLPI

Author:
Copyright © 2000, 2001 BEA Systems, Inc. All Rights Reserved.
See Also:
PermissionHome

Method Summary
 java.util.List getAllRolePermissions()
          This method returns a list of all the roles with their associated permissions.
 java.util.List getAllUserPermissions()
          This method returns a list of all the users with their associated permissions.
 java.util.List getAllUserPermissions(boolean getRoles)
          This method returns a list of all the users with their associated permissions.
 RolePermissionInfo getRolePermissions(java.lang.String rolename, java.lang.String orgID)
          This method allows the retrieval of an individual RolePermissionInfo object based on the rolename.
 UserPermissionInfo getUserPermissions(java.lang.String username)
          This method allows the retrieval of an individual UserPermissionInfo object based on the username.
 UserPermissionInfo getUserPermissions(java.lang.String username, boolean getRoles)
          This method allows the retrieval of an individual UserPermissionInfo object based on the username.
 void setRolePermissions(java.util.List infos)
          This method allows the batch update of role permissions in the system.
 void setUserPermissions(java.util.List infos)
          This method allows the batch update of user permissions in the system.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getAllRolePermissions

public java.util.List getAllRolePermissions()
                                     throws java.rmi.RemoteException,
                                            WorkflowException
This method returns a list of all the roles with their associated permissions. Please note that this method is expensive and should not be used during runtime operations.

Returns:
A Java List of RolePermissionInfo objects for all roles
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0

setRolePermissions

public void setRolePermissions(java.util.List infos)
                        throws java.rmi.RemoteException,
                               WorkflowException
This method allows the batch update of role permissions in the system. Any number of roles can be updated in this way

Parameters:
List - Java List of RolePermissionInfo objects
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0

getAllUserPermissions

public java.util.List getAllUserPermissions()
                                     throws java.rmi.RemoteException,
                                            WorkflowException
This method returns a list of all the users with their associated permissions. By default, this method returns the roles that each user is a member of. Please note that this method is expensive and should not be used during runtime operations.

Returns:
A Java List of UserPermissionInfo objects for all users
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0

getAllUserPermissions

public java.util.List getAllUserPermissions(boolean getRoles)
                                     throws java.rmi.RemoteException,
                                            WorkflowException
This method returns a list of all the users with their associated permissions. Please note that this method is expensive and should not be used during runtime operations.

Parameters:
boolean - If false, do not return the associated roles, if true return the roles this user belongs to.
Returns:
A Java List of UserPermissionInfo objects for all users
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0

setUserPermissions

public void setUserPermissions(java.util.List infos)
                        throws java.rmi.RemoteException,
                               WorkflowException
This method allows the batch update of user permissions in the system. Any number of users can be updated in this way

Parameters:
List - Java List of UserPermissionInfo objects
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0

getUserPermissions

public UserPermissionInfo getUserPermissions(java.lang.String username)
                                      throws java.rmi.RemoteException,
                                             WorkflowException
This method allows the retrieval of an individual UserPermissionInfo object based on the username. Setting the value can still be done via the setUserPermissions( List infos ) method. By default, this method gets the roles the user is a member of.

Parameters:
String - The username to retrieve
Returns:
UserPermissionInfo object of the named user
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0
See Also:
setUserPermissions( List infos )

getUserPermissions

public UserPermissionInfo getUserPermissions(java.lang.String username,
                                             boolean getRoles)
                                      throws java.rmi.RemoteException,
                                             WorkflowException
This method allows the retrieval of an individual UserPermissionInfo object based on the username. Setting the value can still be done via the setUserPermissions( List infos ) method.

Parameters:
String - The username to retrieve
boolean - If false, do not return the associated roles, if true return the roles this user belongs to.
Returns:
UserPermissionInfo object of the named user
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0
See Also:
setUserPermissions( List infos )

getRolePermissions

public RolePermissionInfo getRolePermissions(java.lang.String rolename,
                                             java.lang.String orgID)
                                      throws java.rmi.RemoteException,
                                             WorkflowException
This method allows the retrieval of an individual RolePermissionInfo object based on the rolename. Setting the value can still be done via the setRolePermissions( List infos ) method.

Parameters:
String - The rolename to retrieve
String - The role organization
Returns:
RolePermissionInfo object of the named role
Throws:
java.rmi.RemoteException -  
WorkflowException -  
Since:
WebLogic Process Integrator 2.0
See Also:
setRolePermissions( List infos )

WebLogic Integration

WebLogic Integration (WLI)