Examples of ResourceMeta


Examples of org.apache.myfaces.shared_tomahawk.resource.ResourceMeta

            else
            {
                for (ResourceLoader loader : getResourceHandlerSupport()
                        .getResourceLoaders())
                {
                    ResourceMeta resourceMeta = deriveResourceMeta(loader,
                            resourceName, libraryName);
       
                    if (resourceMeta != null)
                    {
                        resource = new ResourceImpl(resourceMeta, loader,
View Full Code Here

Examples of org.apache.myfaces.shared_tomahawk.resource.ResourceMeta

            String resourceName, String libraryName)
    {
        String localePrefix = getLocalePrefixForLocateResource();
        String resourceVersion = null;
        String libraryVersion = null;
        ResourceMeta resourceId = null;
       
        //1. Try to locate resource in a localized path
        if (localePrefix != null)
        {
            if (null != libraryName)
View Full Code Here

Examples of org.zanata.apicompat.rest.dto.resource.ResourceMeta

            @Override
            protected void onResponse(ClientResponse response) {
                assertThat(response.getStatus(), is(Status.OK.getStatusCode())); // 200
                assertJsonUnmarshal(response, ResourceMeta.class);

                ResourceMeta resMeta =
                        jsonUnmarshal(response, ResourceMeta.class);
                assertThat(resMeta.getName(), is("my/path/document-2.txt"));
                assertThat(resMeta.getType(), is(ResourceType.FILE));
                assertThat(resMeta.getLang(), is(LocaleId.EN_US));
                assertThat(resMeta.getContentType(), is(ContentType.TextPlain));
            }
        }.run();
    }
View Full Code Here

Examples of org.zanata.rest.dto.resource.ResourceMeta

        List<ResourceMeta> resources = new ArrayList<ResourceMeta>();

        for (HDocument doc : hProjectIteration.getDocuments().values()) {

            ResourceMeta resource = new ResourceMeta();
            resourceUtils.transferToAbstractResourceMeta(doc, resource);
            resources.add(resource);
        }

        Type genericType = new GenericType<List<ResourceMeta>>() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.