public interface NetworkServiceLocal extends NetworkService, org.cyclos.impl.CRUDServiceLocal<Network,NetworkDTO,NetworkData,java.lang.Void>
NetworkService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GLOBAL_INTERNAL_NAME
Internal name for the "global network" (or global mode)
|
| Modifier and Type | Method and Description |
|---|---|
Network |
findByInternalName(java.lang.String internalName)
Returns a network by internal name, or throws
EntityNotFoundException if none is found |
Network |
findEnabled(java.lang.Long id)
Finds an enabled network by id, or throws
EntityNotFoundException if none is found |
Network |
getDefault()
Returns the default network if any (and is enabled).
|
java.util.List<NetworkVO> |
getManagedNetworks()
Returns the managed networks for the current admin
|
createWithData, getDataForNewWithData, getFullURL, getInitialData, getSearchData, searchfind, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String GLOBAL_INTERNAL_NAME
Network findByInternalName(java.lang.String internalName) throws FrameworkException
EntityNotFoundException if none is foundFrameworkExceptionNetwork findEnabled(java.lang.Long id) throws FrameworkException
EntityNotFoundException if none is foundFrameworkExceptionNetwork getDefault() throws FrameworkException
FrameworkExceptionjava.util.List<NetworkVO> getManagedNetworks() throws FrameworkException
FrameworkException