public class DefaultCustomCommandManager extends Object implements NutsCustomCommandManager
| Modifier and Type | Field and Description |
|---|---|
DefaultCustomCommandsModel |
model |
NutsSession |
session |
| Constructor and Description |
|---|
DefaultCustomCommandManager(DefaultCustomCommandsModel model) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCommand(NutsCommandConfig command) |
void |
addCommandFactory(NutsCommandFactoryConfig commandFactoryConfig) |
boolean |
commandExists(String command) |
boolean |
commandFactoryExists(String factoryId) |
List<NutsWorkspaceCustomCommand> |
findAllCommands() |
NutsWorkspaceCustomCommand |
findCommand(String name) |
NutsWorkspaceCustomCommand |
findCommand(String name,
NutsId forId,
NutsId forOwner) |
List<NutsWorkspaceCustomCommand> |
findCommandsByOwner(NutsId id) |
NutsCommandFactoryConfig[] |
getCommandFactories() |
NutsSession |
getSession() |
void |
removeCommand(String command) |
void |
removeCommandFactory(String commandFactoryId) |
boolean |
removeCommandFactoryIfExists(String commandFactoryId) |
boolean |
removeCommandIfExists(String name) |
NutsCustomCommandManager |
setSession(NutsSession session) |
boolean |
updateCommand(NutsCommandConfig command) |
public DefaultCustomCommandsModel model
public NutsSession session
public DefaultCustomCommandManager(DefaultCustomCommandsModel model)
public NutsCommandFactoryConfig[] getCommandFactories()
getCommandFactories in interface NutsCustomCommandManagerpublic void addCommandFactory(NutsCommandFactoryConfig commandFactoryConfig)
addCommandFactory in interface NutsCustomCommandManagerpublic void removeCommandFactory(String commandFactoryId)
removeCommandFactory in interface NutsCustomCommandManagerpublic boolean removeCommandFactoryIfExists(String commandFactoryId)
removeCommandFactoryIfExists in interface NutsCustomCommandManagerpublic boolean commandExists(String command)
commandExists in interface NutsCustomCommandManagerpublic boolean commandFactoryExists(String factoryId)
commandFactoryExists in interface NutsCustomCommandManagerpublic boolean addCommand(NutsCommandConfig command)
addCommand in interface NutsCustomCommandManagerpublic boolean updateCommand(NutsCommandConfig command)
updateCommand in interface NutsCustomCommandManagerpublic void removeCommand(String command)
removeCommand in interface NutsCustomCommandManagerpublic boolean removeCommandIfExists(String name)
removeCommandIfExists in interface NutsCustomCommandManagerpublic NutsWorkspaceCustomCommand findCommand(String name, NutsId forId, NutsId forOwner)
findCommand in interface NutsCustomCommandManagerpublic NutsWorkspaceCustomCommand findCommand(String name)
findCommand in interface NutsCustomCommandManagerpublic List<NutsWorkspaceCustomCommand> findAllCommands()
findAllCommands in interface NutsCustomCommandManagerpublic List<NutsWorkspaceCustomCommand> findCommandsByOwner(NutsId id)
findCommandsByOwner in interface NutsCustomCommandManagerpublic NutsSession getSession()
getSession in interface NutsCustomCommandManagerpublic NutsCustomCommandManager setSession(NutsSession session)
setSession in interface NutsCustomCommandManagerCopyright © 2021 vpc open source initiative. All rights reserved.