Class ResModelChangeOperationsWebService
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService<de.aristaflow.adept2.core.resmodelmanager.ResModelChangeOperations>
-
- de.aristaflow.ilm.ws.core.resmodelmanager.ResModelChangeOperationsWebService
-
public class ResModelChangeOperationsWebService extends AbstractSubResourceWebService<de.aristaflow.adept2.core.resmodelmanager.ResModelChangeOperations>
- See Also:
ResModelChangeOperations
-
-
Field Summary
Fields Modifier and Type Field Description protected de.aristaflow.adept2.model.resourcemodel.builder.ResourceModelFactory
rmf
-
Constructor Summary
Constructors Constructor Description ResModelChangeOperationsWebService(de.aristaflow.adept2.core.resmodelmanager.ResModelChangeOperations service, AbstractSubResourceWebService<?> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Boolean
addOrUpdateUdt(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid UdtValue value)
@Valid Resource
addResourceTo(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid Resource res, String parentId)
void
commitChangeTransaction(@NotNull @Valid SessionToken session, @NotNull UUID transaction)
@Valid Resource
moveResource(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid String resId, String newParentId)
@Valid Resource
removeResource(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid String resId)
@NotNull Boolean
removeUdt(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid String udtId)
void
rollbackChangeTransaction(@NotNull @Valid SessionToken session, @NotNull UUID transaction)
@NotNull UUID
startChangeTransaction(@NotNull @Valid SessionToken session)
@Valid Resource
updateResourceAttributes(@NotNull @Valid SessionToken session, @NotNull UUID transaction, @NotNull @Valid Resource res)
-
Methods inherited from class de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService
getLogger, getLogService, getService, getServiceMetaData, getServiceUris, getSessionFactory, shutdown
-
-
-
-
Constructor Detail
-
ResModelChangeOperationsWebService
public ResModelChangeOperationsWebService(de.aristaflow.adept2.core.resmodelmanager.ResModelChangeOperations service, AbstractSubResourceWebService<?> parent) throws ServiceNotKnownException
- Throws:
ServiceNotKnownException
-
-
Method Detail
-
startChangeTransaction
@NotNull public @NotNull UUID startChangeTransaction(@NotNull @Valid @NotNull @Valid SessionToken session) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.startChangeTransaction(de.aristaflow.adept2.base.sessionmanagement.SessionToken)
-
commitChangeTransaction
public void commitChangeTransaction(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction) throws ParameterException, AbortTransactionException
- Throws:
ParameterException
AbortTransactionException
- See Also:
ResModelChangeOperations.commitChangeTransaction(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID)
-
rollbackChangeTransaction
public void rollbackChangeTransaction(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.rollbackChangeTransaction(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID)
-
addResourceTo
@Valid public @Valid Resource addResourceTo(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid Resource res, String parentId) throws ParameterException
- Throws:
IllegalArgumentException
- If the designated transaction or the designated parent ID does not exist (and is notnull
) or there are problems transforming the designated resource, anIllegalArgumentException
will be thrown.ParameterException
- See Also:
ResModelChangeOperations.addResourceTo(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, de.aristaflow.adept2.model.resourcemodel.Resource, String)
-
updateResourceAttributes
@Valid public @Valid Resource updateResourceAttributes(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid Resource res) throws ParameterException
- Throws:
IllegalArgumentException
- If the designated transaction or the ID of the designated resource does not exist or there are problems transforming the designated resource, anIllegalArgumentException
will be thrown.ParameterException
- See Also:
ResModelChangeOperations.updateResourceAttributes(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, de.aristaflow.adept2.model.resourcemodel.Resource)
-
moveResource
@Valid public @Valid Resource moveResource(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid String resId, String newParentId) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.moveResource(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, String, String)
-
removeResource
@Valid public @Valid Resource removeResource(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid String resId) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.removeResource(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, String)
-
addOrUpdateUdt
@NotNull public @NotNull Boolean addOrUpdateUdt(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid UdtValue value) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.addOrUpdateUdt(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, de.aristaflow.adept2.model.datamanagement.UDTValue)
-
removeUdt
@NotNull public @NotNull Boolean removeUdt(@NotNull @Valid @NotNull @Valid SessionToken session, @NotNull @NotNull UUID transaction, @NotNull @Valid @NotNull @Valid String udtId) throws ParameterException
- Throws:
ParameterException
- See Also:
ResModelChangeOperations.removeUdt(de.aristaflow.adept2.base.sessionmanagement.SessionToken, UUID, String)
-
-