|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DirectoryFacade
Method Summary | ||
---|---|---|
Iterable<com.atlassian.crowd.embedded.api.Directory> |
all()
|
|
void |
apply(com.google.common.base.Function<com.atlassian.crowd.embedded.api.Directory,com.atlassian.crowd.embedded.api.Directory> function,
Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
Applies the given function to the given list of directories |
|
DirectoryBuilder |
compose()
|
|
DirectoryMutator |
create(com.atlassian.crowd.embedded.api.Directory template)
Returns a builder which will call CrowdDirectoryService.addDirectory(Directory) the composed directory
once DirectoryMutator.persist() is called. |
|
DirectoryFilter |
filter()
|
|
Iterable<com.atlassian.crowd.embedded.api.Directory> |
find(com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.Directory> filter,
Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
Apply the given filter to the list of candidates. |
|
DirectoryMutator |
modify(com.atlassian.crowd.embedded.api.Directory template)
The same as create(Directory) , but it will call CrowdDirectoryService.updateDirectory(Directory)
once DirectoryMutator.persist() is called. |
|
boolean |
synchronise(com.atlassian.crowd.embedded.api.Directory directory,
boolean waitForSynchronisation)
Synchronise the given directory. |
|
|
transform(com.google.common.base.Function<com.atlassian.crowd.embedded.api.Directory,D> transformer,
Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
Will apply the given transformation function once the client iterates over the returned iterable. |
Method Detail |
---|
Iterable<com.atlassian.crowd.embedded.api.Directory> all()
CrowdDirectoryService.findAllDirectories()
boolean synchronise(com.atlassian.crowd.embedded.api.Directory directory, boolean waitForSynchronisation)
directory
- the directory to synchronisewaitForSynchronisation
- true to execute the synchronisation in the caller's thread, false to return
immediately
CrowdDirectoryService.synchroniseDirectory(long, boolean)
DirectoryFilter filter()
Iterable<com.atlassian.crowd.embedded.api.Directory> find(com.google.common.base.Predicate<com.atlassian.crowd.embedded.api.Directory> filter, Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
filter
- filter for the candidate directoriescandidates
- the directories to be filtered
DirectoryBuilder compose()
DirectoryMutator create(com.atlassian.crowd.embedded.api.Directory template)
CrowdDirectoryService.addDirectory(Directory)
the composed directory
once DirectoryMutator.persist()
is called.
template
- a template used for this builder, the id is set to null
compose()
DirectoryMutator modify(com.atlassian.crowd.embedded.api.Directory template)
create(Directory)
, but it will call CrowdDirectoryService.updateDirectory(Directory)
once DirectoryMutator.persist()
is called.
template
- a template used for this builder, the id has to be set
create(Directory)
void apply(com.google.common.base.Function<com.atlassian.crowd.embedded.api.Directory,com.atlassian.crowd.embedded.api.Directory> function, Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
function
- the function to apply, the return value is irrelevantcandidates
- the list of directories<D extends com.atlassian.crowd.embedded.api.Directory> Iterable<D> transform(com.google.common.base.Function<com.atlassian.crowd.embedded.api.Directory,D> transformer, Iterable<com.atlassian.crowd.embedded.api.Directory> candidates)
D
- the type of the transformed directorytransformer
- the function used to transform, may return nullcandidates
- the list of directories
apply(Function, Iterable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |