@Component(value="attributeBusinessLogic") public class AttributeBusinessLogic extends BaseBusinessLogic
applicationDataTypeCache, artifactOperation, attributeOperation, componentsUtils, elementDao, graphLockOperation, groupOperation, groupTypeOperation, productOperation, propertyOperation, resourceOperation, serviceOperation, titanGenericDao, userAdmin
Constructor and Description |
---|
AttributeBusinessLogic() |
Modifier and Type | Method and Description |
---|---|
fj.data.Either<AttributeDefinition,ResponseFormat> |
createAttribute(String resourceId,
AttributeDefinition newAttributeDef,
String userId)
Created attribute on the resource with resourceId
|
fj.data.Either<AttributeDefinition,ResponseFormat> |
deleteAttribute(String resourceId,
String attributeId,
String userId)
Deletes Attribute on resource
|
fj.data.Either<AttributeDefinition,ResponseFormat> |
getAttribute(String resourceId,
String attributeId,
String userId) |
fj.data.Either<AttributeDefinition,ResponseFormat> |
updateAttribute(String resourceId,
String attributeId,
AttributeDefinition newAttDef,
String userId)
Updates Attribute on resource
|
commitOrRollback, getAllDataTypes, getComponentOperation, getComponentOperationByParentComponentType, getComponentTypeByParentComponentType, getIComponentOperation, getResource, getType, handleDefaultValue, lockComponent, lockComponent, lockComponentByName, setComponentsUtils, setGraphLockOperation, setTitanGenericDao, setUserAdmin, unlockComponent, unlockComponent, validateCanWorkOnComponent, validateCanWorkOnComponent, validateComponentExists, validateComponentExists, validateComponentExistsByFilter, validateComponentLock, validateComponentType, validateComponentTypeEnum, validateJsonBody, validatePropertyDefaultValue, validateUserExist, validateUserExists, validateUserExists, validateUserExistsActionStatus, validateUserNotEmpty, validateUserRole
public fj.data.Either<AttributeDefinition,ResponseFormat> createAttribute(String resourceId, AttributeDefinition newAttributeDef, String userId)
resourceId
- newAttributeDef
- userId
- public fj.data.Either<AttributeDefinition,ResponseFormat> getAttribute(String resourceId, String attributeId, String userId)
resourceId
- attributeId
- userId
- public fj.data.Either<AttributeDefinition,ResponseFormat> updateAttribute(String resourceId, String attributeId, AttributeDefinition newAttDef, String userId)
resourceId
- attributeId
- newAttDef
- userId
- public fj.data.Either<AttributeDefinition,ResponseFormat> deleteAttribute(String resourceId, String attributeId, String userId)
resourceId
- attributeId
- userId
- Copyright © 2017. All rights reserved.