org.overlord.sramp.server.atom.workspaces
Class AbstractWorkspace

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.atom.app.AppCommonAttributes
      extended by org.jboss.resteasy.plugins.providers.atom.app.AppWorkspace
          extended by org.overlord.sramp.server.atom.workspaces.AbstractWorkspace
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CoreWorkspace, ExtendedWorkspace, OntologyWorkspace, PolicyWorkspace, SoapWsdlWorkspace, WsdlWorkspace, XsdWorkspace

public abstract class AbstractWorkspace
extends org.jboss.resteasy.plugins.providers.atom.app.AppWorkspace

Base class for all workspaces.

Author:
eric.wittmann@redhat.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.resteasy.plugins.providers.atom.app.AppWorkspace
any, collection, title
 
Constructor Summary
AbstractWorkspace(String hrefBase, String title)
          Constructor.
 
Method Summary
protected  org.jboss.resteasy.plugins.providers.atom.app.AppCollection addCollection(String path, String title, String accept)
          Adds a single collection to the workspace and returns it.
protected  org.jboss.resteasy.plugins.providers.atom.Category addTypeCategory(org.jboss.resteasy.plugins.providers.atom.app.AppCollection collection, ArtifactTypeEnum type)
          Adds a single category to the given collection.
protected abstract  void configureWorkspace()
          Configures this workspace.
protected  String url(String path)
          Creates a full URL from a path fragment.
 
Methods inherited from class org.jboss.resteasy.plugins.providers.atom.app.AppWorkspace
getAny, getCollection, getTitle, setTitle
 
Methods inherited from class org.jboss.resteasy.plugins.providers.atom.app.AppCommonAttributes
getBase, getLang, getOtherAttributes, getSpace, setBase, setLang, setSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWorkspace

public AbstractWorkspace(String hrefBase,
                         String title)
Constructor.

Parameters:
hrefBase -
title -
Method Detail

url

protected String url(String path)
Creates a full URL from a path fragment.

Parameters:
path -

addCollection

protected org.jboss.resteasy.plugins.providers.atom.app.AppCollection addCollection(String path,
                                                                                    String title,
                                                                                    String accept)
Adds a single collection to the workspace and returns it.

Parameters:
path -
title -
accept -

addTypeCategory

protected org.jboss.resteasy.plugins.providers.atom.Category addTypeCategory(org.jboss.resteasy.plugins.providers.atom.app.AppCollection collection,
                                                                             ArtifactTypeEnum type)
Adds a single category to the given collection.

Parameters:
collection -
type -

configureWorkspace

protected abstract void configureWorkspace()
Configures this workspace.



Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.