Ejemplo n.º 1
0
 public Object getObjectProperty(String objectName, String key) {
   if (objectProperties != null) {
     for (DeploymentProperty deploymentProperty : objectProperties) {
       if (deploymentProperty.getObjectName().equals(objectName)
           && deploymentProperty.getKey().equals(key)) {
         return deploymentProperty.getValue();
       }
     }
   }
   return null;
 }
Ejemplo n.º 2
0
 public boolean hasObjectProperties(String objectName) {
   if (objectProperties != null) {
     for (DeploymentProperty deploymentProperty : objectProperties) {
       if (deploymentProperty.getObjectName().equals(objectName)
           && KEY_PROCESS_DEFINITION_ID.equals(deploymentProperty.getKey())) {
         return true;
       }
     }
   }
   return false;
 }
Ejemplo n.º 3
0
 public Object removeObjectProperty(String objectName, String key) {
   if (objectProperties != null) {
     for (DeploymentProperty deploymentProperty : objectProperties) {
       if (deploymentProperty.getObjectName().equals(objectName)
           && deploymentProperty.getKey().equals(key)) {
         Object value = deploymentProperty.getValue();
         objectProperties.remove(deploymentProperty);
         return value;
       }
     }
   }
   return null;
 }