Tabnine Logo
ResourceProperties$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
it.tidalwave.northernwind.core.model.ResourceProperties$Builder

Best Java code snippets using it.tidalwave.northernwind.core.model.ResourceProperties$Builder.build (Showing top 7 results out of 315)

origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

@Override
public void setNode (final @Nonnull SiteNode node)
 {
  nodeHolder.set(node);
  dynamicNodePropertiesHolder.set(modelFactory.createProperties().build());
 }
origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

  @Override @Nonnull
  public ResourceProperties getContentProperties()
   {
    if (contentHolder.get() == null) // FIXME: should never occur
     {
      log.warn("NO CONTENT IN CONTEXT");
//            Thread.dumpStack(); // FIXME
      return modelFactory.createProperties().build();
     }

    return contentHolder.get().getProperties();
   }

origin: it.tidalwave.northernwind/it-tidalwave-northernwind-frontend-components

/*******************************************************************************************************************
 *
 * {@inheritDoc}
 *
 ******************************************************************************************************************/
@Override @Nonnull
public ResourceProperties getExtraViewProperties (final @Nonnull Id viewId)
 {
  return modelFactory.createProperties().withId(viewId).build();
 }
origin: it.tidalwave.northernwind/it-tidalwave-northernwind-core-default

ResourceProperties properties = modelFactory.createProperties().withPropertyResolver(propertyResolver).build();
    @Cleanup final InputStream is = propertyFile.getInputStream();
    final ResourceProperties tempProperties =
      modelFactory.createProperties().build().as(Unmarshallable).unmarshal(is);
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-model

 /*******************************************************************************************************************
  *
  *
  ******************************************************************************************************************/
 @Nonnull
 private ResourceProperties loadProperties()
  throws IOException
  {
   final ResourceFile file = getFile();
   log.debug("loadProperties() for {}", file.getPath().asString());
   ResourceProperties properties = modelFactory.createProperties().withPropertyResolver(propertyResolver).build();
   try
    {
     final ResourceFile propertyFile = file.findChildren().withName("Properties.xml").result(); // FIXME reuse the inheritance helper
 //        log.trace(">>>> reading properties from {} ({})...", propertyFile.getPath().asString(), locale);
     @Cleanup final InputStream is = propertyFile.getInputStream();
     final ResourceProperties tempProperties =
 //            modelFactory.createProperties().build().as(Unmarshallable).unmarshal(is);
         modelFactory.createProperties().withPropertyResolver(propertyResolver).build().as(Unmarshallable).unmarshal(is);
 //        log.trace(">>>>>>>> read properties: {} ({})", tempProperties, locale);
     properties = properties.merged(tempProperties);
    }
   catch (NotFoundException e)
    {
     // ok, no properties
    }
   return properties;
  }
}
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-ui-content-editor

/*******************************************************************************************************************
 *
 ******************************************************************************************************************/
@BeforeMethod
public void setup()
 throws IOException
 {
  ContextManager.Locator.set(new DefaultContextManagerProvider());
  modelFactory = new ModelFactorySupport()
   {
    @Override @Nonnull
    public ResourceProperties build (final @Nonnull ResourceProperties.Builder builder)
     {
      return new DefaultResourceProperties(builder);
     }
   };
  properties = modelFactory.createProperties().build().withProperty(PROPERTY_1, ORIGINAL_PROPERTY_1_VALUE)
                            .withProperty(PROPERTY_2, ORIGINAL_PROPERTY_2_VALUE);
  callback = mock(UpdateCallback.class);
  underTest = new ResourcePropertiesBinder(properties);
 }
origin: it.tidalwave.northernwind.rca/it-tidalwave-northernwind-rca-ui-commons

@BeforeClass
public void prepareProperties()
 {
  factory = new AdminModelFactory();
  properties = factory.createProperties().build()
      .withProperty(Properties.PROPERTY_CREATION_TIME2, new DateTime(1342536534636L))
      .withProperty(Properties.PROPERTY_TITLE, "the title");
  PropertyUtilities.setLocale(Locale.UK);
  PropertyUtilities.setZone(DateTimeZone.forID("CET"));
 }
it.tidalwave.northernwind.core.modelResourceProperties$Builderbuild

Popular methods of ResourceProperties$Builder

  • withPropertyResolver
  • getId
  • getPropertyResolver
  • getValues
  • withId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now