Class Extraction
java.lang.Object
org.ametys.plugins.extraction.execution.Extraction
Object representing the extraction definition file content
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Rights profilesstatic enum
Visibility of a Query -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtractionComponent
(ExtractionComponent extractionComponent) Add an extraction componentboolean
canRead
(UserIdentity user, GroupManager groupManager) Determines if an user has READ access to this extraction.boolean
canWrite
(UserIdentity user, GroupManager groupManager) Determines if an user has WRITE access to this extraction.Get the author of the extractionRetrieves the identifier of the extraction's descriptionRetrieves the list of variables names controlling display of optional columnsRetrieves the list of the extraction componentsGet the granted groupsGet the granted usersRetrieves the list of variables names and content type to use in queriesGet the visibility of the extractionvoid
setAuthor
(UserIdentity author) Set the author of this extraction.void
setDescriptionId
(String descriptionId) Set the identifier of the extraction's descriptionvoid
setDisplayOptionalColumnsNames
(List<String> displayOptionalColumnsNames) Set variables names controlling display of optional columnsvoid
setGrantedGroups
(Extraction.ExtractionProfile profile, Set<GroupIdentity> groups) Set the granted groupsvoid
setGrantedUsers
(Extraction.ExtractionProfile profile, Set<UserIdentity> users) Set the granted usersvoid
setQueryVariablesNamesAndContentTypes
(Map<String, String> queryVariablesNamesAndContentTypes) Set variables names and content types to use in queriesvoid
setVisibility
(Extraction.Visibility visibility) Set the extraction's visibility
-
Constructor Details
-
Extraction
public Extraction()
-
-
Method Details
-
getDescriptionId
Retrieves the identifier of the extraction's description- Returns:
- the identifier of the extraction's description
-
setDescriptionId
Set the identifier of the extraction's description- Parameters:
descriptionId
- the identifier to set
-
getExtractionComponents
Retrieves the list of the extraction components- Returns:
- The extraction components
-
addExtractionComponent
Add an extraction component- Parameters:
extractionComponent
- The extraction component to add
-
getDisplayOptionalColumnsNames
Retrieves the list of variables names controlling display of optional columns- Returns:
- The variables names
-
setDisplayOptionalColumnsNames
Set variables names controlling display of optional columns- Parameters:
displayOptionalColumnsNames
- the variables for the optional columns to set
-
getQueryVariablesNamesAndContentTypes
Retrieves the list of variables names and content type to use in queries- Returns:
- A Map containing variables names and content types
-
setQueryVariablesNamesAndContentTypes
public void setQueryVariablesNamesAndContentTypes(Map<String, String> queryVariablesNamesAndContentTypes) Set variables names and content types to use in queries- Parameters:
queryVariablesNamesAndContentTypes
- A Map containing variables names and content types to set
-
getVisibility
Get the visibility of the extraction- Returns:
- The visibility
-
setVisibility
Set the extraction's visibility- Parameters:
visibility
- the visibility
-
getAuthor
Get the author of the extraction- Returns:
- The author
-
setAuthor
Set the author of this extraction.- Parameters:
author
- the author
-
getGrantedUsers
Get the granted users- Parameters:
profile
- the extraction profile- Returns:
- the granted users
-
getGrantedGroups
Get the granted groups- Parameters:
profile
- the extraction profile- Returns:
- the granted groups
-
canRead
Determines if an user has READ access to this extraction.- Parameters:
user
- The usergroupManager
- The group manager to determine the user's groups- Returns:
true
if the user has read access,false
otherwise
-
canWrite
Determines if an user has WRITE access to this extraction.- Parameters:
user
- The usergroupManager
- The group manager to determine the user's groups- Returns:
true
if the user has write access,false
otherwise
-
setGrantedUsers
Set the granted users- Parameters:
profile
- the extraction profileusers
- the granted users
-
setGrantedGroups
Set the granted groups- Parameters:
profile
- the extraction profilegroups
- the granted groups
-