@Deprecated public class Workspace extends Object
Constructor and Description |
---|
Workspace(org.jdom2.Element elem)
Deprecated.
|
Workspace(String title,
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(String title,
String contentType)
Deprecated.
Find collection by title and/or content-type.
|
List<Collection> |
getCollections()
Deprecated.
Iterate over collections in workspace
|
String |
getTitle()
Deprecated.
DefaultWorkspace must have a human readable title
|
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(String title)
Deprecated.
Set title of workspace.
|
void |
setTitleType(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
|
public Workspace(String title, String titleType)
title
- Title for collectiontitleType
- Content type of title (null for plain text)public Workspace(org.jdom2.Element elem) throws ProponoException
ProponoException
public List<Collection> getCollections()
public void addCollection(Collection col)
public String getTitle()
public void setTitle(String title)
public String getTitleType()
public void setTitleType(String titleType)
public Collection findCollection(String title, 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
Copyright © 2017. All rights reserved.