org.fosstrak.ale.server.readers
Class LogicalReaderManager

java.lang.Object
  extended by org.fosstrak.ale.server.readers.LogicalReaderManager

public class LogicalReaderManager
extends java.lang.Object

represents the LogicalReader API according 10.3 API from EPC global ALE standard.

Author:
sawielan, haennimi

Field Summary
static LogicalReaders logicalReadersConfiguration
          logical reader configuration loaded from file.
 
Constructor Summary
LogicalReaderManager()
           
 
Method Summary
static void addReaders(java.lang.String name, java.util.List<java.lang.String> readers)
          adds the specified logical readers to a composite reader (see 10.3 API).
static boolean contains(java.lang.String logicalReaderName)
          This method indicates if the manager contains a logical reader with specified name.
static void define(java.lang.String name, LRSpec spec)
          creates a new logical Reader according to spec (see 10.3 API). this variant works on jaxb LRSpec
static void define(java.lang.String name, org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
          creates a new logical Reader according to spec (see 10.3 API). this variant works directly on LRSpec
static LogicalReader getLogicalReader(java.lang.String readerName)
          returns the requested logicalReader.
static java.util.List<java.lang.String> getLogicalReaderNames()
          returns a list of the logical readers in the reader (see 10.3 API).
static java.util.Collection<LogicalReader> getLogicalReaders()
          returns all available logicalReaders.
static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec getLRSpec(java.lang.String name)
          returns an LRSpec that describes a logical reader called name (see 10.3 API).
static java.lang.String getPropertyValue(java.lang.String name, java.lang.String propertyName)
          returns the current value of the specified property for reader name (see 10.3 API).
static java.lang.String getStandardVersion()
          returns the standard version of the ale (see 10.3 API).
static java.lang.String getVendorVersion()
          returns the vendor version of the ale (see 10.3 API).
static void initialize()
          This method initializes the manager by loading the default definition from file.
static void initializeFromFile(java.lang.String loadFilePath)
          This method initializes the manager by loading the definition from the specified file and creating corresponding logical reader stubs.
static boolean isInitialized()
           
static void removeReaders(java.lang.String name, java.util.List<java.lang.String> readers)
          removes the specified logical readers from the components of the composite reader (see 10.3 API).
static void setLogicalReader(LogicalReader reader)
           
static void setProperties(java.lang.String name, java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> properties)
          changes properties for the reader name (see 10.3 API).
static void setReaders(java.lang.String name, java.util.List<java.lang.String> readers)
          changes the list of readers in a composite reader (see 10.3 API).
static void storeToFile(java.lang.String storeFilePath)
          This method stores the current setting of logicalreaders to a .xml file.
static void undefine(java.lang.String name)
          .
static void update(java.lang.String name, org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
          Changes the definition of the logical reader named name to match the specification in the spec parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logicalReadersConfiguration

public static LogicalReaders logicalReadersConfiguration
logical reader configuration loaded from file.

Constructor Detail

LogicalReaderManager

public LogicalReaderManager()
Method Detail

getVendorVersion

public static java.lang.String getVendorVersion()
                                         throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
returns the vendor version of the ale (see 10.3 API).

Returns:
vendor version of the ale
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

getStandardVersion

public static java.lang.String getStandardVersion()
                                           throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
returns the standard version of the ale (see 10.3 API).

Returns:
standard version of the ale
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

getPropertyValue

public static java.lang.String getPropertyValue(java.lang.String name,
                                                java.lang.String propertyName)
                                         throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                                                org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                                org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
returns the current value of the specified property for reader name (see 10.3 API).

Parameters:
name - the reader the property value is requested
propertyName - the property that for the value is requested
Returns:
returns a value for a requested property
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

setProperties

public static void setProperties(java.lang.String name,
                                 java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.LRProperty> properties)
                          throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                                 org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                 org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
changes properties for the reader name (see 10.3 API).

Parameters:
name - name of the reader to change
properties - new properties for the reader
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
ImmutableReaderException - whenever you want to change a immutable reader
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
ValidationException - the provided LRSpec is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

removeReaders

public static void removeReaders(java.lang.String name,
                                 java.util.List<java.lang.String> readers)
                          throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                                 org.fosstrak.ale.wsdl.alelr.epcglobal.NonCompositeReaderExceptionResponse,
                                 org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                 org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
removes the specified logical readers from the components of the composite reader (see 10.3 API).

Parameters:
name - name of the composite reader
readers - list of readers to be removed
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
ImmutableReaderException - whenever you want to change a immutable reader
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
NonCompositeReaderException - addReader or setReader or removeReader was called on a non compositeReader
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.NonCompositeReaderExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

setReaders

public static void setReaders(java.lang.String name,
                              java.util.List<java.lang.String> readers)
                       throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.NonCompositeReaderExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
changes the list of readers in a composite reader (see 10.3 API).

Parameters:
name - name of the composite reader
readers - list of readers to be changed
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
ValidationException - the provided LRSpec is invalid
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
ImmutableReaderException - whenever you want to change a immutable reader
ReaderLoopException - the reader would include itself which would result in a loop
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
NonCompositeReaderException - addReader or setReader was called on a non compositeReader
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.NonCompositeReaderExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

addReaders

public static void addReaders(java.lang.String name,
                              java.util.List<java.lang.String> readers)
                       throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
adds the specified logical readers to a composite reader (see 10.3 API).

Parameters:
name - name of the composite reader
readers - list of readers to be added to the composite reader
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
ValidationException - the provided LRSpec is invalid
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
ImmutableReaderException - whenever you want to change a immutable reader
ReaderLoopException - the reader would include itself which would result in a loop
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

getLRSpec

public static org.fosstrak.ale.xsd.ale.epcglobal.LRSpec getLRSpec(java.lang.String name)
                                                           throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                                                                  org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                                                  org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
returns an LRSpec that describes a logical reader called name (see 10.3 API).

Parameters:
name - name of the logical reader
Returns:
LRSpec for the logical reader name
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

getLogicalReaderNames

public static java.util.List<java.lang.String> getLogicalReaderNames()
                                                              throws org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                                                     org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
returns a list of the logical readers in the reader (see 10.3 API).

Returns:
list of String containing the logicalReaders
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

undefine

public static void undefine(java.lang.String name)
                     throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                            org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                            org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                            org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                            org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
. removes the logicalReader name (see 10.3 API).

Parameters:
name - name for the logical reader to be undefined
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
ImmutableReaderException - whenever you want to change a immutable reader
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever an internal error occurs
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

update

public static void update(java.lang.String name,
                          org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
                   throws org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Changes the definition of the logical reader named name to match the specification in the spec parameter. This is different than calling undefine followed by define, because update may be called even if there are defined ECSpecs, CCSpecs, or other logical readers that refer to this logical reader.

Parameters:
name - a valid name for the reader to be changed.
spec - an LRSpec describing the changes to the reader
Throws:
ImmutableReaderException - whenever you want to change a immutable reader
ValidationException - the provided LRSpec is invalid
InUseException - Is thrown when you try to undefine a Reader that is still referenced by EC or CC
ReaderLoopException - the reader would include itself which would result in a loop
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameException - whenever the specified name is not defined in the logicalReader API
org.fosstrak.ale.wsdl.ale.epcglobal.NoSuchNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.InUseExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ImmutableReaderExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ReaderLoopExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

define

public static void define(java.lang.String name,
                          LRSpec spec)
                   throws org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
creates a new logical Reader according to spec (see 10.3 API). this variant works on jaxb LRSpec

Parameters:
name - name of the new logicalReader
spec - LRSpec how to build the reader
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameException - when a reader name is already defined
ValidationException - the provided LRSpec is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

define

public static void define(java.lang.String name,
                          org.fosstrak.ale.xsd.ale.epcglobal.LRSpec spec)
                   throws org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse,
                          org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                          org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
creates a new logical Reader according to spec (see 10.3 API). this variant works directly on LRSpec

Parameters:
name - name of the new logicalReader
spec - LRSpec how to build the reader
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameException - when a reader name is already defined
ValidationException - the provided LRSpec is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

initialize

public static void initialize()
                       throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                              org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse,
                              org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
This method initializes the manager by loading the default definition from file.

Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameException - when a reader name is already defined
ValidationException - the provided LRSpec is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse

initializeFromFile

public static void initializeFromFile(java.lang.String loadFilePath)
                               throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse,
                                      org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                                      org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse,
                                      org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse
This method initializes the manager by loading the definition from the specified file and creating corresponding logical reader stubs.

Parameters:
loadFilePath - to initialize
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameException - when a reader name is already defined
ValidationException - the provided LRSpec is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse

storeToFile

public static void storeToFile(java.lang.String storeFilePath)
                        throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse,
                               org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse,
                               org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse,
                               org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse,
                               java.io.FileNotFoundException
This method stores the current setting of logicalreaders to a .xml file.

Parameters:
storeFilePath - configurationFilePath to initialize
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityException - the operation was not permitted due to access restrictions
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameException - when a reader name is already defined
ValidationException - the provided LRSpec is invalid
java.io.FileNotFoundException - the provided file was not found
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.SecurityExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.DuplicateNameExceptionResponse
org.fosstrak.ale.wsdl.alelr.epcglobal.ValidationExceptionResponse

getLogicalReader

public static LogicalReader getLogicalReader(java.lang.String readerName)
returns the requested logicalReader.

Parameters:
readerName - name of the requested reader
Returns:
a logicalReder

getLogicalReaders

public static java.util.Collection<LogicalReader> getLogicalReaders()
returns all available logicalReaders.

Returns:
Set of LogicalReader

setLogicalReader

public static void setLogicalReader(LogicalReader reader)
                             throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Parameters:
reader - a logicalReader to be stored in the manager
Throws:
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException - whenever something goes wrong inside the implementation
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse

contains

public static boolean contains(java.lang.String logicalReaderName)
This method indicates if the manager contains a logical reader with specified name.

Parameters:
logicalReaderName - to search
Returns:
true if the logical reader exists and false otherwise

isInitialized

public static boolean isInitialized()


Copyright © 2009. All Rights Reserved.