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 String
PROTECTED_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 void
assertRights(Parameter newParameter)
Parameter
copy(String id)
void
delete(String id)
List<Parameter>
findMany(Map<String,String> attributes)
Parameter
get(String id)
Parameter
get(Map<String,String> attributes)
List<Parameter>
getAll(Integer skip, Integer limit)
protected boolean
hasGlobalParamRight()
void
init()
static boolean
isPassword(String key)
static boolean
isPassword(Parameter parameter)
protected static boolean
isProtected(Parameter oldParameter)
static Parameter
maskProtectedValue(Parameter parameter)
protected List<Parameter>
maskProtectedValues(Stream<Parameter> stream)
Parameter
newParameter()
Parameter
save(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:
init
in 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)
-
-