Beispiel #1
0
        public RbacEngineWeb Get(string name)
        {
            RbacEngineWeb rbac = new RbacEngineWeb(Rbac.GetRbac(name));

            rbac.ConnectionString = string.Empty;
            return(rbac);
        }
Beispiel #2
0
        public RbacEngineWeb Get(int id)
        {
            RbacEngineWeb rbac = new RbacEngineWeb(Rbac.GetRbac(id));

            rbac.ConnectionString = string.Empty;
            return(rbac);
        }
Beispiel #3
0
        private void cbInstances_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cbInstances.SelectedIndex > -1)
            {
                propInstance.SelectedObject = new RbacEngineWeb(Rbac.GetRbac(((Rbac)cbInstances.SelectedItem).Name));
                tabPage2.Text = ((RbacEngineWeb)propInstance.SelectedObject).Name;

                ParseInline();
            }
        }
Beispiel #4
0
        public IHttpActionResult Refresh(int id)
        {
            Rbac rbac = Rbac.GetRbac(id);

            if (rbac != null)
            {
                rbac.Refresh();
                return(Ok());
            }
            else
            {
                return(BadRequest(id + " is not defined!"));
            }
        }
Beispiel #5
0
 public IHttpActionResult Delete(int id)
 {
     Rbac.Delete(Rbac.GetRbac(id));
     return(Ok());
 }