@Singleton public class BaseAdministrationService extends Object implements AdministrationService
| Modifier and Type | Field and Description | 
|---|---|
protected RestContext<AbiquoApi,AbiquoAsyncApi> | 
context  | 
protected com.google.common.base.Supplier<Enterprise> | 
currentEnterprise  | 
protected com.google.common.base.Supplier<User> | 
currentUser  | 
protected ListCategories | 
listCategories  | 
protected ListDatacenters | 
listDatacenters  | 
protected ListEnterprises | 
listEnterprises  | 
protected ListLicenses | 
listLicenses  | 
protected ListMachines | 
listMachines  | 
protected ListPrivileges | 
listPrivileges  | 
protected ListProperties | 
listProperties  | 
protected ListRoles | 
listRoles  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
BaseAdministrationService(RestContext<AbiquoApi,AbiquoAsyncApi> context,
                         ListDatacenters listDatacenters,
                         ListMachines listMachines,
                         ListEnterprises listEnterprises,
                         ListRoles listRoles,
                         ListLicenses listLicenses,
                         ListPrivileges listPrivileges,
                         ListProperties listProperties,
                         ListCategories listCategories,
                         com.google.common.base.Supplier<User> currentUser,
                         com.google.common.base.Supplier<Enterprise> currentEnterprise)  | 
| Modifier and Type | Method and Description | 
|---|---|
Category | 
findCategory(com.google.common.base.Predicate<Category> filter)
Get the first categories that matches the given filter or  
null if none is found. | 
Datacenter | 
findDatacenter(com.google.common.base.Predicate<Datacenter> filter)
Get the first datacenter that matches the given filter or  
null if none is found. | 
Enterprise | 
findEnterprise(com.google.common.base.Predicate<Enterprise> filter)
Get the first enterprises that matches the given filter or  
null if none is
 found. | 
License | 
findLicense(com.google.common.base.Predicate<License> filter)
Get the first license that matches the given filter or  
null if none is found. | 
Machine | 
findMachine(com.google.common.base.Predicate<Machine> filter)
Get the first machine in the infrastructure that matches the given filter. 
 | 
Privilege | 
findPrivilege(com.google.common.base.Predicate<Privilege> filter)
Privilege 
 | 
Role | 
findRole(com.google.common.base.Predicate<Role> filter)
Get the first role that matches the given filter or  
null if none is found. | 
SystemProperty | 
findSystemProperty(com.google.common.base.Predicate<SystemProperty> filter)
Get the first system property that matches the given filter or  
null if none is
 found. | 
Enterprise | 
getCurrentEnterprise()
Get the enterprise of the current user. 
 | 
User | 
getCurrentUser()
User 
 | 
Datacenter | 
getDatacenter(Integer datacenterId)
Get the datacenter with the given id. 
 | 
Iterable<Datacenter> | 
getDatacenters(List<Integer> datacenterIds)
Get the list of datacenters with the given ids. 
 | 
Enterprise | 
getEnterprise(Integer enterpriseId)
Get the enterprise with the given id. 
 | 
EnterpriseProperties | 
getEnterpriseProperties(Enterprise enterprise)
Enterprise Properties 
 | 
Role | 
getRole(Integer roleId)
Get the role with the given id. 
 | 
SystemProperty | 
getSystemProperty(String name)
Get the system property with the give name or  
null if none is found. | 
Iterable<Category> | 
listCategories()
Get the list of categories. 
 | 
Iterable<Category> | 
listCategories(com.google.common.base.Predicate<Category> filter)
Get the list of categories matching the given filter. 
 | 
Iterable<Datacenter> | 
listDatacenters()
Datacenter ********************** 
 | 
Iterable<Datacenter> | 
listDatacenters(com.google.common.base.Predicate<Datacenter> filter)
Get the list of datacenters matching the given filter. 
 | 
Iterable<Enterprise> | 
listEnterprises()
Enterprise 
 | 
Iterable<Enterprise> | 
listEnterprises(com.google.common.base.Predicate<Enterprise> filter)
Get the list of enterprises matching the given filter. 
 | 
Iterable<License> | 
listLicenses()
License 
 | 
Iterable<License> | 
listLicenses(boolean active)
Get the list of all active/inactive licenses. 
 | 
Iterable<License> | 
listLicenses(com.google.common.base.Predicate<License> filter)
Get the list of licenses matching the given filter. 
 | 
Iterable<Machine> | 
listMachines()
Machine 
 | 
Iterable<Machine> | 
listMachines(com.google.common.base.Predicate<Machine> filter)
Get the list of all machines in the infrastructure matching the given filter. 
 | 
Iterable<Privilege> | 
listPrivileges()
Get the list of global privileges. 
 | 
Iterable<Privilege> | 
listPrivileges(com.google.common.base.Predicate<Privilege> filter)
Get the list of privileges matching the given filter. 
 | 
Iterable<Role> | 
listRoles()
Role ********************** 
 | 
Iterable<Role> | 
listRoles(com.google.common.base.Predicate<Role> filter)
Get the list of roles matching the given filter. 
 | 
Iterable<SystemProperty> | 
listSystemProperties()
System Properties 
 | 
Iterable<SystemProperty> | 
listSystemProperties(com.google.common.base.Predicate<SystemProperty> filter)
Get the list of system properties matching the given filter. 
 | 
Iterable<SystemProperty> | 
listSystemProperties(String component)
Get the list of system properties with options. 
 | 
