congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
OrganizationalEntity
Code IndexAdd Tabnine to your IDE (free)

How to use
OrganizationalEntity
in
org.kie.remote.jaxb.gen

Best Java code snippets using org.kie.remote.jaxb.gen.OrganizationalEntity (Showing top 7 results out of 315)

origin: org.kie.remote/kie-remote-client

private static org.kie.remote.jaxb.gen.OrganizationalEntity convertKieOrgEntToGenOrgEnt( OrganizationalEntity kieOrgEnt ) {
  if( kieOrgEnt != null ) {
    org.kie.remote.jaxb.gen.OrganizationalEntity genOrgEnt = new org.kie.remote.jaxb.gen.OrganizationalEntity();
    genOrgEnt.setId(kieOrgEnt.getId());
    if( kieOrgEnt instanceof Group ) {
      genOrgEnt.setType(Type.GROUP);
    } else if( kieOrgEnt instanceof User ) {
      genOrgEnt.setType(Type.USER);
    }
    return genOrgEnt;
  }
  return null;
}
origin: org.kie.remote/kie-remote-client

protected static List<OrganizationalEntity> convertGenOrgEngListToOrgEntList(List<org.kie.remote.jaxb.gen.OrganizationalEntity> genOrgEntList) { 
  List<OrganizationalEntity> orgEntList = new ArrayList<OrganizationalEntity>();
  if( genOrgEntList == null || genOrgEntList.isEmpty() ) { 
    return orgEntList;
  }
  for( org.kie.remote.jaxb.gen.OrganizationalEntity genOrgEnt : genOrgEntList ) { 
    if( Type.USER.equals(genOrgEnt.getType()) ) { 
      orgEntList.add( new GroupWrapper(genOrgEnt.getId()));
    } else if( Type.GROUP.equals(genOrgEnt.getType()) ) {  
      orgEntList.add( new UserWrapper(genOrgEnt.getId()));
    } else { 
      throw new IllegalStateException("Unknown organizational entity type: " + genOrgEnt.getType().toString() );
    }
  }
  return orgEntList;
}
origin: org.kie.remote/kie-remote-client

/**
 * Create an instance of {@link OrganizationalEntity }
 * 
 */
public OrganizationalEntity createOrganizationalEntity() {
  return new OrganizationalEntity();
}
origin: org.kie.remote/kie-remote-client

if( elem instanceof OrganizationalEntity ) { 
  OrganizationalEntity orgEnt = (OrganizationalEntity) elem;
  if( ((List) val).contains(new GroupImpl(orgEnt.getId()))) { 
    found = true; 
    break;
origin: org.kie.remote/kie-remote-jaxb-gen

/**
 * Create an instance of {@link OrganizationalEntity }
 * 
 */
public OrganizationalEntity createOrganizationalEntity() {
  return new OrganizationalEntity();
}
origin: org.kie.remote/kie-remote-client

genPeepAssigns.setTaskInitiatorId(genOrgEnt.getId());
origin: org.kie.remote/kie-remote-client

public static List<OrganizationalEntity> convertStringListToGenOrgEntList( List<String> orgEntIdList ) { 
  if( orgEntIdList == null ) { 
    return new ArrayList<OrganizationalEntity>(0);
  }
  List<OrganizationalEntity> genOrgEntList = new ArrayList<OrganizationalEntity>(orgEntIdList.size());
  for( String orgEntId : orgEntIdList ) {
    OrganizationalEntity orgEnt = new OrganizationalEntity();
    orgEnt.setId(orgEntId);
    orgEnt.setType(Type.USER);
  }
  return genOrgEntList;
}
org.kie.remote.jaxb.genOrganizationalEntity

Javadoc

Java class for organizational-entity complex type.

The following schema fragment specifies the expected content contained within this class.

 
<complexType name="organizational-entity"> 
<complexContent> 
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
<sequence> 
<element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> 
<element name="type" type="{}type" minOccurs="0"/> 
</sequence> 
</restriction> 
</complexContent> 
</complexType> 

Most used methods

  • <init>
  • getId
    Gets the value of the id property.
  • getType
    Gets the value of the type property.
  • setId
    Sets the value of the id property.
  • setType
    Sets the value of the type property.

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • setContentView (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
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