Package io.goobi.viewer.model.security
Interface IPrivilegeHolder
- All Known Implementing Classes:
AbstractPrivilegeHolder
,License
,LicenseType
public interface IPrivilegeHolder
IPrivilegeHolder interface.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantPREFIX_PRIV="PRIV_"
static final String
ConstantPREFIX_TICKET="TICKET_"
static final String
ConstantPRIV_CMS_ALL_CATEGORIES="CMS_ALL_CATEGORIES"
static final String
ConstantPRIV_CMS_ALL_SUBTHEMES="CMS_ALL_SUBTHEMES"
static final String
ConstantPRIV_CMS_ALL_TEMPLATES="CMS_ALL_TEMPLATES"
static final String
ConstantPRIV_CMS_CATEGORIES="CMS_CATEGORIES"
static final String
ConstantPRIV_CMS_COLLECTIONS="CMS_COLLECTIONS"
static final String
ConstantPRIV_CMS_MENU="CMS_MENU"
static final String
ConstantPRIV_CMS_PAGES="CMS_PAGES"
static final String
ConstantPRIV_CMS_STATIC_PAGES="CMS_STATIC_PAGES"
static final String
ConstantPRIV_CROWDSOURCING_ALL_CAMPAIGNS="CROWDSOURCING_ALL_CAMPAIGNS"
static final String
ConstantPRIV_CROWDSOURCING_ANNOTATE_CAMPAIGN="CROWDSOURCING_ANNOTATE_CAMPAIGN"
static final String
ConstantPRIV_CROWDSOURCING_REVIEW_CAMPAIGN="CROWDSOURCING_REVIEW_CAMPAIGN"
static final String
ConstantPRIV_DELETE_OCR_PAGE="DELETE_OCR_PAGE"
static final String
ConstantPRIV_DOWNLOAD_BORN_DIGITAL_FILES="DOWNLOAD_BORN_DIGITAL_FILES"
static final String
ConstantPRIV_DOWNLOAD_IMAGES="DOWNLOAD_IMAGES"
static final String
ConstantPRIV_DOWNLOAD_METADATA="DOWNLOAD_METADATA"
static final String
ConstantPRIV_DOWNLOAD_ORIGINAL_CONTENT="DOWNLOAD_ORIGINAL_CONTENT"
static final String
ConstantPRIV_DOWNLOAD_PAGE_PDF="DOWNLOAD_PAGE_PDF"
static final String
ConstantPRIV_DOWNLOAD_PDF="DOWNLOAD_PDF"
static final String
ConstantPRIV_GENERATE_IIIF_MANIFEST="GENERATE_IIIF_MANIFEST"
static final String
ConstantPRIV_CMS_PAGES="PRIV_LEGAL_DISCLAIMER"
static final String
ConstantPRIV_LIST="LIST"
static final String
ConstantPRIV_SET_REPRESENTATIVE_IMAGE="SET_REPRESENTATIVE_IMAGE"
static final String
ConstantPRIV_VIEW_AUDIO="VIEW_AUDIO"
static final String
ConstantPRIV_VIEW_FULLTEXT="VIEW_FULLTEXT"
static final String
ConstantPRIV_VIEW_IMAGES="VIEW_IMAGES"
static final String
ConstantPRIV_VIEW_THUMBNAILS="VIEW_THUMBNAILS"
static final String
ConstantPRIV_VIEW_UGC="PRIV_VIEW_UGC"
static final String
ConstantPRIV_VIEW_VIDEO="VIEW_VIDEO"
static final String
ConstantPRIV_ZOOM_IMAGES="ZOOM_IMAGES"
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPrivilege
(String privilege) getSortedPrivileges
(Set<String> privileges) boolean
hasPrivilege
(String privilege) hasPrivilege.boolean
isPrivCmsAllCategories.boolean
isPrivCmsAllSubthemes.boolean
isPrivCmsAllTemplates.boolean
isPrivCmsCategories.boolean
isPrivCmsCollections.boolean
isPrivCmsMenu.boolean
isPrivCmsPages.boolean
isPrivCmsStaticPages.boolean
isPrivCrowdsourcingAllCampaigns.boolean
isPrivCrowdsourcingAnnotateCampaign.boolean
isPrivCrowdsourcingReviewCampaign.boolean
isPrivViewUgc.boolean
removePrivilege
(String privilege) void
setPrivCmsAllCategories
(boolean priv) setPrivCmsAllCategories.void
setPrivCmsAllSubthemes
(boolean priv) setPrivCmsAllSubthemes.void
setPrivCmsAllTemplates
(boolean priv) setPrivCmsAllTemplates.void
setPrivCmsCategories
(boolean priv) setPrivCmsCategories.void
setPrivCmsCollections
(boolean priv) setPrivCmsCollections.void
setPrivCmsMenu
(boolean priv) setPrivCmsMenu.void
setPrivCmsPages
(boolean priv) setPrivCmsPages.void
setPrivCmsStaticPages
(boolean priv) setPrivCmsStaticPages.void
setPrivCrowdsourcingAllCampaigns
(boolean priv) setPrivCrowdsourcingAllCampaigns.void
setPrivCrowdsourcingAnnotateCampaign
(boolean priv) setPrivCrowdsourcingAnnotateCampaign.void
setPrivCrowdsourcingReviewCampaign
(boolean priv) setPrivCrowdsourcingReviewCampaign.void
setPrivViewUgc
(boolean priv) setPrivViewUgc.
-
Field Details
-
PREFIX_TICKET
ConstantPREFIX_TICKET="TICKET_"
- See Also:
-
PREFIX_PRIV
ConstantPREFIX_PRIV="PRIV_"
- See Also:
-
PRIV_LIST
ConstantPRIV_LIST="LIST"
- See Also:
-
PRIV_VIEW_IMAGES
ConstantPRIV_VIEW_IMAGES="VIEW_IMAGES"
- See Also:
-
PRIV_VIEW_THUMBNAILS
ConstantPRIV_VIEW_THUMBNAILS="VIEW_THUMBNAILS"
- See Also:
-
PRIV_VIEW_FULLTEXT
ConstantPRIV_VIEW_FULLTEXT="VIEW_FULLTEXT"
- See Also:
-
PRIV_VIEW_VIDEO
ConstantPRIV_VIEW_VIDEO="VIEW_VIDEO"
- See Also:
-
PRIV_VIEW_AUDIO
ConstantPRIV_VIEW_AUDIO="VIEW_AUDIO"
- See Also:
-
PRIV_VIEW_UGC
ConstantPRIV_VIEW_UGC="PRIV_VIEW_UGC"
- See Also:
-
PRIV_DOWNLOAD_PDF
ConstantPRIV_DOWNLOAD_PDF="DOWNLOAD_PDF"
- See Also:
-
PRIV_DOWNLOAD_PAGE_PDF
ConstantPRIV_DOWNLOAD_PAGE_PDF="DOWNLOAD_PAGE_PDF"
- See Also:
-
PRIV_DOWNLOAD_ORIGINAL_CONTENT
ConstantPRIV_DOWNLOAD_ORIGINAL_CONTENT="DOWNLOAD_ORIGINAL_CONTENT"
- See Also:
-
PRIV_DOWNLOAD_METADATA
ConstantPRIV_DOWNLOAD_METADATA="DOWNLOAD_METADATA"
- See Also:
-
PRIV_DOWNLOAD_IMAGES
ConstantPRIV_DOWNLOAD_IMAGES="DOWNLOAD_IMAGES"
- See Also:
-
PRIV_GENERATE_IIIF_MANIFEST
ConstantPRIV_GENERATE_IIIF_MANIFEST="GENERATE_IIIF_MANIFEST"
- See Also:
-
PRIV_ZOOM_IMAGES
ConstantPRIV_ZOOM_IMAGES="ZOOM_IMAGES"
- See Also:
-
PRIV_DOWNLOAD_BORN_DIGITAL_FILES
ConstantPRIV_DOWNLOAD_BORN_DIGITAL_FILES="DOWNLOAD_BORN_DIGITAL_FILES"
- See Also:
-
PRIV_DELETE_OCR_PAGE
ConstantPRIV_DELETE_OCR_PAGE="DELETE_OCR_PAGE"
- See Also:
-
PRIV_SET_REPRESENTATIVE_IMAGE
ConstantPRIV_SET_REPRESENTATIVE_IMAGE="SET_REPRESENTATIVE_IMAGE"
- See Also:
-
PRIV_CMS_PAGES
ConstantPRIV_CMS_PAGES="CMS_PAGES"
- See Also:
-
PRIV_LEGAL_DISCLAIMER
ConstantPRIV_CMS_PAGES="PRIV_LEGAL_DISCLAIMER"
- See Also:
-
PRIV_CMS_ALL_SUBTHEMES
ConstantPRIV_CMS_ALL_SUBTHEMES="CMS_ALL_SUBTHEMES"
- See Also:
-
PRIV_CMS_ALL_CATEGORIES
ConstantPRIV_CMS_ALL_CATEGORIES="CMS_ALL_CATEGORIES"
- See Also:
-
PRIV_CMS_ALL_TEMPLATES
ConstantPRIV_CMS_ALL_TEMPLATES="CMS_ALL_TEMPLATES"
- See Also:
-
PRIV_CMS_MENU
ConstantPRIV_CMS_MENU="CMS_MENU"
- See Also:
-
PRIV_CMS_STATIC_PAGES
ConstantPRIV_CMS_STATIC_PAGES="CMS_STATIC_PAGES"
- See Also:
-
PRIV_CMS_COLLECTIONS
ConstantPRIV_CMS_COLLECTIONS="CMS_COLLECTIONS"
- See Also:
-
PRIV_CMS_CATEGORIES
ConstantPRIV_CMS_CATEGORIES="CMS_CATEGORIES"
- See Also:
-
PRIV_CROWDSOURCING_ALL_CAMPAIGNS
ConstantPRIV_CROWDSOURCING_ALL_CAMPAIGNS="CROWDSOURCING_ALL_CAMPAIGNS"
- See Also:
-
PRIV_CROWDSOURCING_ANNOTATE_CAMPAIGN
ConstantPRIV_CROWDSOURCING_ANNOTATE_CAMPAIGN="CROWDSOURCING_ANNOTATE_CAMPAIGN"
- See Also:
-
PRIV_CROWDSOURCING_REVIEW_CAMPAIGN
ConstantPRIV_CROWDSOURCING_REVIEW_CAMPAIGN="CROWDSOURCING_REVIEW_CAMPAIGN"
- See Also:
-
-
Method Details
-
getSortedPrivileges
-
addPrivilege
-
removePrivilege
-
hasPrivilege
hasPrivilege.
- Parameters:
privilege
- aString
object.- Returns:
- a boolean.
-
isPrivCmsPages
boolean isPrivCmsPages()isPrivCmsPages.
- Returns:
- a boolean.
-
setPrivCmsPages
void setPrivCmsPages(boolean priv) setPrivCmsPages.
- Parameters:
priv
- a boolean.
-
isPrivCmsMenu
boolean isPrivCmsMenu()isPrivCmsMenu.
- Returns:
- a boolean.
-
setPrivCmsMenu
void setPrivCmsMenu(boolean priv) setPrivCmsMenu.
- Parameters:
priv
- a boolean.
-
isPrivCmsAllSubthemes
boolean isPrivCmsAllSubthemes()isPrivCmsAllSubthemes.
- Returns:
- a boolean.
-
setPrivCmsAllSubthemes
void setPrivCmsAllSubthemes(boolean priv) setPrivCmsAllSubthemes.
- Parameters:
priv
- a boolean.
-
isPrivCmsAllCategories
boolean isPrivCmsAllCategories()isPrivCmsAllCategories.
- Returns:
- a boolean.
-
setPrivCmsAllCategories
void setPrivCmsAllCategories(boolean priv) setPrivCmsAllCategories.
- Parameters:
priv
- a boolean.
-
isPrivCmsAllTemplates
boolean isPrivCmsAllTemplates()isPrivCmsAllTemplates.
- Returns:
- a boolean.
-
setPrivCmsAllTemplates
void setPrivCmsAllTemplates(boolean priv) setPrivCmsAllTemplates.
- Parameters:
priv
- a boolean.
-
isPrivCmsStaticPages
boolean isPrivCmsStaticPages()isPrivCmsStaticPages.
- Returns:
- a boolean.
-
setPrivCmsStaticPages
void setPrivCmsStaticPages(boolean priv) setPrivCmsStaticPages.
- Parameters:
priv
- a boolean.
-
isPrivCmsCollections
boolean isPrivCmsCollections()isPrivCmsCollections.
- Returns:
- a boolean.
-
setPrivCmsCollections
void setPrivCmsCollections(boolean priv) setPrivCmsCollections.
- Parameters:
priv
- a boolean.
-
isPrivCmsCategories
boolean isPrivCmsCategories()isPrivCmsCategories.
- Returns:
- a boolean.
-
setPrivCmsCategories
void setPrivCmsCategories(boolean priv) setPrivCmsCategories.
- Parameters:
priv
- a boolean.
-
isPrivCrowdsourcingAllCampaigns
boolean isPrivCrowdsourcingAllCampaigns()isPrivCrowdsourcingAllCampaigns.
- Returns:
- a boolean.
-
setPrivCrowdsourcingAllCampaigns
void setPrivCrowdsourcingAllCampaigns(boolean priv) setPrivCrowdsourcingAllCampaigns.
- Parameters:
priv
- a boolean.
-
isPrivCrowdsourcingAnnotateCampaign
boolean isPrivCrowdsourcingAnnotateCampaign()isPrivCrowdsourcingAnnotateCampaign.
- Returns:
- a boolean.
-
setPrivCrowdsourcingAnnotateCampaign
void setPrivCrowdsourcingAnnotateCampaign(boolean priv) setPrivCrowdsourcingAnnotateCampaign.
- Parameters:
priv
- a boolean.
-
isPrivCrowdsourcingReviewCampaign
boolean isPrivCrowdsourcingReviewCampaign()isPrivCrowdsourcingReviewCampaign.
- Returns:
- a boolean.
-
setPrivCrowdsourcingReviewCampaign
void setPrivCrowdsourcingReviewCampaign(boolean priv) setPrivCrowdsourcingReviewCampaign.
- Parameters:
priv
- a boolean.
-
isPrivViewUgc
boolean isPrivViewUgc()isPrivViewUgc.
- Returns:
- a boolean.
-
setPrivViewUgc
void setPrivViewUgc(boolean priv) setPrivViewUgc.
- Parameters:
priv
- a boolean.
-