public interface ServiceInterface extends PublicInterface
| Modifier and Type | Method and Description |
|---|---|
Long |
addExtendedDataSchema(SExtendedDataSchema extendedDataSchema)
Add an extended data schema.
|
void |
addExtendedDataToProject(Long poid,
SExtendedData extendedData) |
void |
addLocalServiceToProject(Long poid,
SService sService,
Long internalServiceOid)
Add a local service to a project
|
Long |
addModelChecker(SModelCheckerInstance modelCheckerInstance) |
void |
addModelCheckerToProject(Long poid,
Long modelCheckerOid)
Add a model checker to a project
|
Long |
addServiceToProject(Long poid,
SService sService) |
SUser |
addUser(String username,
String name,
SUserType type,
Boolean selfRegistration,
String resetUrl)
Add a new user
|
void |
addUserToExtendedDataSchema(Long uoid,
Long edsid) |
Boolean |
addUserToProject(Long uoid,
Long poid)
Add a user to a project (authorization wise)
|
SUser |
addUserWithPassword(String username,
String password,
String name,
SUserType type,
Boolean selfRegistration,
String resetUrl)
Add a new user with a given password
|
void |
changeUserType(Long uoid,
SUserType userType)
Change the type of a user
|
Long |
checkin(Long poid,
String comment,
Long deserializerOid,
Long fileSize,
String fileName,
DataHandler data,
Boolean merge,
Boolean sync)
Checkin a new model by sending a serialized form
|
Long |
checkinFromUrl(Long poid,
String comment,
Long deserializerOid,
String fileName,
String url,
Boolean merge,
Boolean sync)
Checkin a new model by sending a serialized form
|
Long |
checkinInitiated(Long topicId,
Long poid,
String comment,
Long deserializerOid,
Long fileSize,
String fileName,
DataHandler data,
Boolean merge,
Boolean sync) |
void |
cleanupLongAction(Long topicId)
Cleanup a long running action, this is important to keep memory usage of BIMserver down
|
SCompareResult |
compare(Long roid1,
Long roid2,
SCompareType sCompareType,
Long mcid)
Compare two models
|
void |
deleteService(Long oid) |
Boolean |
deleteUser(Long uoid)
Delete a User, Users van be undeleted with the undeleteUser method
|
Long |
downloadCompareResults(Long serializerOid,
Long roid1,
Long roid2,
Long mcid,
SCompareType type,
Boolean sync)
Download a compare of a model
|
List<SUser> |
getAllAuthorizedUsersOfProject(Long poid)
Get a list of users that have been authorized on the given project
|
List<SCheckout> |
getAllCheckoutsByUser(Long uoid)
Get a list of checkouts by the given user
|
List<SCheckout> |
getAllCheckoutsOfProject(Long poid)
Get all checkouts of the given project
|
List<SCheckout> |
getAllCheckoutsOfProjectAndSubProjects(Long poid)
Get a list of all checkouts of the given project and it's sub projects
|
List<SCheckout> |
getAllCheckoutsOfRevision(Long roid)
Get a list of checkouts on the given revision
|
List<SExtendedDataSchema> |
getAllExtendedDataSchemas() |
List<SProfileDescriptor> |
getAllLocalProfiles(String serviceIdentifier) |
List<SServiceDescriptor> |
getAllLocalServiceDescriptors() |
List<SModelCheckerInstance> |
getAllModelCheckers()
Get all model checkers
|
List<SModelCheckerInstance> |
getAllModelCheckersOfProject(Long poid)
Get a list of all the model checkers attached to the given Project
|
List<SProject> |
getAllNonAuthorizedProjectsOfUser(Long uoid)
Get a list of all Projects the given User does not have authorization for
|
List<SUser> |
getAllNonAuthorizedUsersOfProject(Long poid)
Get a list of all Users not authoriazed on the given Project
|
List<SProfileDescriptor> |
getAllPrivateProfiles(String notificationsUrl,
String serviceIdentifier,
String token) |
List<SProfileDescriptor> |
getAllPublicProfiles(String notificationsUrl,
String serviceIdentifier) |
List<SProject> |
getAllReadableProjects()
Get a list of all Projects the user is authorized for to read from
|
List<SProjectSmall> |
getAllRelatedProjects(Long poid)
Get a list of a project's related projects.
|
List<SExtendedDataSchema> |
getAllRepositoryExtendedDataSchemas() |
List<SModelCheckerInstance> |
getAllRepositoryModelCheckers() |
List<SRevision> |
getAllRevisionsByUser(Long uoid)
Get a list of revisions a user has committed
|
List<SServiceDescriptor> |
getAllServiceDescriptors() |
List<SService> |
getAllServicesOfProject(Long poid)
Get a list of all the services attached to the given project
|
List<SUser> |
getAllUsers()
Get a list of all users
|
List<SProject> |
getAllWritableProjects()
Get a list of all Projects the user is authorized for to write to
|
Double |
getArea(Long roid,
Long oid)
Get the area of the given object
|
List<String> |
getAvailableClasses()
Returns a list of all available classes
|
List<String> |
getAvailableClassesInRevision(Long roid)
Returns a list of all the classes that are used in the given revision
|
Set<String> |
getCheckinWarnings(Long poid)
Checkin warnings are given to users
|
Set<String> |
getCheckoutWarnings(Long poid)
Checkout warnings are given to users when checkouts are done by other users
|
SExtendedDataSchema |
getExtendedDataSchemaFromRepository(String namespace) |
SFile |
getFile(Long fileId) |
SGeometryInfo |
getGeometryInfo(Long roid,
Long oid) |
SGeoTag |
getGeoTag(Long goid)
Get the GeoTag attached to the given Project
|
SIfcHeader |
getIfcHeader(Long croid)
Get the IfcHeader of the given ConcreteRevision-ID
|
SModelCheckerInstance |
getModelCheckerInstance(Long mcioid)
Get a model checker instance by it's id
|
Long |
getNrPrimitives(Long roid) |
Long |
getOidByGuid(Long roid,
String guid)
Get the oid of the given GUID, will throw a UserException if the GUID was not found
|
String |
getQueryEngineExample(Long qeid,
String key)
Returns a query engine example (get the key from getQueryEngineExampleKeys)
|
List<String> |
getQueryEngineExampleKeys(Long qeid)
Get a list of query engine example keys (which you can then use for getQueryEngineExample)
|
SRevisionSummary |
getRevisionSummary(Long roid)
Get a revision summary
|
SService |
getService(Long soid) |
SServiceDescriptor |
getServiceDescriptor(String baseUrl,
String serviceIdentifier) |
SUser |
getUserByUoid(Long uoid)
Get a user by its User ObjectID
|
SUser |
getUserByUserName(String username)
Get a User by its UserNmae (e-mail address)
|
List<SLogAction> |
getUserRelatedLogs(Long uoid)
Get all log entries linked to the given user
|
SUserSettings |
getUserSettings()
Get the user settings of the current user
|
List<SProject> |
getUsersProjects(Long uoid)
Get a list of projects a user is authorized on
|
Double |
getVolume(Long roid,
Long oid)
Get the volume of the given object
|
void |
importData(String address,
String username,
String password,
String path)
Import data from another BIMserver, mainly used for migrations.
|
Long |
initiateCheckin(Long poid,
Long deserializerOid)
Start uploading a new model, the main reason for this call is to get a TopicID, which you can use to get progress updates
|
void |
removeModelCheckerFromProject(Long poid,
Long modelCheckerOid)
Remove the given model checker from the given project
|
void |
removeServiceFromProject(Long poid,
Long serviceOid)
Remove the given service from the given project
|
void |
removeUserFromExtendedDataSchema(Long uoid,
Long edsid) |
Boolean |
removeUserFromProject(Long uoid,
Long poid)
Remove a user from a project (authorization wise)
|
void |
sendCompareEmail(SCompareType sCompareType,
Long mcid,
Long poid,
Long roid1,
Long roid2,
String address)
Send an e-mail with the results of a compare
|
void |
setRevisionTag(Long roid,
String tag)
Set a tag on a specific revision
|
String |
shareRevision(Long roid)
Share a revision
|
void |
triggerNewExtendedData(Long edid,
Long soid) |
void |
triggerNewRevision(Long roid,
Long soid) |
Boolean |
undeleteUser(Long uoid)
Undelete a previously deleted User, Users can be deleted with the deleteUser method
|
void |
updateGeoTag(SGeoTag sGeoTag)
Update the GeoTag of a project
|
void |
updateModelChecker(SModelCheckerInstance modelCheckerInstance) |
void |
updateProject(SProject sProject)
Update project properties, the only three properties that can be updated with this call are "name", "description" and "exportLengthMeasurePrefix"
|
void |
updateRevision(SRevision sRevision)
Update a revision, not much can be changed afterwards, actually only the tag
|
Long |
uploadFile(SFile file) |
Boolean |
userHasCheckinRights(Long uoid,
Long poid)
Check whether the given user has rights on the given project
|
Boolean |
userHasRights(Long poid)
Returns whether the currents user has rights on the given project
|
void |
validateModelChecker(Long oid)
Validate a model checker
|
Long checkin(Long poid, String comment, Long deserializerOid, Long fileSize, String fileName, DataHandler data, Boolean merge, Boolean sync) throws ServerException, UserException
poid - The Project's ObjectIDcomment - A commentdeserializerOid - ObjectId of the deserializer to use, use getAllDeserializers to get a list of available deserializersfileSize - The size of the file in bytesfileName - Name of the filedata - The actual datamerge - Whether to use checkin merging (this will alter your model!) DEPRICATEDsync - Whether the call should return immediately (async) or wait for completion (sync)ServerException, - UserExceptionServerExceptionUserExceptionLong initiateCheckin(Long poid, Long deserializerOid) throws ServerException, UserException
poid - ProjectID of the project you want to upload tocomment - Comment of this checkindeserializerOid - Deserializer OIDServerExceptionUserExceptionLong checkinInitiated(Long topicId, Long poid, String comment, Long deserializerOid, Long fileSize, String fileName, DataHandler data, Boolean merge, Boolean sync) throws ServerException, UserException
ServerExceptionUserExceptionLong checkinFromUrl(Long poid, String comment, Long deserializerOid, String fileName, String url, Boolean merge, Boolean sync) throws ServerException, UserException
poid - The Project's ObjectIDcomment - A commentdeserializerOid - ObjectId of the deserializer to use, use getAllDeserializers to get a list of available deserializersfileName - Name of the fileurl - A URL to the 'file'merge - Whether to use checkin merging (this will alter your model!)sync - Whether the call should return immediately (async) or wait for completion (sync)ServerException, - UserExceptionServerExceptionUserExceptionLong downloadCompareResults(Long serializerOid, Long roid1, Long roid2, Long mcid, SCompareType type, Boolean sync) throws ServerException, UserException
roid1 - roid2 - identifier - type - sync - ServerException, - UserExceptionServerExceptionUserExceptionSUser addUser(String username, String name, SUserType type, Boolean selfRegistration, String resetUrl) throws ServerException, UserException
username - The username (must be a valid e-mail address)name - The name (e.g. "Bill Gates")type - Type of userselfRegistration - Whether this is a self-registration (for example e-mails will be different)resetUrl - Reset URL (webbased clients can provide a url that handles the activation of the account)ServerException, - UserExceptionServerExceptionUserExceptionSUser addUserWithPassword(String username, String password, String name, SUserType type, Boolean selfRegistration, String resetUrl) throws ServerException, UserException
username - The username (must be a valid e-mail address)name - The name (e.g. "Bill Gates")type - Type of userselfRegistration - Whether this is a self-registration (for example e-mails will be different)ServerException, - UserExceptionServerExceptionUserExceptionvoid changeUserType(Long uoid, SUserType userType) throws ServerException, UserException
uoid - The User's ObjectIDuserType - The new typeServerException, - UserExceptionServerExceptionUserExceptionvoid updateProject(SProject sProject) throws ServerException, UserException
sProject - A Project object containing the new propertiesServerException, - UserExceptionServerExceptionUserExceptionvoid updateRevision(SRevision sRevision) throws ServerException, UserException
sRevision - The Revision object containing the new propertiesServerException, - UserExceptionServerExceptionUserExceptionBoolean addUserToProject(Long uoid, Long poid) throws ServerException, UserException
uoid - The ObejctID of the Userpoid - The ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionBoolean removeUserFromProject(Long uoid, Long poid) throws ServerException, UserException
uoid - ObjectID of the Userpoid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionBoolean deleteUser(Long uoid) throws ServerException, UserException
uoid - ObjectID of the UserServerException, - UserExceptionServerExceptionUserExceptionList<SProject> getAllReadableProjects() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionList<SProject> getAllWritableProjects() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionList<SUser> getAllUsers() throws ServerException, UserException
ServerExceptionUserExceptionList<SService> getAllServicesOfProject(Long poid) throws ServerException, UserException
poid - Project-ID of the ProjectServerExceptionUserExceptionList<SModelCheckerInstance> getAllModelCheckersOfProject(Long poid) throws ServerException, UserException
poid - Project-ID of the ProjectServerExceptionUserExceptionList<SCheckout> getAllCheckoutsOfProject(Long poid) throws ServerException, UserException
poid - The ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionList<SRevision> getAllRevisionsByUser(Long uoid) throws ServerException, UserException
uoid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionList<SCheckout> getAllCheckoutsByUser(Long uoid) throws ServerException, UserException
uoid - ObjectID of the UserServerException, - UserExceptionServerExceptionUserExceptionList<SCheckout> getAllCheckoutsOfRevision(Long roid) throws ServerException, UserException
roid - ObjectID of the RevisionServerException, - UserExceptionServerExceptionUserExceptionList<String> getAvailableClasses() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionList<String> getAvailableClassesInRevision(Long roid) throws ServerException, UserException
roid - ObjectID of the RevisionServerException, - UserExceptionServerExceptionUserExceptionList<SProject> getAllNonAuthorizedProjectsOfUser(Long uoid) throws ServerException, UserException
uoid - ServerException, - UserExceptionServerExceptionUserExceptionSUser getUserByUserName(String username) throws ServerException, UserException
username - The username (must be a valid e-mail address)ServerException, - UserExceptionServerExceptionUserExceptionBoolean undeleteUser(Long uoid) throws ServerException, UserException
uoid - ServerException, - UserExceptionServerExceptionUserExceptionSCompareResult compare(Long roid1, Long roid2, SCompareType sCompareType, Long mcid) throws ServerException, UserException
roid1 - The ObjectID of the first Revisionroid2 - The ObjectID of the second RevisionsCompareType - How to compare (All, Only Added, Only Modified or Only Deleted)sCompareIdentifier - How to identify equal objects (by Guid or by Name)ServerException, - UserExceptionServerExceptionUserExceptionSRevisionSummary getRevisionSummary(Long roid) throws ServerException, UserException
roid - ObjectID of the RevisionServerException, - UserExceptionServerExceptionUserExceptionBoolean userHasCheckinRights(Long uoid, Long poid) throws ServerException, UserException
poid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionSet<String> getCheckoutWarnings(Long poid) throws ServerException, UserException
poid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionBoolean userHasRights(Long poid) throws ServerException, UserException
poid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionSGeoTag getGeoTag(Long goid) throws ServerException, UserException
goid - The ObjectID of the GeoTagServerException, - UserExceptionServerExceptionUserExceptionvoid updateGeoTag(SGeoTag sGeoTag) throws ServerException, UserException
sGeoTag - A GeoTag object containing the new propertiesServerException, - UserExceptionServerExceptionUserExceptionSUser getUserByUoid(Long uoid) throws ServerException, UserException
uoid - The ObjectID of the UserServerException, - UserExceptionServerExceptionUserExceptionList<SUser> getAllNonAuthorizedUsersOfProject(Long poid) throws ServerException, UserException
poid - The ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionList<SUser> getAllAuthorizedUsersOfProject(Long poid) throws ServerException, UserException
poid - ServerException, - UserExceptionServerExceptionUserExceptionList<SProject> getUsersProjects(Long uoid) throws ServerException, UserException
uoid - ServerException, - UserExceptionServerExceptionUserExceptionvoid setRevisionTag(Long roid, String tag) throws ServerException, UserException
roid - The Revision ObjectIDtag - TagServerException, - UserExceptionServerExceptionUserExceptionList<SCheckout> getAllCheckoutsOfProjectAndSubProjects(Long poid) throws ServerException, UserException
poid - Project-ID of the given ProjectServerExceptionUserExceptionvoid sendCompareEmail(SCompareType sCompareType, Long mcid, Long poid, Long roid1, Long roid2, String address) throws ServerException, UserException
sCompareType - How to compare (All, Only Added, Only Modified or Only Deleted)sCompareIdentifier - How to identify equal objects (by Guid or by Name)poid - The ObjectID of the Projectroid1 - The ObjectID of the first Revisionroid2 - The ObjectID of the second Revisionaddress - The e-mail address to send the e-mail toServerException, - UserExceptionServerExceptionUserExceptionList<String> getQueryEngineExampleKeys(Long qeid) throws ServerException, UserException
onlyEnabled - Whether to only include enabled query enginesServerException, - UserExceptionServerExceptionUserExceptionString getQueryEngineExample(Long qeid, String key) throws ServerException, UserException
onlyEnabled - Whether to only include enabled query enginesServerException, - UserExceptionServerExceptionUserExceptionLong addExtendedDataSchema(SExtendedDataSchema extendedDataSchema) throws ServerException, UserException
extendedDataSchema - ExtendedDataSchema to addServerException, - UserExceptionServerExceptionUserExceptionvoid addUserToExtendedDataSchema(Long uoid, Long edsid) throws ServerException, UserException
uoid - ObjectID of the Useredsid - ObjectID of the ExtendedDataSchemaUserExceptionServerException, - UserExceptionServerExceptionvoid removeUserFromExtendedDataSchema(Long uoid, Long edsid) throws ServerException, UserException
uoid - ObjectID of the Useredsid - ObjectID of the ExtendedDataSchemaUserExceptionServerException, - UserExceptionServerExceptionSExtendedDataSchema getExtendedDataSchemaFromRepository(String namespace) throws UserException, ServerException
UserExceptionServerExceptionvoid addExtendedDataToProject(Long poid, SExtendedData extendedData) throws ServerException, UserException
roid - ObjectID of the RevisionextendedData - ExtendedData to addServerException, - UserExceptionServerExceptionUserExceptionSet<String> getCheckinWarnings(Long poid) throws ServerException, UserException
poid - ObjectID of the ProjectServerException, - UserExceptionServerExceptionUserExceptionList<SExtendedDataSchema> getAllExtendedDataSchemas() throws ServerException, UserException
ServerExceptionUserExceptionSServiceDescriptor getServiceDescriptor(String baseUrl, String serviceIdentifier) throws ServerException, UserException
baseUrl - serviceIdentifier - ServerExceptionUserExceptionList<SServiceDescriptor> getAllServiceDescriptors() throws ServerException, UserException
ServerExceptionUserExceptionList<SExtendedDataSchema> getAllRepositoryExtendedDataSchemas() throws ServerException, UserException
ServerExceptionUserExceptionList<SModelCheckerInstance> getAllRepositoryModelCheckers() throws ServerException, UserException
ServerExceptionUserExceptionList<SProfileDescriptor> getAllPublicProfiles(String notificationsUrl, String serviceIdentifier) throws ServerException, UserException
notificationsUrl - serviceIdentifier - ServerExceptionUserExceptionLong addServiceToProject(Long poid, SService sService) throws ServerException, UserException
poid - sService - ServerExceptionUserExceptionvoid deleteService(Long oid) throws ServerException, UserException
oid - ServerExceptionUserExceptionSService getService(Long soid) throws ServerException, UserException
soid - ServerExceptionUserExceptionList<SProfileDescriptor> getAllPrivateProfiles(String notificationsUrl, String serviceIdentifier, String token) throws ServerException, UserException
notificationsUrl - serviceIdentifier - token - ServerExceptionUserExceptionLong uploadFile(SFile file) throws ServerException, UserException
file - ServerExceptionUserExceptionSFile getFile(Long fileId) throws ServerException, UserException
fileId - ServerExceptionUserExceptionvoid triggerNewRevision(Long roid, Long soid) throws ServerException, UserException
roid - soid - ServerExceptionUserExceptionvoid triggerNewExtendedData(Long edid, Long soid) throws ServerException, UserException
edid - soid - ServerExceptionUserExceptionList<SServiceDescriptor> getAllLocalServiceDescriptors() throws ServerException, UserException
ServerExceptionUserExceptionList<SProfileDescriptor> getAllLocalProfiles(String serviceIdentifier) throws ServerException, UserException
serviceIdentifier - ServerExceptionUserExceptionvoid addLocalServiceToProject(Long poid, SService sService, Long internalServiceOid) throws ServerException, UserException
poid - sService - internalServiceOid - ServerExceptionUserExceptionString shareRevision(Long roid) throws UserException, ServerException
roid - UserExceptionServerExceptionLong getOidByGuid(Long roid, String guid) throws ServerException, UserException
roid - Revision in which to lookguid - GUIDServerExceptionUserExceptionvoid cleanupLongAction(Long topicId) throws UserException, ServerException
topicId - UserExceptionServerExceptionSUserSettings getUserSettings() throws ServerException, UserException
ServerExceptionUserExceptionList<SLogAction> getUserRelatedLogs(Long uoid) throws ServerException, UserException
uoid - ServerExceptionUserExceptionList<SProjectSmall> getAllRelatedProjects(Long poid) throws ServerException, UserException
poid - The projectID of the projectServerExceptionUserExceptionList<SModelCheckerInstance> getAllModelCheckers() throws UserException, ServerException
UserExceptionServerExceptionLong addModelChecker(SModelCheckerInstance modelCheckerInstance) throws UserException, ServerException
modelCheckerInstance - UserExceptionServerExceptionvoid updateModelChecker(SModelCheckerInstance modelCheckerInstance) throws UserException, ServerException
modelCheckerInstance - UserExceptionServerExceptionvoid validateModelChecker(Long oid) throws UserException, ServerException
oid - UserExceptionServerExceptionvoid addModelCheckerToProject(Long poid, Long modelCheckerOid) throws ServerException, UserException
poid - Project-IDmodelCheckerOid - ModelChecker IDServerExceptionUserExceptionSModelCheckerInstance getModelCheckerInstance(Long mcioid) throws UserException, ServerException
mcioid - UserExceptionServerExceptionvoid removeModelCheckerFromProject(Long poid, Long modelCheckerOid) throws ServerException, UserException
poid - Project-IDmodelCheckerOid - Model Checker IDServerExceptionUserExceptionvoid removeServiceFromProject(Long poid, Long serviceOid) throws ServerException, UserException
poid - Project-IDserviceOid - Service-IDServerExceptionUserExceptionvoid importData(String address, String username, String password, String path) throws ServerException, UserException
address - Address of the other BIMserver (http(s)://host:port/[contextpath])username - Username of the admin user on the remote serverpassword - Password of the admin user on the remote serverpath - A local path pointing to a copy of the incoming directory of the original serverServerExceptionUserExceptionSIfcHeader getIfcHeader(Long croid) throws UserException, ServerException
croid - UserExceptionServerExceptionDouble getArea(Long roid, Long oid) throws UserException, ServerException
roid - Revision-ID of the revision this object belongs tooid - Object-ID of the objectUserExceptionServerExceptionDouble getVolume(Long roid, Long oid) throws UserException, ServerException
roid - Revision-ID of the revision this object belongs tooid - Object-ID of the objectUserExceptionServerExceptionSGeometryInfo getGeometryInfo(Long roid, Long oid) throws UserException, ServerException
roid - Revision-ID of the revision this object belongs tooid - Object-ID of the object (IfcProduct subtype)UserExceptionServerExceptionLong getNrPrimitives(Long roid) throws ServerException, UserException
ServerExceptionUserExceptionCopyright © 2016 OpenSource BIM. All rights reserved.