|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.RepositoryConfig
A configuration object containing the configuration parameters for a repository. Configuration options for repositories include read-write permissions and the configuration of the Sail stack. Read- and write permissions can be configured separately as publicly accessible, or to be restricted to specific accounts. A repository that is both publicly readable and publicly writeable is called a 'public repository'. A repository that is neither publicly readable nor publicly writeable is called a 'private repository'.
| Constructor Summary | |
RepositoryConfig(String id)
Creates a new repository configuration object for a private repository with the specified ID. |
|
RepositoryConfig(String id,
boolean worldReadable,
boolean worldWriteable)
Creates a new repository configuration object for a repository with the specified ID and title. |
|
RepositoryConfig(String id,
String title)
Creates a new repository configuration object for a private repository with the specified ID and title. |
|
RepositoryConfig(String id,
String title,
boolean worldReadable,
boolean worldWriteable)
Creates a new repository configuration object for a repository with the specified ID and title. |
|
| Method Summary | |
void |
addSail(SailConfig sailConfig)
Adds the supplied Sail configuration to the bottom of the current stack of Sail configurations. |
void |
addSail(SailConfig sailConfig,
int index)
Inserts the supplied Sail configuration into the current stack of Sail configuration. |
Object |
clone()
|
String |
getRepositoryId()
Gets the ID of this repository. |
SailConfig |
getSail(String sailClass)
Retrieves the SailConfig object for the supplied sail class. |
List |
getSailList()
Retrieves a list containing the current stack of Sail configurations from top to bottom. |
String |
getSailType()
Retrieves the interface implemented by the top-most Sail in the stack. |
String |
getTitle()
Gets the title of the repository. |
boolean |
hasASail()
Checks if any Sails are specified in this RepositoryConfig. |
boolean |
hasSail(String sailClass)
Checks if the supplied sail is present in the sail stack. |
boolean |
isReadable()
Checks if this repository is readable. |
boolean |
isWorldReadable()
Checks whether this repository is publicly readable. |
boolean |
isWorldWriteable()
Checks whether this repository is publicly writeable. |
boolean |
isWriteable()
Checks if this repository is writeable. |
void |
makePrivate()
Makes this repository private, meaning that it will not be publicly readable or writeable. |
void |
makePublic()
Makes this repository public, meaning that it will be publicly readable and writeable. |
SailConfig |
removeSail(int index)
Removes the Sail configuration that is at the specified index from the current stack of Sail configurations. |
boolean |
removeSail(SailConfig sailConfig)
Removes the supplied Sail configuration from the current stack of Sail configurations. |
void |
sailDown(String sailClass)
Moves the sail with the supplied class one level down in the sail stack. |
void |
sailUp(String sailClass)
Moves the sail with the supplied class one level up in the sail stack. |
void |
setRepositoryId(String id)
Sets the ID of this repository. |
void |
setSailList(List sailList)
Sets the Sail stack. |
void |
setTitle(String title)
Sets the title of the repository. |
void |
setWorldReadable(boolean worldReadable)
Sets the world-readable flag of this repository. |
void |
setWorldWriteable(boolean worldWriteable)
Sets the world-writeable flag of this repository. |
void |
stackSail(SailConfig sailConfig)
Stacks the supplied Sail configuration on top of the current stack of Sail configurations. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RepositoryConfig(String id)
id - The repository id.
public RepositoryConfig(String id,
String title)
id - The repository id.title - The repository title.
public RepositoryConfig(String id,
boolean worldReadable,
boolean worldWriteable)
id - The repository id.worldReadable - Flag indicating wether the repository should be
publicly readable.worldWriteable - Flag indicating wether the repository should be
publicly writeable.
public RepositoryConfig(String id,
String title,
boolean worldReadable,
boolean worldWriteable)
id - The repository id.title - The repository title.worldReadable - Flag indicating wether the repository should be
publicly readable.worldWriteable - Flag indicating wether the repository should be
publicly writeable.| Method Detail |
public String getRepositoryId()
getRepositoryId in interface RepositoryInfopublic void setRepositoryId(String id)
id - The new repository id.public String getTitle()
getTitle in interface RepositoryInfopublic void setTitle(String title)
title - the repository titlepublic boolean isWorldReadable()
public void setWorldReadable(boolean worldReadable)
public boolean isWorldWriteable()
public void setWorldWriteable(boolean worldWriteable)
public void makePrivate()
public void makePublic()
public boolean isReadable()
isReadable in interface RepositoryInfopublic boolean isWriteable()
isWriteable in interface RepositoryInfopublic void stackSail(SailConfig sailConfig)
sailConfig - A Sail configuration.public void addSail(SailConfig sailConfig)
sailConfig - A Sail configuration.
public void addSail(SailConfig sailConfig,
int index)
sailConfig - the SailConfig classindex - the position in the sail stack for this Sail. The
top-most sail is at index 0.public boolean removeSail(SailConfig sailConfig)
sailConfig - The Sail configuration to remove.public SailConfig removeSail(int index)
index - The index of the Sail configuration to remove, 0 for the
top-most Sail configuration.public List getSailList()
SailConfigpublic void setSailList(List sailList)
sailList - a list of SailConfig objects.public boolean hasASail()
public boolean hasSail(String sailClass)
sailClass - the class name of the sail to be searched for.public SailConfig getSail(String sailClass)
sailClass - the class name of the sail to be retrieved.
public String getSailType()
getSailType in interface RepositoryInfopublic void sailUp(String sailClass)
sailClass - Sail classpublic void sailDown(String sailClass)
sailClass - Sail classpublic Object clone()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||