|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.studio.jira.integration.crowd.directory.DefaultDirectoryFacade
public class DefaultDirectoryFacade
Constructor Summary | |
---|---|
DefaultDirectoryFacade(com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService)
|
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 DirectoryFacade.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDirectoryFacade(com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService)
Method Detail |
---|
public DirectoryBuilder compose()
compose
in interface DirectoryFacade
public DirectoryMutator create(com.atlassian.crowd.embedded.api.Directory template)
DirectoryFacade
CrowdDirectoryService.addDirectory(Directory)
the composed directory
once DirectoryMutator.persist()
is called.
create
in interface DirectoryFacade
template
- a template used for this builder, the id is set to null
DirectoryFacade.compose()
public DirectoryMutator modify(com.atlassian.crowd.embedded.api.Directory template)
DirectoryFacade
DirectoryFacade.create(Directory)
, but it will call CrowdDirectoryService.updateDirectory(Directory)
once DirectoryMutator.persist()
is called.
modify
in interface DirectoryFacade
template
- a template used for this builder, the id has to be set
DirectoryFacade.create(Directory)
public DirectoryFilter filter()
filter
in interface DirectoryFacade
public Iterable<com.atlassian.crowd.embedded.api.Directory> all()
all
in interface DirectoryFacade
CrowdDirectoryService.findAllDirectories()
public 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)
DirectoryFacade
find
in interface DirectoryFacade
filter
- filter for the candidate directoriescandidates
- the directories to be filtered
public boolean synchronise(com.atlassian.crowd.embedded.api.Directory directory, boolean waitForSynchronisation)
DirectoryFacade
synchronise
in interface DirectoryFacade
directory
- the directory to synchronisewaitForSynchronisation
- true to execute the synchronisation in the caller's thread, false to return
immediately
CrowdDirectoryService.synchroniseDirectory(long, boolean)
public 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)
DirectoryFacade
apply
in interface DirectoryFacade
function
- the function to apply, the return value is irrelevantcandidates
- the list of directoriespublic <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)
DirectoryFacade
transform
in interface DirectoryFacade
D
- the type of the transformed directorytransformer
- the function used to transform, may return nullcandidates
- the list of directories
DirectoryFacade.apply(Function, Iterable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |