This service is responsible for handling security issues. It provides methods
to check whether a user is allowed to trigger a certain action.
author: Sebastian Marsching
Method Summary
void
checkAdmin() Checks whether the user currently logged in is allowed to perform
administrative tasks.
Checks whether the user currently logged in is allowed to perform
administrative tasks.
throws: EditorSecurityException - if the current user is no admin
Checks whether the user currently logged in is allowed to create a new
IncludePartThemeVariant for the specified
IncludePart and
the specified
Theme .
Parameters: part - The part to do the check for Parameters: theme - The theme to do the check for throws: EditorSecurityException - if the user is not allowed to create the variant
Checks whether the user currently logged in is allowed to edit dynamic
includes.
throws: EditorSecurityException - if the current user is not allowed to edit
Checks whether the user currently logged in is allowed to edit the
specified
Image .
Parameters: image - The image to do the check for throws: EditorSecurityException - if the current user is not allowed to edit
Checks whether the user currently logged in is allowed to edit the
specified
IncludePartThemeVariant .
Parameters: part - The part variant to do the check for throws: EditorSecurityException - if the current user is not allowed to edit
Returns the principal that is identifying the current user.
Principal identifying the user currently logged in ornull if no user is currently logged in.
Checks whether the user currently logged in is allowed to create a new
IncludePartThemeVariant for the specified
IncludePart and
the specified
Theme .
Parameters: part - The part to do the check for Parameters: theme - The theme to do the check for true if the user is allowed to create the variant,false otherwise
Checks whether the user currently logged in is allowed to edit the
specified
Image .
Parameters: image - The image to do the check for true if the user is allowed to edit,false otherwise
Checks whether the user currently logged in is allowed to edit the
specified
IncludePartThemeVariant .
Parameters: part - The part variant to do the check for true if the user is allowed to edit,false otherwise