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 java.lang.String
PROTECTED_VALUE
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description ParameterServices()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assertRights(Parameter newParameter)
Parameter
copy(java.lang.String id)
void
delete(java.lang.String id)
java.util.List<Parameter>
findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
Parameter
get(java.lang.String id)
Parameter
get(java.util.Map<java.lang.String,java.lang.String> attributes)
java.util.List<Parameter>
getAll(java.lang.Integer skip, java.lang.Integer limit)
protected boolean
hasGlobalParamRight()
void
init()
static boolean
isPassword(java.lang.String key)
static boolean
isPassword(Parameter parameter)
protected static boolean
isProtected(Parameter oldParameter)
static Parameter
maskProtectedValue(Parameter parameter)
protected java.util.List<Parameter>
maskProtectedValues(java.util.stream.Stream<Parameter> stream)
Parameter
newParameter()
Parameter
save(Parameter newParameter)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Field Detail
-
PROTECTED_VALUE
public static final java.lang.String PROTECTED_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.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") java.lang.String id) throws EncryptionManagerException
- Throws:
EncryptionManagerException
-
delete
@DELETE @Path("/{id}") public void delete(@PathParam("id") java.lang.String id)
-
isPassword
public static boolean isPassword(Parameter parameter)
-
isPassword
public static boolean isPassword(java.lang.String key)
-
get
@GET @Path("/{id}") public Parameter get(@PathParam("id") java.lang.String id)
-
maskProtectedValues
protected java.util.List<Parameter> maskProtectedValues(java.util.stream.Stream<Parameter> stream)
-
get
@POST @Path("/search") @Produces("application/json") public Parameter get(java.util.Map<java.lang.String,java.lang.String> attributes)
-
findMany
@POST @Path("/find") @Produces("application/json") public java.util.List<Parameter> findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
-
getAll
@GET @Path("/all") @Produces("application/json") public java.util.List<Parameter> getAll(@QueryParam("skip") java.lang.Integer skip, @QueryParam("limit") java.lang.Integer limit)
-
-