@Deprecated
public class Workspace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<Collection> |
collections
Deprecated.
|
private java.lang.String |
title
Deprecated.
|
private java.lang.String |
titleType
Deprecated.
|
Constructor and Description |
---|
Workspace(org.jdom2.Element elem)
Deprecated.
|
Workspace(java.lang.String title,
java.lang.String titleType)
Deprecated.
Collection MUST have title.
|
Modifier and Type | Method and Description |
---|---|
void |
addCollection(Collection col)
Deprecated.
Add new collection to workspace
|
static Workspace |
elementToWorkspace(org.jdom2.Element element)
Deprecated.
Deserialize a Atom workspace XML element into an object
|
Collection |
findCollection(java.lang.String title,
java.lang.String contentType)
Deprecated.
Find collection by title and/or content-type.
|
java.util.List<Collection> |
getCollections()
Deprecated.
Iterate over collections in workspace
|
java.lang.String |
getTitle()
Deprecated.
DefaultWorkspace must have a human readable title
|
java.lang.String |
getTitleType()
Deprecated.
Get title type ("text", "html", "xhtml" or MIME content-type)
|
protected void |
parseWorkspaceElement(org.jdom2.Element element)
Deprecated.
Deserialize a Atom workspace XML element into an object
|
void |
setTitle(java.lang.String title)
Deprecated.
Set title of workspace.
|
void |
setTitleType(java.lang.String titleType)
Deprecated.
Set title type ("text", "html", "xhtml" or MIME content-type)
|
org.jdom2.Element |
workspaceToElement()
Deprecated.
Serialize an AtomService.DefaultWorkspace object into an XML element
|
private java.lang.String title
private java.lang.String titleType
private final java.util.List<Collection> collections
public Workspace(java.lang.String title, java.lang.String titleType)
title
- Title for collectiontitleType
- Content type of title (null for plain text)public Workspace(org.jdom2.Element elem) throws ProponoException
ProponoException
public java.util.List<Collection> getCollections()
public void addCollection(Collection col)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getTitleType()
public void setTitleType(java.lang.String titleType)
public Collection findCollection(java.lang.String title, java.lang.String contentType)
title
- Title or null to match all titles.contentType
- Content-type or null to match all content-types.public static Workspace elementToWorkspace(org.jdom2.Element element) throws ProponoException
ProponoException
public org.jdom2.Element workspaceToElement()
protected void parseWorkspaceElement(org.jdom2.Element element) throws ProponoException
ProponoException