public class PermissionHandler extends java.lang.Object implements java.io.Serializable, PermissionHandlerWithUserI
| Constructor and Description |
|---|
PermissionHandler(DBManLocalI _dbm,
Benutzer _user) |
| Modifier and Type | Method and Description |
|---|---|
void |
addZuweisung(EntityI ent,
RechteZuweisung rightsAssignment) |
PermissionHandlerDecisionI |
checkCreateAllowed(BOI boi) |
PermissionHandlerDecisionI |
checkCreateAllowed(java.lang.Class<? extends BOI> clazz) |
PermissionHandlerDecisionI |
checkCreateAllowed(java.lang.Class<? extends BOI> clazz,
boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
Checks if the current user is allowed to create objectsof the given class (or, if given, the value of the specified attribute) .
|
PermissionHandlerDecisionI |
checkDeleteAllowed(BOI boi) |
PermissionHandlerDecisionI |
checkReadAllowed(BOI boi) |
PermissionHandlerDecisionI |
checkReadAllowed(BOI boi,
java.lang.String attributeName) |
PermissionHandlerDecisionI |
checkReadAllowed(java.lang.Class<? extends BOI> clazz) |
PermissionHandlerDecisionI |
checkReadAllowed(java.lang.Class<? extends BOI> clazz,
java.lang.String attributeName) |
PermissionHandlerDecisionI |
checkReadAllowed(java.lang.Class<? extends BOI> clazz,
java.lang.String attributeName,
boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
Checks if the current user is allowed to read objects of the given class (or, if given, the value of the specified attribute).
|
PermissionHandlerDecisionI |
checkWriteAllowed(BOI boi) |
PermissionHandlerDecisionI |
checkWriteAllowed(BOI boi,
java.lang.String attributeName) |
PermissionHandlerDecisionI |
checkWriteAllowed(java.lang.Class<? extends BOI> clazz) |
PermissionHandlerDecisionI |
checkWriteAllowed(java.lang.Class<? extends BOI> clazz,
java.lang.String attributeName) |
PermissionHandlerDecisionI |
checkWriteAllowed(java.lang.Class<? extends BOI> clazz,
java.lang.String attributeName,
boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
Checks if the current user is allowed to write objects of the given class (or, if given, the value of the specified attribute).
|
SchemaI |
getSchema() |
Benutzer |
getUser()
The structure of this class is optimized to give a fast yes or no answer to a given permission (read/write/create/delete).
|
void |
init() |
void |
initMasken()
used on client-side to initialize BOMasken of serialized transmitted PermissionHandler
|
boolean |
isAllowWriteIfNew() |
void |
setAllowWriteIfNew(boolean $18) |
void |
setSchema(SchemaI $17) |
void |
setUser(Benutzer $16) |
public PermissionHandler(DBManLocalI _dbm, Benutzer _user)
public void init()
public void addZuweisung(EntityI ent, RechteZuweisung rightsAssignment)
public void initMasken()
initMasken in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkReadAllowed(BOI boi)
checkReadAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkReadAllowed(BOI boi, java.lang.String attributeName)
checkReadAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkReadAllowed(java.lang.Class<? extends BOI> clazz)
checkReadAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkReadAllowed(java.lang.Class<? extends BOI> clazz, java.lang.String attributeName)
checkReadAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkReadAllowed(java.lang.Class<? extends BOI> clazz, java.lang.String attributeName, boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
PermissionHandlerIcheckReadAllowed in interface PermissionHandlerIclazz - the class to check for read permission.attributeName - the attribute to check for read permission.allowBOInstanceDependentFilteringMaskFitWithoutBO - if true, a BOMaske that returns true for #mightFilterDependingOnBOInstance
(and thus may match BOs of that class only partially) will still be considered to match, even if we pass no BO.
This is needed and useful in cases, where we have no BOs at hand and must not restrict the rights too much, e.g. in the navigation tree.public PermissionHandlerDecisionI checkWriteAllowed(BOI boi)
checkWriteAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkWriteAllowed(BOI boi, java.lang.String attributeName)
checkWriteAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkWriteAllowed(java.lang.Class<? extends BOI> clazz)
checkWriteAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkWriteAllowed(java.lang.Class<? extends BOI> clazz, java.lang.String attributeName)
checkWriteAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkWriteAllowed(java.lang.Class<? extends BOI> clazz, java.lang.String attributeName, boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
PermissionHandlerIcheckWriteAllowed in interface PermissionHandlerIclazz - the class to check for write permission.attributeName - the attribute to check for write permission.allowBOInstanceDependentFilteringMaskFitWithoutBO - if true, a BOMaske that returns true for #mightFilterDependingOnBOInstance
(and thus may match BOs of that class only partially) will still be considered to match, even if we pass no BO.
This is needed and useful in cases, where we have no BOs at hand and must not restrict the rights too much, e.g. in the navigation tree.public PermissionHandlerDecisionI checkCreateAllowed(BOI boi)
checkCreateAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkCreateAllowed(java.lang.Class<? extends BOI> clazz)
checkCreateAllowed in interface PermissionHandlerIpublic PermissionHandlerDecisionI checkCreateAllowed(java.lang.Class<? extends BOI> clazz, boolean allowBOInstanceDependentFilteringMaskFitWithoutBO)
PermissionHandlerIcheckCreateAllowed in interface PermissionHandlerIclazz - the class to check for create permission.allowBOInstanceDependentFilteringMaskFitWithoutBO - if true, a BOMaske that returns true for #mightFilterDependingOnBOInstance
(and thus may match BOs of that class only partially) will still be considered to match, even if we pass no BO.
This is needed and useful in cases, where we have no BOs at hand and must not restrict the rights too much, e.g. in the navigation tree.public PermissionHandlerDecisionI checkDeleteAllowed(BOI boi)
checkDeleteAllowed in interface PermissionHandlerIpublic Benutzer getUser()
public void setUser(Benutzer $16)
setUser in interface PermissionHandlerWithUserIpublic SchemaI getSchema()
public void setSchema(SchemaI $17)
setSchema in interface PermissionHandlerIpublic boolean isAllowWriteIfNew()
public void setAllowWriteIfNew(boolean $18)
setAllowWriteIfNew in interface PermissionHandlerICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.