FrameAppWS

<back to all web services

ArbolPermisosPpalRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/MenuPrincipal
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ArbolPermisosPpalRQ
    {
        public String Usuario = null;
        public Integer CodSistema = null;
        public Integer CodEmpresa = null;
        public Lenguajes Lenguaje = null;
        
        public String getUsuario() { return Usuario; }
        public ArbolPermisosPpalRQ setUsuario(String value) { this.Usuario = value; return this; }
        public Integer getCodSistema() { return CodSistema; }
        public ArbolPermisosPpalRQ setCodSistema(Integer value) { this.CodSistema = value; return this; }
        public Integer getCodEmpresa() { return CodEmpresa; }
        public ArbolPermisosPpalRQ setCodEmpresa(Integer value) { this.CodEmpresa = value; return this; }
        public Lenguajes getLenguaje() { return Lenguaje; }
        public ArbolPermisosPpalRQ setLenguaje(Lenguajes value) { this.Lenguaje = value; return this; }
    }

    public static enum Lenguajes
    {
        Es,
        Pt,
        En;
    }

    public static class ArbolPermisosPpalRS
    {
        public Integer CodSistema = null;
        public Integer CodEmpresa = null;
        public ArrayList<PermisosModulos> Modulos = null;
        public Lenguajes Lenguaje = null;
        
        public Integer getCodSistema() { return CodSistema; }
        public ArbolPermisosPpalRS setCodSistema(Integer value) { this.CodSistema = value; return this; }
        public Integer getCodEmpresa() { return CodEmpresa; }
        public ArbolPermisosPpalRS setCodEmpresa(Integer value) { this.CodEmpresa = value; return this; }
        public ArrayList<PermisosModulos> getModulos() { return Modulos; }
        public ArbolPermisosPpalRS setModulos(ArrayList<PermisosModulos> value) { this.Modulos = value; return this; }
        public Lenguajes getLenguaje() { return Lenguaje; }
        public ArbolPermisosPpalRS setLenguaje(Lenguajes value) { this.Lenguaje = value; return this; }
    }

    public static class PermisosModulos
    {
        public BigDecimal CodModulo = null;
        public String Nombre = null;
        public Boolean SuperUsuario = null;
        public Integer Orden = null;
        public ArrayList<PermisosItems> MenuPrincipal = null;
        
        public BigDecimal getCodModulo() { return CodModulo; }
        public PermisosModulos setCodModulo(BigDecimal value) { this.CodModulo = value; return this; }
        public String getNombre() { return Nombre; }
        public PermisosModulos setNombre(String value) { this.Nombre = value; return this; }
        public Boolean isSuperUsuario() { return SuperUsuario; }
        public PermisosModulos setSuperUsuario(Boolean value) { this.SuperUsuario = value; return this; }
        public Integer getOrden() { return Orden; }
        public PermisosModulos setOrden(Integer value) { this.Orden = value; return this; }
        public ArrayList<PermisosItems> getMenuPrincipal() { return MenuPrincipal; }
        public PermisosModulos setMenuPrincipal(ArrayList<PermisosItems> value) { this.MenuPrincipal = value; return this; }
    }

    public static class PermisosItems
    {
        public BigDecimal CodigoMenu = null;
        public BigDecimal CodigoPadre = null;
        public String Nombre = null;
        public String Descripcion = null;
        public Boolean TienePermiso = null;
        public String TipoEjecucion = null;
        public String IDEjecucion = null;
        public String InfoAdicional = null;
        public Integer Orden = null;
        public ArrayList<PermisosItems> Items = null;
        public String Icono = null;
        
        public BigDecimal getCodigoMenu() { return CodigoMenu; }
        public PermisosItems setCodigoMenu(BigDecimal value) { this.CodigoMenu = value; return this; }
        public BigDecimal getCodigoPadre() { return CodigoPadre; }
        public PermisosItems setCodigoPadre(BigDecimal value) { this.CodigoPadre = value; return this; }
        public String getNombre() { return Nombre; }
        public PermisosItems setNombre(String value) { this.Nombre = value; return this; }
        public String getDescripcion() { return Descripcion; }
        public PermisosItems setDescripcion(String value) { this.Descripcion = value; return this; }
        public Boolean isTienePermiso() { return TienePermiso; }
        public PermisosItems setTienePermiso(Boolean value) { this.TienePermiso = value; return this; }
        public String getTipoEjecucion() { return TipoEjecucion; }
        public PermisosItems setTipoEjecucion(String value) { this.TipoEjecucion = value; return this; }
        public String getIdEjecucion() { return IDEjecucion; }
        public PermisosItems setIdEjecucion(String value) { this.IDEjecucion = value; return this; }
        public String getInfoAdicional() { return InfoAdicional; }
        public PermisosItems setInfoAdicional(String value) { this.InfoAdicional = value; return this; }
        public Integer getOrden() { return Orden; }
        public PermisosItems setOrden(Integer value) { this.Orden = value; return this; }
        public ArrayList<PermisosItems> getItems() { return Items; }
        public PermisosItems setItems(ArrayList<PermisosItems> value) { this.Items = value; return this; }
        public String getIcono() { return Icono; }
        public PermisosItems setIcono(String value) { this.Icono = value; return this; }
    }

}

