Codota Logo
KieServerTypePermission
Code IndexAdd Codota to your IDE (free)

How to use
KieServerTypePermission
in
org.kie.server.api.marshalling.xstream

Best Java code snippets using org.kie.server.api.marshalling.xstream.KieServerTypePermission (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: kiegroup/droolsjbpm-integration

public KieServerTypePermission(Set<Class<?>> classes) {
  super(patterns());
  this.classes = classes == null ? new HashSet<>() : classes;
}
origin: kiegroup/droolsjbpm-integration

@Test
public void testExplicitlyGivenClasses() {
  Set<Class<?>> classes = new HashSet<>();
  classes.add(Top.class);
  KieServerTypePermission permission = new KieServerTypePermission(classes);
  
  assertTrue(permission.allows(Top.class));
  
}

origin: kiegroup/droolsjbpm-integration

this.xstream.denyTypes(voidDeny);
this.xstream.addPermission(new KieServerTypePermission(classes));
origin: kiegroup/droolsjbpm-integration

  @Test
  public void testSystemPropertyGivenClasses() {
    System.setProperty(SYSTEM_XSTREAM_ENABLED_PACKAGES, "org.kie.server.api.marshalling.objects.Top,org.kie.server.api.marshalling.objects.Message");
    
    Set<Class<?>> classes = new HashSet<>();    
    KieServerTypePermission permission = new KieServerTypePermission(classes);
    
    assertTrue(permission.allows(Top.class));
    assertTrue(permission.allows(Message.class));
    assertFalse(permission.allows(AnotherMessage.class));
  }
}
origin: kiegroup/droolsjbpm-integration

@Test
public void testDefaultAcceptableClasses() {
  
  KieServerTypePermission permission = new KieServerTypePermission(new HashSet<>());
  
  assertTrue(permission.allows(KieContainerResource.class));
  assertTrue(permission.allows(ProcessDefinition.class));
  assertTrue(permission.allows(EmailNotification.class));
  assertTrue(permission.allows(CaseDefinition.class));
  assertTrue(permission.allows(DMNModelInfo.class));
}

origin: kiegroup/droolsjbpm-integration

@Test
public void testDefaultForbiddenClasses() {
  
  KieServerTypePermission permission = new KieServerTypePermission(new HashSet<>());
  
  assertFalse(permission.allows(Top.class));
  
}

org.kie.server.api.marshalling.xstreamKieServerTypePermission

Javadoc

Kie Server specific type permission implementation that allows:
  • org.kie.server.api.model classes (including subpackages)
  • classes that come from kjar or its dependencies (were loaded by kjar class loader)
  • set of classes explicitly given when constructing this instance
  • optionally defined by wildcard that is given via system property: org.kie.server.xstream.enabled.packages (comma separated list of wildcard expressions)

Most used methods

  • <init>
  • allows
  • patterns

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now