org.alfresco.service.cmr.admin
Class RepoUsageStatus

java.lang.Object
  extended by org.alfresco.service.cmr.admin.RepoUsageStatus

public class RepoUsageStatus
extends java.lang.Object

Bean to carry Red/Amber/Green status messages

Since:
V3.4 Team

Nested Class Summary
static class RepoUsageStatus.RepoUsageLevel
          Enumeration of usage levels
 
Constructor Summary
RepoUsageStatus(RepoUsage restrictions, RepoUsage usage, RepoUsageStatus.RepoUsageLevel level, java.util.List warnings, java.util.List errors)
           
 
Method Summary
 java.util.List getErrors()
           
 RepoUsageStatus.RepoUsageLevel getLevel()
           
 RepoUsage getRestrictions()
           
 RepoUsage getUsage()
           
 java.util.List getWarnings()
           
 void logMessages(org.apache.commons.logging.Log logger)
          Log warnings and errors to the given logger
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepoUsageStatus

public RepoUsageStatus(RepoUsage restrictions,
                       RepoUsage usage,
                       RepoUsageStatus.RepoUsageLevel level,
                       java.util.List warnings,
                       java.util.List errors)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

logMessages

public void logMessages(org.apache.commons.logging.Log logger)
Log warnings and errors to the given logger


getRestrictions

public RepoUsage getRestrictions()

getUsage

public RepoUsage getUsage()

getLevel

public RepoUsageStatus.RepoUsageLevel getLevel()
Returns:
Returns the current warning level

getWarnings

public java.util.List getWarnings()
Returns:
Returns any warnings generated

getErrors

public java.util.List getErrors()
Returns:
Returns any errors generated


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.