pt.digitalis.dif.dem.managers.impl
Class UsageIssuesManagerImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.managers.impl.UsageIssuesManagerImpl
All Implemented Interfaces:
IUsageIssuesManager

public class UsageIssuesManagerImpl
extends Object
implements IUsageIssuesManager

The user issue manager implementation. Singleton pattern.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2008/11/13

Method Summary
 void addIssue(IssueType issueType, IssueScope issueScope, String location, String issueDescription, Exception exception)
          Adds an issue to the issue manager.
 void addIssue(UsageIssue usageIssue)
          Adds an issue to the manager.
static IUsageIssuesManager getInstance()
          Singleton pattern instance accessor.
 Map<String,List<UsageIssue>> getIssues()
          Returns all the issues on the manager.
 List<UsageIssue> getIssues(String entityUID)
          Returns the issues associated to the entity with the given UID.
 boolean hasIssues()
          Returns T if there are issues on the manager, F otherwise.
 boolean hasIssues(String location)
          Returns T if there are issues for the given location, F otherwise.
 void logAllIssuesByEntity()
          Logs all issues on the manager by entity.
 void logAllIssuesByType()
          Logs all issues on the manager by type.
 void logIssues(String entityUID)
          Logs all issues associated to the entity with the given UID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static IUsageIssuesManager getInstance()
Singleton pattern instance accessor.

Returns:
the instance

addIssue

public void addIssue(IssueType issueType,
                     IssueScope issueScope,
                     String location,
                     String issueDescription,
                     Exception exception)
Description copied from interface: IUsageIssuesManager
Adds an issue to the issue manager. Extended form.

Specified by:
addIssue in interface IUsageIssuesManager
Parameters:
issueType - the issue type
issueScope - the issue scope
location - the issue location
issueDescription - the issue description
exception - the exception that might associated to the issue
See Also:
IUsageIssuesManager.addIssue(pt.digitalis.dif.dem.objects.issues.IssueType, pt.digitalis.dif.dem.objects.issues.IssueScope, java.lang.String, java.lang.String, java.lang.Exception)

addIssue

public void addIssue(UsageIssue usageIssue)
Description copied from interface: IUsageIssuesManager
Adds an issue to the manager. Bean form.

Specified by:
addIssue in interface IUsageIssuesManager
Parameters:
usageIssue - the issue to add
See Also:
IUsageIssuesManager.addIssue(pt.digitalis.dif.dem.objects.issues.UsageIssue)

getIssues

public Map<String,List<UsageIssue>> getIssues()
Description copied from interface: IUsageIssuesManager
Returns all the issues on the manager.

Specified by:
getIssues in interface IUsageIssuesManager
Returns:
the issues on the manager
See Also:
IUsageIssuesManager.getIssues()

getIssues

public List<UsageIssue> getIssues(String entityUID)
Description copied from interface: IUsageIssuesManager
Returns the issues associated to the entity with the given UID.

Specified by:
getIssues in interface IUsageIssuesManager
Returns:
the issues for the given entity unique ID
See Also:
IUsageIssuesManager.getIssues(java.lang.String)

hasIssues

public boolean hasIssues()
Description copied from interface: IUsageIssuesManager
Returns T if there are issues on the manager, F otherwise.

Specified by:
hasIssues in interface IUsageIssuesManager
Returns:
T if there are issues on the manager, F otherwise
See Also:
IUsageIssuesManager.hasIssues()

hasIssues

public boolean hasIssues(String location)
Description copied from interface: IUsageIssuesManager
Returns T if there are issues for the given location, F otherwise.

Specified by:
hasIssues in interface IUsageIssuesManager
Parameters:
location - the location
Returns:
T if there are issues related to the given location, F otherwise
See Also:
IUsageIssuesManager.hasIssues(java.lang.String)

logAllIssuesByEntity

public void logAllIssuesByEntity()
Description copied from interface: IUsageIssuesManager
Logs all issues on the manager by entity.

Specified by:
logAllIssuesByEntity in interface IUsageIssuesManager
See Also:
IUsageIssuesManager.logAllIssuesByEntity()

logAllIssuesByType

public void logAllIssuesByType()
Description copied from interface: IUsageIssuesManager
Logs all issues on the manager by type.

Specified by:
logAllIssuesByType in interface IUsageIssuesManager
See Also:
IUsageIssuesManager.logAllIssuesByType()

logIssues

public void logIssues(String entityUID)
Description copied from interface: IUsageIssuesManager
Logs all issues associated to the entity with the given UID.

Specified by:
logIssues in interface IUsageIssuesManager
Parameters:
entityUID - the entity's UID
See Also:
IUsageIssuesManager.logIssues(java.lang.String)


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.