Package step.plugins.parametermanager
Class ParameterServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.plugins.parametermanager.ParameterServices
-
@Path("/parameters") public class ParameterServices extends AbstractServices
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROTECTED_VALUE-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller, SESSION
-
-
Constructor Summary
Constructors Constructor Description ParameterServices()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertRights(Parameter newParameter)Parametercopy(String id)voiddelete(String id)List<Parameter>findMany(Map<String,String> attributes)Parameterget(String id)Parameterget(Map<String,String> attributes)List<Parameter>getAll(Integer skip, Integer limit)protected booleanhasGlobalParamRight()voidinit()static booleanisPassword(String key)static booleanisPassword(Parameter parameter)protected static booleanisProtected(Parameter oldParameter)static ParametermaskProtectedValue(Parameter parameter)protected List<Parameter>maskProtectedValues(Stream<Parameter> stream)ParameternewParameter()Parametersave(Parameter newParameter)-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, invalidateSession, setSession
-
-
-
-
Field Detail
-
PROTECTED_VALUE
public static final String PROTECTED_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception- Overrides:
initin classAbstractServices- Throws:
Exception
-
newParameter
@GET @Consumes("application/json") @Produces("application/json") public Parameter newParameter()
-
save
@POST @Consumes("application/json") @Produces("application/json") public Parameter save(Parameter newParameter) throws EncryptionManagerException- Throws:
EncryptionManagerException
-
assertRights
protected void assertRights(Parameter newParameter)
-
hasGlobalParamRight
protected boolean hasGlobalParamRight()
-
isProtected
protected static boolean isProtected(Parameter oldParameter)
-
copy
@POST @Path("/{id}/copy") @Consumes("application/json") @Produces("application/json") public Parameter copy(@PathParam("id") String id) throws EncryptionManagerException- Throws:
EncryptionManagerException
-
delete
@DELETE @Path("/{id}") public void delete(@PathParam("id") String id)
-
isPassword
public static boolean isPassword(Parameter parameter)
-
isPassword
public static boolean isPassword(String key)
-
get
@POST @Path("/search") @Produces("application/json") public Parameter get(Map<String,String> attributes)
-
findMany
@POST @Path("/find") @Produces("application/json") public List<Parameter> findMany(Map<String,String> attributes)
-
-