de.iai.ilcd.webgui.controller.ui
Class ComplianceUtilHandler

java.lang.Object
  extended by de.iai.ilcd.webgui.controller.ui.ComplianceUtilHandler

public class ComplianceUtilHandler
extends java.lang.Object

Handler for compliance system utilities, requires EL2!


Nested Class Summary
static class ComplianceUtilHandler.ComplianceSystemCode
          Enumeration with possible codes
 
Constructor Summary
ComplianceUtilHandler()
           
 
Method Summary
 ComplianceUtilHandler.ComplianceSystemCode getComplianceCode(java.util.Collection<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> collComplianceSystems)
          Get the highest priority compliance system code for the provided collection
 java.lang.String getComplianceCodeAsString(java.util.Collection<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> collComplianceSystems)
          Get the highest priority compliance system code for the provided collection
 java.util.List<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> getComplianceSetAsList(de.fzk.iai.ilcd.service.model.IDeclaresCompliance p)
          JSF components usually expect lists and not a set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplianceUtilHandler

public ComplianceUtilHandler()
Method Detail

getComplianceCode

public ComplianceUtilHandler.ComplianceSystemCode getComplianceCode(java.util.Collection<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> collComplianceSystems)
Get the highest priority compliance system code for the provided collection

Parameters:
collComplianceSystems - list of compliance systems
Returns:
highest priority compliance system code

getComplianceCodeAsString

public java.lang.String getComplianceCodeAsString(java.util.Collection<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> collComplianceSystems)
Get the highest priority compliance system code for the provided collection

Parameters:
collComplianceSystems - list of compliance systems
Returns:
highest priority compliance system code

getComplianceSetAsList

public java.util.List<de.fzk.iai.ilcd.service.model.process.IComplianceSystem> getComplianceSetAsList(de.fzk.iai.ilcd.service.model.IDeclaresCompliance p)
JSF components usually expect lists and not a set. This utility method returns the compliance systems wrapped as a list (concrete: an ArrayList)

Parameters:
p - the object that declares compliance
Returns:
the compliance systems as list