public AdminAclRule RegisterACLRule(
     string ruleName,
     AclAccessType serviceAclAccess,
     AclAccessType orgAccess,
     AclAccessType principalAccess)
 {
     try
     {
         AclRuleType aclRuleParams = new AclRuleType();
         aclRuleParams.name = ruleName;
         aclRuleParams.ServiceResourceAccess = serviceAclAccess;
         aclRuleParams.OrganizationAccess    = orgAccess;
         aclRuleParams.PrincipalAccess       = principalAccess;
         return(this.RegisterAdminAclRule(aclRuleParams));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 2
0
 /// <remarks/>
 public System.IAsyncResult BeginAclHasAccessGranted(string objectId, AclAccessType accessRequested, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("AclHasAccessGranted", new object[] {
                 objectId,
                 accessRequested}, callback, asyncState);
 }
Exemplo n.º 3
0
 /// <remarks/>
 public void AclHasAccessGrantedAsync(string objectId, AclAccessType accessRequested)
 {
     this.AclHasAccessGrantedAsync(objectId, accessRequested, null);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void AclHasAccessGrantedAsync(string objectId, AclAccessType accessRequested, object userState)
 {
     if ((this.AclHasAccessGrantedOperationCompleted == null)) {
         this.AclHasAccessGrantedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAclHasAccessGrantedOperationCompleted);
     }
     this.InvokeAsync("AclHasAccessGranted", new object[] {
                 objectId,
                 accessRequested}, this.AclHasAccessGrantedOperationCompleted, userState);
 }
Exemplo n.º 5
0
 public bool AclHasAccessGranted(string objectId, AclAccessType accessRequested)
 {
     object[] results = this.Invoke("AclHasAccessGranted", new object[] {
                 objectId,
                 accessRequested});
     return ((bool)(results[0]));
 }