Package org.jayasoft.woj.common.model.content.Organisation.Module

Examples of org.jayasoft.woj.common.model.content.Organisation.Module.Revision


    Module module = getModule(moduleName);
    if(module == null) {
      module = new Module(moduleName);
      addModule(module);
    }
    Revision rev = module.getRevision(revision);
    if(rev == null) {
      rev = new Revision(revision);
    }
    module.addRevision(rev);
  }
View Full Code Here


    public Revision[] getRevisions() {
      List list = new ArrayList(revisions);
      Collections.sort(list, new Comparator() {
        public int compare(Object o1, Object o2) {
          if (o1 instanceof Revision && o2 instanceof Revision ) {
            Revision m1 = (Revision) o1;
            Revision m2 = (Revision) o2;
            return m1.getName().compareTo(m2.getName());
          }
          return 0;
        }
      });
      return (Revision[]) list.toArray(new Revision[list.size()]);
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.model.content.Organisation.Module.Revision

Copyright © 2018 www.massapicom. 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.