[jboss-jira] [JBoss JIRA] (AS7-4258) Add option to :read-resource to only get the base attributes, but nothing at lover levels

Heiko Rupp (JIRA) jira-events at lists.jboss.org
Thu Mar 22 09:30:47 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678646#comment-12678646 ] 

Heiko Rupp commented on AS7-4258:
---------------------------------

My requirement would be only for attributes 

[standalone at localhost:9999 /] :read-resource(recursive-depth=0)             
{
    "outcome" => "success",
    "result" => {
        "management-major-version" => 1,
        "management-minor-version" => 1,
        "name" => "dhcp-0-204",
        "namespaces" => [],
        "path" => undefined,
        "product-name" => undefined,
        "product-version" => undefined,
        "profile-name" => undefined,
        "release-codename" => "Brontes",
        "release-version" => "7.1.1.Final",
        "schema-locations" => [],
        "system-property" => undefined,

But it would be ok to include the children types.
                
> Add option to :read-resource to only get the base attributes, but nothing at lover levels
> -----------------------------------------------------------------------------------------
>
>                 Key: AS7-4258
>                 URL: https://issues.jboss.org/browse/AS7-4258
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 7.1.1.Final
>            Reporter: Heiko Rupp
>            Assignee: Brian Stansberry
>              Labels: rhq
>
> I want to read the release-name, release-version, name attributes . Either I need to 3 times call :read-attribute or I can use :read-resource.
> But :read-resource returns a lot more
> [standalone at localhost:9999 /] :read-resource(recursive-depth=0)             
> {
>     "outcome" => "success",
>     "result" => {
>         "management-major-version" => 1,
>         "management-minor-version" => 1,
>  ...
>         },
>         "deployment" => {"test-distributed.war" => undefined},
>         "extension" => {
>             "org.jboss.as.ejb3" => undefined,
> ...
>         },
>         "interface" => {
>             "unsecure" => undefined,
>             "public" => undefined,
>             "management" => undefined
>         },
>         "socket-binding-group" => {"standard-sockets" => undefined},
>         "subsystem" => {
>             "jca" => undefined,
> which is all not needed and just needs to be transferred over the wire and parsed on clients
> It would be good to have an option "base-only" that restricts :read-resource to the resource itself and does not show children information 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list