|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows to manage the branch and language definitions.
Note that this is only about defining branches and languages, the actual creation
of documents on these branches and languages is done through the
Repository
API.
Method Summary | |
Branch |
createBranch(java.lang.String name)
Creates a new branch definition. |
Language |
createLanguage(java.lang.String name)
|
void |
deleteBranch(long id)
Deletes a branch. |
void |
deleteLanguage(long id)
|
Branches |
getAllBranches(boolean updateable)
|
Languages |
getAllLanguages(boolean updateable)
|
Branch |
getBranch(long id,
boolean updateable)
Retrieves a branch by ID. |
Branch |
getBranch(java.lang.String branch,
boolean updateable)
Retrieves a branch by ID or by name depending on whether the branch parameter starts with a digit. |
Branch |
getBranchByName(java.lang.String name,
boolean updateable)
Retrieves a branch by name. |
Language |
getLanguage(long id,
boolean updateable)
|
Language |
getLanguage(java.lang.String language,
boolean updateable)
|
Language |
getLanguageByName(java.lang.String name,
boolean updateable)
|
Method Detail |
public Branch createBranch(java.lang.String name)
name
- a unique name satisfying the regexp "[a-zA-Z][a-zA-Z\-_0-9]*"public Branch getBranch(long id, boolean updateable) throws RepositoryException
RepositoryException
public Branch getBranch(java.lang.String branch, boolean updateable) throws RepositoryException
RepositoryException
public Branch getBranchByName(java.lang.String name, boolean updateable) throws RepositoryException
RepositoryException
public Branches getAllBranches(boolean updateable) throws RepositoryException
RepositoryException
public void deleteBranch(long id) throws RepositoryException
RepositoryException
public Language createLanguage(java.lang.String name)
public Language getLanguage(long id, boolean updateable) throws RepositoryException
RepositoryException
public Language getLanguage(java.lang.String language, boolean updateable) throws RepositoryException
RepositoryException
public Language getLanguageByName(java.lang.String name, boolean updateable) throws RepositoryException
RepositoryException
public Languages getAllLanguages(boolean updateable) throws RepositoryException
RepositoryException
public void deleteLanguage(long id) throws RepositoryException
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |