org.apache.abdera.protocol.server.impl
Class SimpleWorkspaceInfo

java.lang.Object
  extended by org.apache.abdera.protocol.server.impl.SimpleWorkspaceInfo
All Implemented Interfaces:
Serializable, WorkspaceInfo

public class SimpleWorkspaceInfo
extends Object
implements WorkspaceInfo, Serializable

See Also:
Serialized Form

Field Summary
protected  Set<CollectionInfo> collections
           
protected  String title
           
 
Constructor Summary
SimpleWorkspaceInfo()
           
SimpleWorkspaceInfo(String title)
           
 
Method Summary
 void addCollection(CollectionInfo ci)
           
 Workspace asWorkspaceElement(RequestContext request)
          Returns an instance of the FOM Workspace interface
 boolean equals(Object obj)
           
 Set<CollectionInfo> getCollections()
           
 Collection<CollectionInfo> getCollections(RequestContext request)
          Return the listing of collections available as part of the workspace
 String getTitle()
           
 String getTitle(RequestContext request)
          Return the value of the app:workspace element's atom:title.
 int hashCode()
           
 void setCollections(Set<CollectionInfo> collections)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected String title

collections

protected Set<CollectionInfo> collections
Constructor Detail

SimpleWorkspaceInfo

public SimpleWorkspaceInfo()

SimpleWorkspaceInfo

public SimpleWorkspaceInfo(String title)
Method Detail

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getTitle

public String getTitle(RequestContext request)
Description copied from interface: WorkspaceInfo
Return the value of the app:workspace element's atom:title. This assumes that the atom:title element uses type="text". This must not be null

Specified by:
getTitle in interface WorkspaceInfo

addCollection

public void addCollection(CollectionInfo ci)

getCollections

public Collection<CollectionInfo> getCollections(RequestContext request)
Description copied from interface: WorkspaceInfo
Return the listing of collections available as part of the workspace

Specified by:
getCollections in interface WorkspaceInfo

getCollections

public Set<CollectionInfo> getCollections()

setCollections

public void setCollections(Set<CollectionInfo> collections)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

asWorkspaceElement

public Workspace asWorkspaceElement(RequestContext request)
Description copied from interface: WorkspaceInfo
Returns an instance of the FOM Workspace interface

Specified by:
asWorkspaceElement in interface WorkspaceInfo


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.