Package com.skava.search.process.config
Class AttributeProcess
java.lang.Object
com.skava.search.process.config.AttributeProcess
This class is the AttributeProcess. Attribute process and validations is implemented in this class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttributeProcess
(com.skava.core.auth.AuthTokenHandler authTokenHandler, CollectionRepository collectionRepository, ConfigRepository configRepository, AttributeRepository attributeRepository, AttributeValueProcess attributeValueProcess, VersionUtil versionUtil) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(AttributeDO attributeDO) This function is used to create a Attribute.void
deleteById
(AttributeDO attributeDO) This function is used to delete the attribute by given id.findAllAttributes
(AttributeDO input) This function is used to find all the attributes by given config id.findById
(AttributeDO attributeDO) This function is used to find the attribute by given id.patchUpdate
(AttributeDO attributeDO) This function is used to patch update for patching the attribute.update
(AttributeDO attributeDO) This function is used to update attribute by attribute id.
-
Field Details
-
PAGE_CONSTANT
public static final int PAGE_CONSTANT- See Also:
-
ATTR_MSG
- See Also:
-
ATTR_NOT_FOUND
- See Also:
-
-
Constructor Details
-
AttributeProcess
@Autowired public AttributeProcess(com.skava.core.auth.AuthTokenHandler authTokenHandler, CollectionRepository collectionRepository, ConfigRepository configRepository, AttributeRepository attributeRepository, AttributeValueProcess attributeValueProcess, VersionUtil versionUtil)
-
-
Method Details
-
create
This function is used to create a Attribute.- Parameters:
attributeDO
- attribute do contains input data for creating attribute.- Returns:
- It returns the created attibute do.
-
update
This function is used to update attribute by attribute id.- Parameters:
attributeDO
- contains input data to update attribute.- Returns:
- It returns the updated attribute.
-
findById
This function is used to find the attribute by given id.- Parameters:
attributeDO
- It contains the attribute finding data.- Returns:
- Returns the find attribute do value.
-
deleteById
This function is used to delete the attribute by given id.- Parameters:
attributeDO
- Contains data deleting the attribute.
-
patchUpdate
This function is used to patch update for patching the attribute.- Parameters:
attributeDO
- Contains data for patching the attribute.- Returns:
- It returns the updated attribute.
-
findAllAttributes
This function is used to find all the attributes by given config id.- Parameters:
input
- it contains data for finding all the attributes.- Returns:
- It returns list of all the attributes.
-