Tabnine Logo
PageList.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
org.rhq.core.domain.util.PageList

Best Java code snippets using org.rhq.core.domain.util.PageList.clear (Showing top 2 results out of 315)

origin: org.rhq/rhq-core-domain

public void setValues(ArrayList<E> values) {
  this.clear();
  this.addAll(values);
}
origin: org.rhq/rhq-enterprise-server

public PageList<Subject> findSubjectsByCriteria(Subject subject, SubjectCriteria criteria) {
  CriteriaQueryGenerator generator = new CriteriaQueryGenerator(subject, criteria);
  CriteriaQueryRunner<Subject> queryRunner = new CriteriaQueryRunner<Subject>(criteria, generator, entityManager);
  PageList<Subject> subjects = queryRunner.execute();
  boolean canViewUsers = (authorizationManager.isSystemSuperuser(subject)
    || authorizationManager.hasGlobalPermission(subject, Permission.MANAGE_SECURITY) || authorizationManager
    .hasGlobalPermission(subject, Permission.VIEW_USERS));
  if (!canViewUsers) {
    if (subjects.contains(subject)) {
      Subject attachedSubject = subjects.get(subjects.indexOf(subject));
      subjects.clear();
      subjects.add(attachedSubject);
    } else {
      subjects.clear();
    }
    subjects.setTotalSize(subjects.size());
  }
  return subjects;
}
org.rhq.core.domain.utilPageListclear

Popular methods of PageList

  • size
  • <init>
    Using this constructor one obtains a PageList instance that contains no data but it has an associate
  • get
  • getTotalSize
    Returns the total size of the "master list" that this page is a subset of.Note: This method merely r
  • addAll
  • getPageControl
  • isEmpty
  • add
  • contains
  • containsAll
  • indexOf
  • iterator
  • indexOf,
  • iterator,
  • remove,
  • setTotalSize

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JButton (javax.swing)
  • Top PhpStorm 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