|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.SystemConfig
| Constructor Summary | |
SystemConfig()
|
|
| Method Summary | |
void |
addListener(SystemConfigListener listener)
Adds the supplied SystemConfigListener |
void |
addRepository(String id,
String title)
Adds a new repository with the supplied id and title |
void |
addRepositoryConfig(RepositoryConfig ri)
|
void |
addSail(String id,
String sailClass,
int idx)
Adds the sail with the supplied class to the sail stack of the repository with the given id at the supplied index |
void |
addUser(int id,
String login,
String fullName,
String password)
Adds a new user with the supplied id, login, full name and password |
void |
addUserInfo(UserInfo ui)
|
RepositoryConfig |
cloneRepository(String origID,
String cloneID)
Clones the repository with the specified id, changes its id to the specified new id, and adds this new repository. |
String |
getAdminPassword()
|
String |
getLogDir()
|
int |
getLogLevel()
|
Map |
getParameters(String id,
String sailClass)
Gets a Map of parameters from the sail with the supplied class of the repository with the given id |
RepositoryConfig |
getRepositoryConfig(String id)
|
List |
getRepositoryConfigList()
|
String |
getRMIFactoryClass()
|
int |
getRMIPort()
|
List |
getSails(String id)
Gets a List of sails from the repository with the supplied id |
String |
getSystemProp(String key)
|
Properties |
getSystemProps()
|
String |
getTmpDir()
|
int |
getUnusedUserId()
Gets an unused user id. |
UserInfo |
getUserInfo(int userID)
|
UserInfo |
getUserInfo(String login)
|
List |
getUserInfoList()
Gets a List of users |
Set |
getUsernames()
|
List |
getUsersForRepository(RepositoryConfig repConfig)
Gets all users that have read and/or write access to the specified repository. |
boolean |
hasAnUser()
Checks if an user exists |
boolean |
hasARepository()
Checks if a repository exists |
boolean |
hasASail(String id)
Checks if the repository with the supplied id has a sail |
boolean |
hasParameter(String id,
String sailClass,
String key)
Checks if the sail with the supplied class of the repository with the given id has a parameter with the supplied key |
boolean |
hasReadAccess(String id,
String login)
Checks if the user with the supplied login has read access to the specified repository. |
boolean |
hasReadAndWriteAccess(String id,
String login)
Checks if the user with the supplied login has both read and write access to the specified repository. |
boolean |
hasReadOrWriteAccess(String id,
String login)
Checks if the user with the supplied login has read or write access to the specified repository. |
boolean |
hasRepository(String id)
Checks if a repository with the supplied id exists |
boolean |
hasSail(String id,
String sailClass)
Checks if the repository with the supplied id has a sail with the supplied class |
boolean |
hasUser(String login)
Checks if an user with the supplied login exists |
boolean |
hasWriteAccess(String id,
String login)
Checks if the user with the supplied login has write access to the specified repository. |
boolean |
isRMIEnabled()
|
boolean |
isWorldReadable(String id)
Checks if the repository with the supplied id is world readable |
boolean |
isWorldWriteable(String id)
Checks if the repository with the supplied id is world writeable |
void |
removeListener(SystemConfigListener listener)
Removes the supplied SystemConfigListener |
void |
removeParameter(String id,
String sailClass,
String key)
Removes the parameter with the supplied key from the sail with the given class of the repository with the supplied id |
void |
removeRepository(String id)
Removes the repository with the supplied id |
void |
removeSail(String id,
String sailClass)
Removes the sail with the supplied class from the sail stack of the repository with the supplied id |
void |
removeUser(String login)
Removes the user with the supplied login |
void |
sailDown(String id,
String sailClass)
Moves the sail with the supplied class one level down in the sail stack of the repository with the given id |
void |
sailUp(String id,
String sailClass)
Moves the sail with the supplied class one level up in the sail stack of the repository with the given id |
void |
setAdminPassword(String password)
|
void |
setLogDir(String logDir)
|
void |
setLogLevel(int logLevel)
|
void |
setParameter(String id,
String sailClass,
String key,
String value)
Adds the parameter with the supplied key-value pair to the sail with the given class of the repository with the supplied id |
void |
setParameterKey(String id,
String sailClass,
String oldKey,
String newKey)
Sets the key of the parameter with the supplied old key of the sail with the given class of the repository with the supplied id to the given new key |
void |
setParameterValue(String id,
String sailClass,
String key,
String value)
Sets the value of the parameter with the supplied key of the sail with the given class of the repository with the supplied id to the given value |
void |
setReadAccess(String id,
String login,
boolean readAccess)
Sets the read access of the user with supplied login to the repository with the given id to the supplied read access |
void |
setRepositoryId(String oldId,
String newId)
Sets the id of the repository with the supplied old id to the given new id |
void |
setRepositoryTitle(String id,
String title)
Sets the title of the repository with the supplied id to the given title |
void |
setRMIEnabled(boolean rmiEnabled)
|
void |
setRMIFactory(String rmiFactoryClass,
int port)
|
void |
setSail(String id,
String oldClass,
String newClass)
Sets the sail with the supplied old class of the repository with the given id to the supplied new class |
void |
setSystemConfig(SystemConfig other)
Copies the data from other to this SystemConfig. |
void |
setSystemProp(String key,
String value)
|
void |
setTmpDir(String tmpDir)
|
void |
setUserFullName(String login,
String fullName)
Sets the full name of the user with the supplied login to the given full name |
void |
setUserId(String login,
int id)
Sets the id of the user with the supplied login to the given id |
void |
setUserLogin(String oldLogin,
String newLogin)
Sets the login of the user with the supplied old login to the given new login |
void |
setUserPassword(String login,
String password)
Sets the password of the user with the supplied login to the given password |
void |
setWorldReadable(String id,
boolean worldReadable)
Sets if the repository with the supplied id is world readable |
void |
setWorldWriteable(String id,
boolean worldWriteable)
Sets if the repository with the supplied id is world writeable |
void |
setWriteAccess(String id,
String login,
boolean writeAccess)
Sets the write access of the user with supplied login to the repository with the given id to the supplied write access |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemConfig()
| Method Detail |
public void setAdminPassword(String password)
public String getAdminPassword()
public void setLogDir(String logDir)
public String getLogDir()
public void setLogLevel(int logLevel)
public int getLogLevel()
public void setTmpDir(String tmpDir)
public String getTmpDir()
public void setSystemProp(String key,
String value)
public String getSystemProp(String key)
public Properties getSystemProps()
public void setRMIEnabled(boolean rmiEnabled)
public boolean isRMIEnabled()
public void setRMIFactory(String rmiFactoryClass,
int port)
public String getRMIFactoryClass()
public int getRMIPort()
public void addUserInfo(UserInfo ui)
public void removeUser(String login)
login - User loginpublic UserInfo getUserInfo(String login)
public UserInfo getUserInfo(int userID)
public Set getUsernames()
public List getUserInfoList()
public List getUsersForRepository(RepositoryConfig repConfig)
public int getUnusedUserId()
public void setUserId(String login,
int id)
login - User loginid - User id
public void setUserLogin(String oldLogin,
String newLogin)
oldLogin - Old user loginnewLogin - New user login
public void setUserFullName(String login,
String fullName)
login - User loginfullName - User full name
public void setUserPassword(String login,
String password)
login - User loginpassword - User passwordpublic void addRepositoryConfig(RepositoryConfig ri)
public RepositoryConfig getRepositoryConfig(String id)
public List getRepositoryConfigList()
public List getSails(String id)
id - Repository id
SailConfig
public Map getParameters(String id,
String sailClass)
id - Repository idsailClass - Sail class
return Map of parameters
public void setRepositoryId(String oldId,
String newId)
oldId - Old repository idnewId - New repository id
public void setRepositoryTitle(String id,
String title)
id - Repository idtitle - Repository titlepublic boolean isWorldReadable(String id)
id - Repository id
public void setWorldReadable(String id,
boolean worldReadable)
id - Repository idworldReadable - Boolean indicating if the repository is world
readablepublic boolean isWorldWriteable(String id)
id - The repository id
public void setWorldWriteable(String id,
boolean worldWriteable)
id - The repository idworldWriteable - Boolean indicating if the repository is world
writeable
public void setSail(String id,
String oldClass,
String newClass)
id - Repository idoldClass - Old sail classnewClass - New sail class
public void setParameterKey(String id,
String sailClass,
String oldKey,
String newKey)
id - Repository idsailClass - Sail classoldKey - Old parameter keynewKey - New parameter key
public void setParameterValue(String id,
String sailClass,
String key,
String value)
id - Repository idsailClass - Sail classkey - Parameter keyvalue - Parameter valuepublic boolean hasAnUser()
public boolean hasUser(String login)
login - User login
public boolean hasARepository()
public boolean hasRepository(String id)
id - The repository id
public boolean hasASail(String id)
id - Repository id
public boolean hasSail(String id,
String sailClass)
id - Repository idsailClass - Sail class
public boolean hasParameter(String id,
String sailClass,
String key)
id - Repository idsailClass - Sail classkey - Parameter key
public void addUser(int id,
String login,
String fullName,
String password)
id - User idlogin - User loginfullName - User full namepassword - User password
public void addRepository(String id,
String title)
id - Repository idtitle - Repository title
public RepositoryConfig cloneRepository(String origID,
String cloneID)
origID - The repository to clone.cloneID - The ID of the cloned repository.
public void addSail(String id,
String sailClass,
int idx)
id - Repository idsailClass - Sail classidx - Sail index
public void setParameter(String id,
String sailClass,
String key,
String value)
id - Repository idsailClass - Sail classkey - Parameter keyvalue - Parameter valuepublic void removeRepository(String id)
id - Repository id
public void removeSail(String id,
String sailClass)
id - Repository idsailClass - Sail class
public void removeParameter(String id,
String sailClass,
String key)
id - Repository idsailClass - Sail classkey - Parameter key
public void sailUp(String id,
String sailClass)
id - Repository idsailClass - Sail class
public void sailDown(String id,
String sailClass)
id - Repository idsailClass - Sail class
public boolean hasReadAccess(String id,
String login)
id - Repository idlogin - User login
public void setReadAccess(String id,
String login,
boolean readAccess)
id - Repository idlogin - User loginreadAccess - Boolean indicating if the user has read access to the
repository
public boolean hasWriteAccess(String id,
String login)
id - Repository idlogin - User login
public void setWriteAccess(String id,
String login,
boolean writeAccess)
id - Repository idlogin - User loginwriteAccess - Boolean indicating if the user has write access to the
repository
public boolean hasReadOrWriteAccess(String id,
String login)
id - Repository idlogin - User login
public boolean hasReadAndWriteAccess(String id,
String login)
id - Repository idlogin - User login
public void setSystemConfig(SystemConfig other)
other - The SystemConfig to copy.public void addListener(SystemConfigListener listener)
listener - SystemConfigListenerpublic void removeListener(SystemConfigListener listener)
listener - SystemConfigListener
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||