public class ProjectRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
ProjectRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addProject_(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
Map<String,String> project)
This method create a project
eg: request: http://{domain_name}/{rest_context_name}/private/bbprojectservice/create
{
"projectName":"projectName",
"projectDescription":"projectDescription",
"ownerType":"ownerType",
"projectType":"projectType",
"StructureEntity":"StructureEntity",
"nbBuildings":"nbBuildings",
"storiesAboveGrd":"storiesAboveGrd",
"storiesBelowGrd":"storiesBelowGrd",
"totalSqFt":"totalSqFt",
"projectValuation":"projectValuation",
"projectStatus":"projectStatus",
"bidsDueDate":"bidsDueDate",
"startDate":"startDate",
"preBidMeetingDate":"preBidMeetingDate",
"union":"union",
"nonUnion":"nonUnion",
"prevailingWage":"prevailingWage",
"bidSecurity":"bidSecurity",
"performanceBond":"performanceBond",
"paymentBond":"paymentBond",
"mbeGoal":"mbeGoal",
"dbeGoal":"dbeGoal",
"hubzone":"hubzone",
"leed":"leed",
"bim":"bim",
"adress":"adress",
"city":"city",
"state":"state",
"zip":"zip",
"country":"country",
"architect":"architect",
"engineer":"engineer",
"owner":"owner",
"geoPosition":{
"k":40.69443569856639,
"B":-73.94365310668945
},
"avatar":"/social-resources/skin/images/ShareImages/SpaceAvtDefault.png"
}
|
javax.ws.rs.core.Response |
archiveProject_(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String projectId) |
javax.ws.rs.core.Response |
bidScopeSubStatus(javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String subId) |
javax.ws.rs.core.Response |
deleteProject_(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String projectId) |
javax.ws.rs.core.Response |
emailSetsubstatus(javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String catId,
String subId)
This method set the sub status in a project
eg: request: http://{domain_name}/{rest_context_name}/setsubstatus/{projectId}/{status}
Status can be: "NOT_MESS", "INVITED", "REVIEWING", "UNDECIDED", "BIDDING", "NOT_BIDDING", "SUBMITTED",
|
javax.ws.rs.core.Response |
getAllInvitedSubs(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
boolean isvendor,
String filteredgroups,
String filteredclassifications,
String SearchKey,
Boolean isreport,
int limit,
int offset)
This method return the list of subs by status in a project
eg: request: http://{domain_name}/{rest_context_name}/getsubsbystatus/{projectId}/{status}
Status can be: "NOT_MESS", "INVITED", "REVIEWING", "UNDECIDED", "BIDDING", "NOT_BIDDING", "SUBMITTED",
|
javax.ws.rs.core.Response |
getAllProjects(javax.servlet.http.HttpServletRequest request,
String beginby,
String searchCondition,
int limit,
int offset)
This method return the list of spaces where user is e member
eg: request: http://{domain_name}/{rest_context_name}/getallprojects
|
javax.ws.rs.core.Response |
getBbSubs(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
String status)
This method is used to get the list of subs by project Id from one instance to demo connection
eg: request: http://localhost:8080/rest/private/bbprojectservice/getbbsubs/{projectId}?status={status}
|
javax.ws.rs.core.Response |
getCategories(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
Boolean notmessaged) |
javax.ws.rs.core.Response |
getCategoriesStats(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
boolean notinvited,
BbFilteredSearchRequest searchRequest) |
javax.ws.rs.core.Response |
getInvitedSubsForReport(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
String filteredclassifications,
boolean notinvited,
BbFilteredSearchRequest searchRequest) |
javax.ws.rs.core.Response |
getMessInfo(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String projectId) |
javax.ws.rs.core.Response |
getMySpaces(javax.servlet.http.HttpServletRequest request,
String beginby,
String searchCondition,
int limit,
int offset)
This method return the list of spaces where user is e member
eg: request: http://{domain_name}/{rest_context_name}//getmyspaces?type={type}&name={name}&limit={limit}&offset={offset}&owner=true
|
javax.ws.rs.core.Response |
getProject_(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String projectId)
This method get a project by the project name
eg: request: http://{domain_name}/{rest_context_name}/private/bbprojectservice/get/dddddddddd
|
static String |
getStructure(Object structure) |
javax.ws.rs.core.Response |
getSubsbyStatus(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
String status,
boolean isinvitedtable,
boolean isvendor,
String filteredgroups,
String filteredclassifications,
String SearchKey,
Boolean isreport,
int limit,
int offset)
This method return the list of subs by status in a project
eg: request: http://{domain_name}/{rest_context_name}/getsubsbystatus/{projectId}/{status}
Status can be: "NOT_MESS", "INVITED", "REVIEWING", "UNDECIDED", "BIDDING", "NOT_BIDDING", "SUBMITTED",
|
javax.ws.rs.core.Response |
getUsersReports(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String projectId,
String categoriesId,
BbFilteredSearchRequest searchRequest) |
static boolean |
isAdmin(org.exoplatform.services.security.Identity userId) |
static boolean |
isNumeric(String str) |
javax.ws.rs.core.Response |
setBidscop(javax.servlet.http.HttpServletRequest request,
String projectId,
String bidscop) |
javax.ws.rs.core.Response |
setsubstatus(javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String catId,
String subId,
String notes,
String bid)
This method set the sub status in a project
eg: request: http://{domain_name}/{rest_context_name}/setsubstatus/{projectId}/{status}
Status can be: "NOT_MESS", "INVITED", "REVIEWING", "UNDECIDED", "BIDDING", "NOT_BIDDING", "SUBMITTED",
|
void |
updateBidScopStatus(String uid,
String projectId,
String refuid,
String bidStatus) |
javax.ws.rs.core.Response |
updateProject_(javax.servlet.http.HttpServletRequest request,
javax.ws.rs.core.UriInfo uriInfo,
String projectId,
Map<String,String> project)
This method get a space by the pretty name
eg: request: http://localhost:8080/rest/private/bbprojectservice/update/projectId
{
"projectName":"projectName",
"projectDescription":"projectDescription",
"owner":"owner",
"projectType":"projectType",
"StructureEntity":"StructureEntity",
"nbBuildings":"nbBuildings",
"storiesAboveGrd":"storiesAboveGrd",
"storiesBelowGrd":"storiesBelowGrd",
"totalSqFt":"totalSqFt",
"projectValuation":"projectValuation",
"projectStatus":"",
"preBidMeetingDate":"",
"bidsDueDate":"",
"startDate":"",
"union":"",
"nonUnion":"",
"prevailingWage":"",
"bidSecurity":"",
"performanceBond":"",
"paymentBond":"",
"mbeGoal":"",
"dbeGoal":"",
"hubzone":"",
"leed":"",
"bim":"",
"adress":"",
"city":"",
"state":"",
"zip":"",
"country":"",
"architect":"",
"engineer":"",
"owner":"",
}
|
public static final int WIDTH
public static final int HEIGHT
public static boolean isNumeric(String str)
public static boolean isAdmin(org.exoplatform.services.security.Identity userId)
public javax.ws.rs.core.Response addProject_(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
Map<String,String> project)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getProject_(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String projectId)
throws Exception
projectId - Exceptionpublic javax.ws.rs.core.Response archiveProject_(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String projectId)
throws Exception
Exceptionpublic javax.ws.rs.core.Response deleteProject_(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String projectId)
throws Exception
Exceptionpublic javax.ws.rs.core.Response updateProject_(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String projectId,
Map<String,String> project)
throws Exception
uriInfo - Exceptionpublic javax.ws.rs.core.Response getAllProjects(@Context
javax.servlet.http.HttpServletRequest request,
String beginby,
String searchCondition,
int limit,
int offset)
limit - offset - public javax.ws.rs.core.Response getMySpaces(@Context
javax.servlet.http.HttpServletRequest request,
String beginby,
String searchCondition,
int limit,
int offset)
limit - offset - public javax.ws.rs.core.Response getSubsbyStatus(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
String status,
boolean isinvitedtable,
boolean isvendor,
String filteredgroups,
String filteredclassifications,
String SearchKey,
Boolean isreport,
int limit,
int offset)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getAllInvitedSubs(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
boolean isvendor,
String filteredgroups,
String filteredclassifications,
String SearchKey,
Boolean isreport,
int limit,
int offset)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getInvitedSubsForReport(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
String filteredclassifications,
boolean notinvited,
BbFilteredSearchRequest searchRequest)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getBbSubs(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
String status)
throws Exception
request - response - projectId - status - Exceptionpublic javax.ws.rs.core.Response setBidscop(@Context
javax.servlet.http.HttpServletRequest request,
String projectId,
String bidscop)
public javax.ws.rs.core.Response setsubstatus(@Context
javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String catId,
String subId,
String notes,
String bid)
public javax.ws.rs.core.Response emailSetsubstatus(@Context
javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String catId,
String subId)
public javax.ws.rs.core.Response bidScopeSubStatus(@Context
javax.servlet.http.HttpServletRequest request,
String projectId,
String status,
String subId)
public javax.ws.rs.core.Response getUsersReports(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
String categoriesId,
BbFilteredSearchRequest searchRequest)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getCategories(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
Boolean notmessaged)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getCategoriesStats(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.servlet.http.HttpServletResponse response,
String projectId,
boolean notinvited,
BbFilteredSearchRequest searchRequest)
throws Exception
Exceptionpublic javax.ws.rs.core.Response getMessInfo(@Context
javax.servlet.http.HttpServletRequest request,
@Context
javax.ws.rs.core.UriInfo uriInfo,
String projectId)
throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.