public CompositePermissionCheck build() { validate(); CompositePermissionCheck permissionCheck = new CompositePermissionCheck(disjunctive); permissionCheck.setAtomicChecks(atomicChecks); permissionCheck.setCompositeChecks(compositeChecks); return permissionCheck; }
public void databaseFlushSummary(Collection<DbOperation> operations) { if(isDebugEnabled()) { logDebug("008", "Flush Summary: {}", buildStringFromList(operations)); } }
@Override public int getMaxResults() { if (maxResults > DEFAULT_LIMIT_SELECT_INTERVAL) { return DEFAULT_LIMIT_SELECT_INTERVAL; } return super.getMaxResults(); }
public void configureQueryHistoricFinishedInstanceReport(ListQueryParameterObject query, Resource resource) { configureQuery(query); CompositePermissionCheck compositePermissionCheck = new PermissionCheckBuilder() .conjunctive() .atomicCheck(resource, "RES.KEY_", READ) .atomicCheck(resource, "RES.KEY_", READ_HISTORY) .build(); query.getAuthCheck().setPermissionChecks(compositePermissionCheck); }
public void setGroupId(String groupId) { if(groupId != null && authorizationType == AUTH_TYPE_GLOBAL) { throw LOG.notUsableGroupIdForGlobalAuthorizationException(); } this.groupId = groupId; }
public void performingDatabaseOperation(String operation, String component, String resourceName) { logInfo( "016", "Performing database operation '{}' on component '{}' with resource '{}'", operation, component, resourceName); }
@Override public List<HistoricDecisionInputInstance> getInputs() { if(inputs != null) { return inputs; } else { throw LOG.historicDecisionInputInstancesNotFetchedException(); } }
@Override public List<HistoricDecisionOutputInstance> getOutputs() { if(outputs != null) { return outputs; } else { throw LOG.historicDecisionOutputInstancesNotFetchedException(); } }
protected void fireEntityLoaded(Object result) { if(result != null && result instanceof DbEntity) { DbEntity entity = (DbEntity) result; for (EntityLoadListener entityLoadListener : listeners) { entityLoadListener.onEntityLoaded(entity); } } } }
@Override public String getFormKey() { if(!isFormKeyInitialized) { throw LOG.uninitializedFormKeyException(); } return formKey; }
public void logUpdateUnrelatedProcessDefinitionEntity(String thisKey, String thatKey, String thisDeploymentId, String thatDeploymentId) { logDebug( "044", "Cannot update entity from an unrelated process definition: this key '{}', that key '{}', this deploymentId '{}', that deploymentId '{}'", thisKey, thatKey, thisDeploymentId, thatDeploymentId); }
public AuthorizationCheck(String authUserId, List<String> authGroupIds, List<PermissionCheck> permissionChecks, boolean isRevokeAuthorizationCheckEnabled) { this.authUserId = authUserId; this.authGroupIds = authGroupIds; this.permissionChecks.setAtomicChecks(permissionChecks); this.isRevokeAuthorizationCheckEnabled = isRevokeAuthorizationCheckEnabled; }
public boolean isEveryPermissionRevoked() { if (authorizationType == AUTH_TYPE_GRANT) { throw LOG.permissionStateException("isEveryPermissionRevoked", "GRANT"); } return permissions == 0; }
public void configureQueryHistoricFinishedInstanceReport(ListQueryParameterObject query, Resource resource) { configureQuery(query); CompositePermissionCheck compositePermissionCheck = new PermissionCheckBuilder() .conjunctive() .atomicCheck(resource, "RES.KEY_", READ) .atomicCheck(resource, "RES.KEY_", READ_HISTORY) .build(); query.getAuthCheck().setPermissionChecks(compositePermissionCheck); }
public void databaseFlushSummary(Collection<DbOperation> operations) { if(isDebugEnabled()) { logDebug("008", "Flush Summary: {}", buildStringFromList(operations)); } }
public CompositePermissionCheck build() { validate(); CompositePermissionCheck permissionCheck = new CompositePermissionCheck(disjunctive); permissionCheck.setAtomicChecks(atomicChecks); permissionCheck.setCompositeChecks(compositeChecks); return permissionCheck; }
public void setGroupId(String groupId) { if(groupId != null && authorizationType == AUTH_TYPE_GLOBAL) { throw LOG.notUsableGroupIdForGlobalAuthorizationException(); } this.groupId = groupId; }
public void creatingHistoryLevelPropertyInDatabase(HistoryLevel historyLevel) { logInfo( "065", "Creating historyLevel property in database for level: {}", historyLevel); }
public void executingDDL(List<String> logLines) { if(isDebugEnabled()) { logDebug( "062", "Executing Schmema DDL {}", buildStringFromList(logLines)); } }
public void flushedCacheState(List<CachedDbEntity> cachedEntities) { if(isDebugEnabled()) { logDebug("006", "Cache state after flush: {}", buildStringFromList(cachedEntities)); } }