Package org.restheart.security
Class MongoPermissions
java.lang.Object
org.restheart.security.MongoPermissions
Encapsulates the permissions specific to the MongoService, definined by `mongo` property of the permission
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bson.BsonDocumentasBson()static MongoPermissionsstatic MongoPermissionsstatic MongoPermissionsfrom(org.bson.BsonDocument args) static MongoPermissionsbooleanbooleanbooleanbooleanorg.bson.BsonDocumentorg.bson.BsonDocumentorg.bson.BsonDocumentorg.bson.BsonDocumentbooleanbooleanbooleanbooleanstatic MongoPermissions
-
Field Details
-
ALLOW_ALL_MONGO_PERMISSIONS
-
-
Constructor Details
-
MongoPermissions
public MongoPermissions()
-
-
Method Details
-
of
public static MongoPermissions of(Request<?> request) throws ConfigurationException, IllegalArgumentException -
from
public static MongoPermissions from(BaseAclPermission p) throws ConfigurationException, IllegalArgumentException -
from
public static MongoPermissions from(Object raw) throws ConfigurationException, IllegalArgumentException -
from
- Throws:
ConfigurationException
-
asBson
public org.bson.BsonDocument asBson() -
from
- Throws:
ConfigurationException
-
getReadFilter
public org.bson.BsonDocument getReadFilter()- Returns:
- the readFilter
-
getWriteFilter
public org.bson.BsonDocument getWriteFilter()- Returns:
- the writeFilter
-
getMergeRequest
public org.bson.BsonDocument getMergeRequest()- Returns:
- the mergeRequest
-
getProjectResponse
public org.bson.BsonDocument getProjectResponse()- Returns:
- the projectResponse
-
getAllowManagementRequests
public boolean getAllowManagementRequests() -
isAllowManagementRequests
public boolean isAllowManagementRequests() -
getAllowBulkPatch
public boolean getAllowBulkPatch() -
isAllowBulkPatch
public boolean isAllowBulkPatch() -
getAllowBulkDelete
public boolean getAllowBulkDelete() -
isAllowBulkDelete
public boolean isAllowBulkDelete() -
getAllowWriteMode
public boolean getAllowWriteMode() -
isAllowWriteMode
public boolean isAllowWriteMode()
-