protected RestContext<AbiquoApi,AbiquoAsyncApi> context
protected final ListDatacenters listDatacenters
protected final ListMachines listMachines
protected final ListEnterprises listEnterprises
protected final ListRoles listRoles
protected final ListLicenses listLicenses
protected final ListPrivileges listPrivileges
protected final ListProperties listProperties
protected final ListCategories listCategories
protected final com.google.common.base.Supplier<User> currentUser
protected final com.google.common.base.Supplier<Enterprise> currentEnterprise
@Inject protected BaseAdministrationService(RestContext<AbiquoApi,AbiquoAsyncApi> context, ListDatacenters listDatacenters, ListMachines listMachines, ListEnterprises listEnterprises, ListRoles listRoles, ListLicenses listLicenses, ListPrivileges listPrivileges, ListProperties listProperties, ListCategories listCategories, com.google.common.base.Supplier<User> currentUser, com.google.common.base.Supplier<Enterprise> currentEnterprise)
public Iterable<Datacenter> listDatacenters()
listDatacenters in interface AdministrationServicepublic Iterable<Datacenter> listDatacenters(com.google.common.base.Predicate<Datacenter> filter)
AdministrationServicelistDatacenters in interface AdministrationServicepublic Datacenter getDatacenter(Integer datacenterId)
AdministrationServicegetDatacenter in interface AdministrationServicepublic Datacenter findDatacenter(com.google.common.base.Predicate<Datacenter> filter)
AdministrationServicenull if none is found.findDatacenter in interface AdministrationServicepublic Iterable<Datacenter> getDatacenters(List<Integer> datacenterIds)
AdministrationServicegetDatacenters in interface AdministrationServicepublic Iterable<Machine> listMachines()
listMachines in interface AdministrationServicepublic Iterable<Machine> listMachines(com.google.common.base.Predicate<Machine> filter)
AdministrationServicelistMachines in interface AdministrationServicepublic Machine findMachine(com.google.common.base.Predicate<Machine> filter)
AdministrationServicefindMachine in interface AdministrationServicepublic Iterable<Enterprise> listEnterprises()
listEnterprises in interface AdministrationServicepublic Iterable<Enterprise> listEnterprises(com.google.common.base.Predicate<Enterprise> filter)
AdministrationServicelistEnterprises in interface AdministrationServicepublic Enterprise findEnterprise(com.google.common.base.Predicate<Enterprise> filter)
AdministrationServicenull if none is
 found.findEnterprise in interface AdministrationServicepublic Enterprise getEnterprise(Integer enterpriseId)
AdministrationServicegetEnterprise in interface AdministrationServicepublic EnterpriseProperties getEnterpriseProperties(Enterprise enterprise)
getEnterpriseProperties in interface AdministrationServicepublic Iterable<Role> listRoles()
listRoles in interface AdministrationServicepublic Iterable<Role> listRoles(com.google.common.base.Predicate<Role> filter)
AdministrationServicelistRoles in interface AdministrationServicepublic Role findRole(com.google.common.base.Predicate<Role> filter)
AdministrationServicenull if none is found.findRole in interface AdministrationServicepublic Role getRole(Integer roleId)
AdministrationServicegetRole in interface AdministrationServicepublic Privilege findPrivilege(com.google.common.base.Predicate<Privilege> filter)
findPrivilege in interface AdministrationServicepublic Iterable<Privilege> listPrivileges()
AdministrationServicelistPrivileges in interface AdministrationServicepublic Iterable<Privilege> listPrivileges(com.google.common.base.Predicate<Privilege> filter)
AdministrationServicelistPrivileges in interface AdministrationServicepublic User getCurrentUser()
getCurrentUser in interface AdministrationServicepublic Enterprise getCurrentEnterprise()
AdministrationServicegetCurrentEnterprise in interface AdministrationServicepublic Iterable<License> listLicenses()
listLicenses in interface AdministrationServicepublic Iterable<License> listLicenses(boolean active)
AdministrationServicelistLicenses in interface AdministrationServiceactive - Defines if searching for active (true) or inactive (
            false) licenses.public Iterable<License> listLicenses(com.google.common.base.Predicate<License> filter)
AdministrationServicelistLicenses in interface AdministrationServicepublic License findLicense(com.google.common.base.Predicate<License> filter)
AdministrationServicenull if none is found.findLicense in interface AdministrationServicepublic Iterable<SystemProperty> listSystemProperties()
listSystemProperties in interface AdministrationServicepublic Iterable<SystemProperty> listSystemProperties(com.google.common.base.Predicate<SystemProperty> filter)
AdministrationServicelistSystemProperties in interface AdministrationServicepublic SystemProperty findSystemProperty(com.google.common.base.Predicate<SystemProperty> filter)
AdministrationServicenull if none is
 found.findSystemProperty in interface AdministrationServicepublic SystemProperty getSystemProperty(String name)
AdministrationServicenull if none is found.getSystemProperty in interface AdministrationServicepublic Iterable<SystemProperty> listSystemProperties(String component)
AdministrationServicelistSystemProperties in interface AdministrationServicepublic Category findCategory(com.google.common.base.Predicate<Category> filter)
AdministrationServicenull if none is found.findCategory in interface AdministrationServicepublic Iterable<Category> listCategories()
AdministrationServicelistCategories in interface AdministrationServicepublic Iterable<Category> listCategories(com.google.common.base.Predicate<Category> filter)
AdministrationServicelistCategories in interface AdministrationServiceCopyright © 2009-2013 jclouds. All Rights Reserved.