|
|
|
@ -16,10 +16,9 @@
|
|
|
|
|
* under the License.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2019, Entgra Inc. (http://www.entgra.io) All Rights Reserved.
|
|
|
|
|
/* Copyright (c) 2019, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Entgra Inc. licenses this file to you under the Apache License,
|
|
|
|
|
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
|
|
|
|
* Version 2.0 (the "License"); you may not use this file except
|
|
|
|
|
* in compliance with the License.
|
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
@ -153,4 +152,20 @@ public class LifecycleStateManger {
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isUpdatable(String state){
|
|
|
|
|
State currentState = getMatchingState(state);
|
|
|
|
|
if(currentState.getIsAppUpdatable()){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isInstallable(String state){
|
|
|
|
|
State currentState = getMatchingState(state);
|
|
|
|
|
if(currentState.getIsAppInstallable()){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|