Java ArbolPermisosPpalRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Usuarios/Permisos/MenuPrincipal HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ArbolPermisosPpalRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <CodEmpresa>0</CodEmpresa>
  <CodSistema>0</CodSistema>
  <Lenguaje>ES</Lenguaje>
  <Usuario>String</Usuario>
</ArbolPermisosPpalRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArbolPermisosPpalRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <CodEmpresa>0</CodEmpresa>
  <CodSistema>0</CodSistema>
  <Lenguaje>ES</Lenguaje>
  <Modulos>
    <PermisosModulos>
      <CodModulo>0</CodModulo>
      <MenuPrincipal>
        <PermisosItems>
          <CodigoMenu>0</CodigoMenu>
          <CodigoPadre>0</CodigoPadre>
          <Descripcion>String</Descripcion>
          <IDEjecucion>String</IDEjecucion>
          <Icono>String</Icono>
          <InfoAdicional>String</InfoAdicional>
          <Items>
            <PermisosItems>
              <CodigoMenu>0</CodigoMenu>
              <CodigoPadre>0</CodigoPadre>
              <Descripcion>String</Descripcion>
              <IDEjecucion>String</IDEjecucion>
              <Icono>String</Icono>
              <InfoAdicional>String</InfoAdicional>
              <Items>
                <PermisosItems>
                  <CodigoMenu>0</CodigoMenu>
                  <CodigoPadre>0</CodigoPadre>
                  <Descripcion>String</Descripcion>
                  <IDEjecucion>String</IDEjecucion>
                  <Icono>String</Icono>
                  <InfoAdicional>String</InfoAdicional>
                  <Items i:nil="true" />
                  <Nombre>String</Nombre>
                  <Orden>0</Orden>
                  <TienePermiso>false</TienePermiso>
                  <TipoEjecucion>String</TipoEjecucion>
                </PermisosItems>
              </Items>
              <Nombre>String</Nombre>
              <Orden>0</Orden>
              <TienePermiso>false</TienePermiso>
              <TipoEjecucion>String</TipoEjecucion>
            </PermisosItems>
          </Items>
          <Nombre>String</Nombre>
          <Orden>0</Orden>
          <TienePermiso>false</TienePermiso>
          <TipoEjecucion>String</TipoEjecucion>
        </PermisosItems>
      </MenuPrincipal>
      <Nombre>String</Nombre>
      <Orden>0</Orden>
      <SuperUsuario>false</SuperUsuario>
    </PermisosModulos>
  </Modulos>
</ArbolPermisosPpalRS>