public class RemoteAccess extends Object
Constructor and Description |
---|
RemoteAccess() |
Modifier and Type | Method and Description |
---|---|
AccessPermission |
add(RegistryPartner partner,
AccessPermission accessPermission)
Add access privileges for a user on this instance to enable access
to a (currently folder only) resource on a remote ICE instance
|
protected Permission |
createPermissionModel(AccessPermission accessPermission,
Folder folder,
Account account) |
protected RemoteAccessModel |
createRemoteAccessModel(AccessPermission accessPermission,
RemoteClientModel remoteClientModel,
Permission permission) |
protected RemoteClientModel |
getOrCreateRemoteClient(String remoteUserId,
RemotePartner remotePartner)
Checks if there is an existing client for the specified userId and remote partner.
|
AccountTransfer |
getRemoteUser(long remoteId,
String email) |
public AccessPermission add(RegistryPartner partner, AccessPermission accessPermission)
partner
- remote partner requesting addaccessPermission
- details of access privilege, including access token and user on this instance
that the permission is forIllegalArgumentException
- if the permission details is missing some required information or has invalid
information. e.g. the specified user does not exist on this ICE instancepublic AccountTransfer getRemoteUser(long remoteId, String email)
protected RemoteClientModel getOrCreateRemoteClient(String remoteUserId, RemotePartner remotePartner)
remoteUserId
- email address of remote userremotePartner
- remote partnerprotected Permission createPermissionModel(AccessPermission accessPermission, Folder folder, Account account)
protected RemoteAccessModel createRemoteAccessModel(AccessPermission accessPermission, RemoteClientModel remoteClientModel, Permission permission)
Copyright © 2017. All rights reserved.