Class ProjectServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.ProjectServiceImpl
-
- All Implemented Interfaces:
ProjectService,RestService
public class ProjectServiceImpl extends BaseIdentityServices implements ProjectService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ProjectServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Projectcreate(String domainId, String name, String description, boolean enabled)Creates a new ProjectProjectcreate(Project project)Creates a new ProjectActionResponsedelete(String projectId)delete a project by idProjectget(String projectId)get detailed information on a projectList<? extends Project>getByName(String projectName)get detailed information about projects machting specified name across all domainsProjectgetByName(String projectName, String domainId)get detailed information about a project specified by project name and domain idList<? extends Project>list()list all projects the current token has access toProjectupdate(Project project)updates an existing project-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
create
public Project create(Project project)
Description copied from interface:ProjectServiceCreates a new Project- Specified by:
createin interfaceProjectService- Parameters:
project- the project to create- Returns:
- the new Project including it's id
-
create
public Project create(String domainId, String name, String description, boolean enabled)
Description copied from interface:ProjectServiceCreates a new Project- Specified by:
createin interfaceProjectService- Parameters:
domainId- the domain idname- the name of the new projectdescription- the description of the new projectenabled- the enabled status of the new project- Returns:
- the newly created project
-
get
public Project get(String projectId)
Description copied from interface:ProjectServiceget detailed information on a project- Specified by:
getin interfaceProjectService- Parameters:
projectId- the project id- Returns:
- the project
-
getByName
public List<? extends Project> getByName(String projectName)
Description copied from interface:ProjectServiceget detailed information about projects machting specified name across all domains- Specified by:
getByNamein interfaceProjectService- Parameters:
projectName- the project name- Returns:
- the list of projects matching the name across all domains
-
getByName
public Project getByName(String projectName, String domainId)
Description copied from interface:ProjectServiceget detailed information about a project specified by project name and domain id- Specified by:
getByNamein interfaceProjectService- Parameters:
projectName- the project namedomainId- the domain id- Returns:
- the project or null if not found
-
update
public Project update(Project project)
Description copied from interface:ProjectServiceupdates an existing project- Specified by:
updatein interfaceProjectService- Parameters:
project- the project set to update- Returns:
- the updated project
-
delete
public ActionResponse delete(String projectId)
Description copied from interface:ProjectServicedelete a project by id- Specified by:
deletein interfaceProjectService- Parameters:
projectId- the project id- Returns:
- the ActionResponse
-
list
public List<? extends Project> list()
Description copied from interface:ProjectServicelist all projects the current token has access to- Specified by:
listin interfaceProjectService- Returns:
- list of projects
-
-