Log4j 1.1

pl.psnc.expres.model.factory
Class ResourceLinksFactory

java.lang.Object
  extended by pl.psnc.expres.model.factory.ResourceLinksFactory

public class ResourceLinksFactory
extends java.lang.Object

The ResourceLinksFactory class - Links Factory is used to get the list of links.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
ResourceLinksFactory()
           
 
Method Summary
static LinkValue getResourceLink(int id)
          Get the resource link by the given id
static LinkValue getResourceLink(int id, java.lang.String filePath)
          Get the resource link by the given id
static java.util.List<LinkValue> getResourceLinks(java.lang.String filePath)
          Get the resource links from the given file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLinksFactory

public ResourceLinksFactory()
Method Detail

getResourceLink

public static LinkValue getResourceLink(int id)
                                 throws pl.psnc.vlab.exception.ResourceNotFoundException
Get the resource link by the given id

Parameters:
id - resource identifier
Returns:
resource link value object
Throws:
pl.psnc.vlab.exception.ResourceNotFoundException - thrown if no resource is found

getResourceLink

public static LinkValue getResourceLink(int id,
                                        java.lang.String filePath)
                                 throws pl.psnc.vlab.exception.ResourceNotFoundException
Get the resource link by the given id

Parameters:
id - resource link id
filePath - path to a Json file with resource links description
Returns:
resource link value object
Throws:
pl.psnc.vlab.exception.ResourceNotFoundException

getResourceLinks

public static java.util.List<LinkValue> getResourceLinks(java.lang.String filePath)
                                                  throws pl.psnc.vlab.exception.ResourceNotFoundException
Get the resource links from the given file

Parameters:
filePath - path to a Json file with resource links description
Returns:
array with resource links value objects
Throws:
pl.psnc.vlab.exception.ResourceNotFoundException

Log4j 1.1

Copyright 2007-2008 by VLAB