org.apache.lenya.cms.ac.usecase.impl
Class UsecaseRolesBuilder

java.lang.Object
  extended by org.apache.lenya.cms.ac.usecase.impl.UsecaseRolesBuilder
All Implemented Interfaces:
org.apache.lenya.ac.cache.InputStreamBuilder

public class UsecaseRolesBuilder
extends java.lang.Object
implements org.apache.lenya.ac.cache.InputStreamBuilder

Builder for usecase roles.

Version:
$Id: UsecaseRolesBuilder.java 562973 2007-08-05 21:44:42Z nettings $

Field Summary
protected static java.lang.String ID_ATTRIBUTE
           
protected static java.lang.String ROLE_ELEMENT
           
protected static java.lang.String USECASE_ELEMENT
           
protected static java.lang.String USECASES_ELEMENT
           
 
Constructor Summary
UsecaseRolesBuilder()
           
 
Method Summary
 java.lang.Object build(java.io.InputStream stream)
           
 void save(UsecaseRoles usecaseRoles, java.lang.String sourceUri, org.apache.avalon.framework.service.ServiceManager manager)
          Saves the usecase roles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USECASES_ELEMENT

protected static final java.lang.String USECASES_ELEMENT
See Also:
Constant Field Values

USECASE_ELEMENT

protected static final java.lang.String USECASE_ELEMENT
See Also:
Constant Field Values

ROLE_ELEMENT

protected static final java.lang.String ROLE_ELEMENT
See Also:
Constant Field Values

ID_ATTRIBUTE

protected static final java.lang.String ID_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

UsecaseRolesBuilder

public UsecaseRolesBuilder()
Method Detail

build

public java.lang.Object build(java.io.InputStream stream)
                       throws org.apache.lenya.ac.cache.BuildException
Specified by:
build in interface org.apache.lenya.ac.cache.InputStreamBuilder
Throws:
org.apache.lenya.ac.cache.BuildException
See Also:
InputStreamBuilder.build(java.io.InputStream)

save

public void save(UsecaseRoles usecaseRoles,
                 java.lang.String sourceUri,
                 org.apache.avalon.framework.service.ServiceManager manager)
          throws org.apache.lenya.ac.cache.BuildException
Saves the usecase roles.

Parameters:
usecaseRoles - The roles.
sourceUri - The source to save to.
manager - The service manager.
Throws:
org.apache.lenya.ac.cache.BuildException - if an error occurs.


Copyright $ Apache Software Foundation. All Rights Reserved.