Examples of ResourceType


Examples of de.bastiankrol.startexplorer.ResourceType

      CommandConfig commandConfig)
  {
    Map<String, Object> export = new LinkedHashMap<String, Object>();
    export.put(KEY_VERSION, VERSION);
    export.put(KEY_COMMAND, commandConfig.getCommand());
    ResourceType resourceType = commandConfig.getResourceType();
    if (resourceType != null)
    {
      export.put(KEY_RESOURCE_TYPE, resourceType.name());
    }
    else
    {
      export.put(KEY_RESOURCE_TYPE, null);
    }
View Full Code Here

Examples of edu.isi.karma.linkedapi.server.ResourceType

    logger.debug("Id: " + serviceId);
    logger.debug("Format: " + format);
    logger.debug("Resource: " + resource);

    ResourceType resourceType = ResourceType.Service;
    if (resource != null && resource.trim().toString().equalsIgnoreCase("input"))
      resourceType = ResourceType.Input;
    if (resource != null && resource.trim().toString().equalsIgnoreCase("output"))
      resourceType = ResourceType.Output;
View Full Code Here

Examples of edu.ubb.warp.model.ResourceType

      list.addContainerProperty("Type ID", String.class, null);
      list.addContainerProperty("Type Name", String.class, null);
      // list.setVisibleColumns(new Object[] { "Type Name" });
      for (int i = 0; i < resArray.size(); i++) {

        ResourceType resType = resArray.get(i);
        list.addItem(
            new Object[] {
                Integer.toString(resType.getResourceTypeID()),
                resType.getResourceTypeName() }, i);
      }

    } catch (DAOException e) {
      e.printStackTrace();
      me.getApplication().getMainWindow()
View Full Code Here

Examples of models.enumeration.ResourceType

* @see {@link controllers.annotation.IsAllowed}
*/
public class IsAllowedAction extends AbstractProjectCheckAction<IsAllowed> {
    @Override
    protected Result call(Project project, Context context, PathParser parser) throws Throwable {
        ResourceType resourceType = this.configuration.resourceType();
        ResourceConvertible resourceObject = Resource.getResourceObject(parser, project, resourceType);
        Operation operation = this.configuration.value();

        if(resourceObject == null) {
            return AccessLogger.log(context.request(),
                    notFound(ErrorViews.NotFound.render("error.notfound", project, resourceType.resource())) , null);
        }

        if(!AccessControl.isAllowed(UserApp.currentUser(), resourceObject.asResource(), operation)) {
            return AccessLogger.log(context.request(),
                    forbidden(ErrorViews.Forbidden.render("error.forbidden", project)), null);
View Full Code Here

Examples of net.fckeditor.handlers.ResourceType

    else if (!UtilsFile.isValidPath(context.getCurrentFolderStr()))
      getResponse = GetResponse.getInvalidCurrentFolderError();
    else {
     
      // in contrast to doPost the referrer has to send an explicit type
      ResourceType type = context.getResourceType();
      Command command = context.getCommand();
     
      // check permissions for user action
      if ((command.equals(Command.GET_FOLDERS) || command.equals(Command.GET_FOLDERS_AND_FILES))
          && !RequestCycleHandler.isGetResourcesEnabled(request))
View Full Code Here

Examples of org.apache.aries.application.modelling.ResourceType

    logger.debug(LOG_ENTRY, "ModelledBundleResource", new Object[]{r, mm, mh});
    resource = r;
    modellingManager = mm;
    modellingHelper = mh;
    List<ExportedBundle> exportedBundles = new ArrayList<ExportedBundle>();
    ResourceType thisResourceType = ResourceType.BUNDLE;

    // We'll iterate through our Capabilities a second time below. We do this since we later
    // build an ExportedPackageImpl for which 'this' is the ModelledResource.
    for (Capability cap : r.getCapabilities()) {
      String capName = cap.getName();
View Full Code Here

Examples of org.apache.cloudstack.storage.command.DownloadCommand.ResourceType

        String resourcePath = dnld.getInstallPathPrefix(); // path with mount
                                                           // directory
        String finalResourcePath = dnld.getTmpltPath(); // template download
                                                        // path on secondary
                                                        // storage
        ResourceType resourceType = dnld.getResourceType();

        /*
        // once template path is set, remove the parent dir so that the template
        // is installed with a relative path
        String finalResourcePath = "";
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.api.ResourceType

          throw new SemanticException("Expected 2 child nodes of TOK_RESOURCE_URI but found "
              + resNode.getChildCount());
        }
        ASTNode resTypeNode = (ASTNode) resNode.getChild(0);
        ASTNode resUriNode = (ASTNode) resNode.getChild(1);
        ResourceType resourceType = getResourceType(resTypeNode);
        resources.add(new ResourceUri(resourceType, PlanUtils.stripQuotes(resUriNode.getText())));
      }
    }

    return resources;
View Full Code Here

Examples of org.apache.helix.api.config.ResourceConfig.ResourceType

  static Resource createResource(ResourceId resourceId,
      ResourceConfiguration resourceConfiguration, IdealState idealState,
      ExternalView externalView, ResourceAssignment resourceAssignment) {
    UserConfig userConfig;
    RebalancerContext rebalancerContext = null;
    ResourceType type = ResourceType.DATA;
    if (resourceConfiguration != null) {
      userConfig = resourceConfiguration.getUserConfig();
      type = resourceConfiguration.getType();
    } else {
      userConfig = new UserConfig(Scope.resource(resourceId));
View Full Code Here

Examples of org.apache.jackrabbit.webdav.property.ResourceType

        if (getDisplayName() != null) {
            properties.add(new DefaultDavProperty(DavPropertyName.DISPLAYNAME, getDisplayName()));
        }
        if (isCollection()) {
            properties.add(new ResourceType(ResourceType.COLLECTION));
            // Windows XP support
            properties.add(new DefaultDavProperty(DavPropertyName.ISCOLLECTION, "1"));
        } else {
            properties.add(new ResourceType(ResourceType.DEFAULT_RESOURCE));
            // Windows XP support
            properties.add(new DefaultDavProperty(DavPropertyName.ISCOLLECTION, "0"));
        }

        /* set current lock information. If no lock is set to this resource,
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.