|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariantManager
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 |
---|
Branch createBranch(java.lang.String name)
name
- a unique name satisfying the regexp "[a-zA-Z][a-zA-Z\-_0-9]*"Branch getBranch(long id, boolean updateable) throws RepositoryException
RepositoryException
Branch getBranch(java.lang.String branch, boolean updateable) throws RepositoryException
RepositoryException
Branch getBranchByName(java.lang.String name, boolean updateable) throws RepositoryException
RepositoryException
Branches getAllBranches(boolean updateable) throws RepositoryException
RepositoryException
void deleteBranch(long id) throws RepositoryException
RepositoryException
Language createLanguage(java.lang.String name)
Language getLanguage(long id, boolean updateable) throws RepositoryException
RepositoryException
Language getLanguage(java.lang.String language, boolean updateable) throws RepositoryException
RepositoryException
Language getLanguageByName(java.lang.String name, boolean updateable) throws RepositoryException
RepositoryException
Languages getAllLanguages(boolean updateable) throws RepositoryException
RepositoryException
void deleteLanguage(long id) throws RepositoryException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |