Blue Mind
Release 1.0

net.bluemind.core.client.rbac
Class RoleBasedAccessControlClient

java.lang.Object
  extended by net.bluemind.core.client.impl.AbstractClientImpl
      extended by net.bluemind.core.client.rbac.RoleBasedAccessControlClient
All Implemented Interfaces:
IRoleBasedAccessControl, ISyncClient

public class RoleBasedAccessControlClient
extends AbstractClientImpl
implements IRoleBasedAccessControl


Field Summary
 
Fields inherited from class net.bluemind.core.client.impl.AbstractClientImpl
logger
 
Constructor Summary
RoleBasedAccessControlClient(java.lang.String backendUrl)
           
 
Method Summary
 java.util.Set<java.lang.String> getAllowedRpcs(AccessToken at)
           
 java.util.Set<java.lang.String> getAllowedRpcs(AccessToken at, java.lang.Integer userId)
           
 java.util.Set<java.lang.String> getAvailableHandlers(AccessToken at)
           
 ResultList<Group> getProfiles(AccessToken at)
           
 ResultList<Group> getProfiles(AccessToken at, java.lang.Integer domainId)
           
 java.util.List<Role> getRoles(AccessToken at)
           
 AccessToken login(java.lang.String login, java.lang.String password, java.lang.String origin)
           
 void logout(AccessToken at)
           
 void setRoles(AccessToken at, java.lang.Integer entityId, java.util.Set<Role> roles)
           
 
Methods inherited from class net.bluemind.core.client.impl.AbstractClientImpl
checkServerError, execute, executeStream, executeVoid, initParams, setToken, sudo, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleBasedAccessControlClient

public RoleBasedAccessControlClient(java.lang.String backendUrl)
Method Detail

getAllowedRpcs

public java.util.Set<java.lang.String> getAllowedRpcs(AccessToken at)
                                               throws ServerFault
Throws:
ServerFault

getAllowedRpcs

public java.util.Set<java.lang.String> getAllowedRpcs(AccessToken at,
                                                      java.lang.Integer userId)
                                               throws ServerFault
Specified by:
getAllowedRpcs in interface IRoleBasedAccessControl
Throws:
ServerFault

setRoles

public void setRoles(AccessToken at,
                     java.lang.Integer entityId,
                     java.util.Set<Role> roles)
              throws AuthFault,
                     ServerFault
Specified by:
setRoles in interface IRoleBasedAccessControl
Throws:
AuthFault
ServerFault

getRoles

public java.util.List<Role> getRoles(AccessToken at)
                              throws AuthFault,
                                     ServerFault
Specified by:
getRoles in interface IRoleBasedAccessControl
Throws:
AuthFault
ServerFault

getProfiles

public ResultList<Group> getProfiles(AccessToken at)
                              throws AuthFault,
                                     ServerFault
Throws:
AuthFault
ServerFault

getProfiles

public ResultList<Group> getProfiles(AccessToken at,
                                     java.lang.Integer domainId)
                              throws AuthFault,
                                     ServerFault
Specified by:
getProfiles in interface IRoleBasedAccessControl
Throws:
AuthFault
ServerFault

login

public AccessToken login(java.lang.String login,
                         java.lang.String password,
                         java.lang.String origin)
Specified by:
login in interface ISyncClient
Overrides:
login in class AbstractClientImpl

logout

public void logout(AccessToken at)
Specified by:
logout in interface ISyncClient
Overrides:
logout in class AbstractClientImpl

getAvailableHandlers

public java.util.Set<java.lang.String> getAvailableHandlers(AccessToken at)
                                                     throws ServerFault
Specified by:
getAvailableHandlers in interface IRoleBasedAccessControl
Throws:
ServerFault

Blue Mind
Release 1.0