Package africa.absa.inception.security
Class UserDirectoryParameter
- java.lang.Object
-
- africa.absa.inception.security.UserDirectoryParameter
-
- All Implemented Interfaces:
Serializable
public class UserDirectoryParameter extends Object implements Serializable
The UserDirectoryParameter class stores a parameter for a user directory as a name-value pair.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserDirectoryParameter()Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, byte[] value)Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, double value)Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, long value)Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, africa.absa.inception.core.util.BinaryBuffer value)Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, String value)Constructs a new UserDirectoryParameter.UserDirectoryParameter(String name, BigDecimal value)Constructs a new UserDirectoryParameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancontains(List<UserDirectoryParameter> parameters, String name)Returns whether the list of user directory parameters contains a user directory parameter whose name matches the specified name.byte[]getBinaryValue()Returns the binary value for the user directory parameter.static byte[]getBinaryValue(List<UserDirectoryParameter> parameters, String name)Returns the binary value for the user directory parameter with the specified name in the specified list.static booleangetBooleanValue(List<UserDirectoryParameter> parameters, String name)Returns the boolean value for the user directory parameter with the specified name in the specified list.BigDecimalgetDecimalValue()Returns the BigDecimal value for the user directory parameter.static BigDecimalgetDecimalValue(List<UserDirectoryParameter> parameters, String name)Returns the BigDecimal value for the user directory parameter with the specified name in the specified list.doublegetDoubleValue()Returns the double value for the user directory parameter.static doublegetDoubleValue(List<UserDirectoryParameter> parameters, String name)Returns the double value for the user directory parameter with the specified name in the specified list.intgetIntegerValue()Returns the int value for the user directory parameter.static intgetIntegerValue(List<UserDirectoryParameter> parameters, String name)Returns the int value for the user directory parameter with the specified name in the specified list.longgetLongValue()Returns the long value for the user directory parameter.static longgetLongValue(List<UserDirectoryParameter> parameters, String name)Returns the long value for the user directory parameter with the specified name in the specified list.StringgetName()Returns the name of the user directory parameter.StringgetStringValue()Returns the String value for the user directory parameter.static StringgetStringValue(List<UserDirectoryParameter> parameters, String name)Returns the String value for the user directory parameter with the specified name in the specified list.StringgetValue()Returns the String value for the user directory parameter.voidsetBinaryValue(byte[] value)Set the binary value for the user directory parameter.voidsetBinaryValue(africa.absa.inception.core.util.BinaryBuffer value)Set the binary value for the user directory parameter.static voidsetBinaryValue(List<UserDirectoryParameter> parameters, String name, byte[] value)Set the binary value for the user directory parameter with the specified name in the specified list.static voidsetBinaryValue(List<UserDirectoryParameter> parameters, String name, africa.absa.inception.core.util.BinaryBuffer value)Set the binary value for the user directory parameter with the specified name in the specified list.voidsetBooleanValue(boolean value)Set the boolean value for the user directory parameter.voidsetDecimalValue(BigDecimal value)Set the BigDecimal value for the user directory parameter.static voidsetDecimalValue(List<UserDirectoryParameter> parameters, String name, BigDecimal value)Set the BigDecimal value for the user directory parameter with the specified name in the specified list.voidsetDoubleValue(double value)Set the double value for the user directory parameter.static voidsetDoubleValue(List<UserDirectoryParameter> parameters, String name, double value)Set the double value for the user directory parameter with the specified name in the specified list.voidsetIntegerValue(int value)Set the int value for the user directory parameter.static voidsetIntegerValue(List<UserDirectoryParameter> parameters, String name, int value)Set the int value for the user directory parameter with the specified name in the specified list.voidsetLongValue(long value)Set the long value for the user directory parameter.static voidsetLongValue(List<UserDirectoryParameter> parameters, String name, long value)Set the long value for the user directory parameter with the specified name in the specified list.voidsetName(String name)Set the name of the user directory parameter.voidsetStringValue(String value)Set the String value for the user directory parameter.static voidsetStringValue(List<UserDirectoryParameter> parameters, String name, String value)Set the String value for the user directory parameter with the specified name in the specified list.voidsetValue(String value)Set the String value for the user directory parameter.
-
-
-
Constructor Detail
-
UserDirectoryParameter
public UserDirectoryParameter()
Constructs a new UserDirectoryParameter.
-
UserDirectoryParameter
public UserDirectoryParameter(String name, BigDecimal value)
Constructs a new UserDirectoryParameter.- Parameters:
name- the name of the user directory parametervalue- the BigDecimal value for the user directory parameter
-
UserDirectoryParameter
public UserDirectoryParameter(String name, africa.absa.inception.core.util.BinaryBuffer value)
Constructs a new UserDirectoryParameter.- Parameters:
name- the name of the user directory parametervalue- the binary value for the user directory parameter
-
UserDirectoryParameter
public UserDirectoryParameter(String name, byte[] value)
Constructs a new UserDirectoryParameter.- Parameters:
name- the name of the user directory parametervalue- the binary value for the user directory parameter
-
UserDirectoryParameter
public UserDirectoryParameter(String name, double value)
Constructs a new UserDirectoryParameter.- Parameters:
name- the name of the user directory parametervalue- the double value for the user directory parameter
-
UserDirectoryParameter
public UserDirectoryParameter(String name, long value)
Constructs a new UserDirectoryParameter.- Parameters:
name- the name of the user directory parametervalue- the long value for the user directory parameter
-
-
Method Detail
-
contains
public static boolean contains(List<UserDirectoryParameter> parameters, String name)
Returns whether the list of user directory parameters contains a user directory parameter whose name matches the specified name.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- true if the list of user directory parameters contains a user directory parameter whose name matches the specified name or false otherwise
-
getBinaryValue
public static byte[] getBinaryValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the binary value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the binary value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the binary value could not be retrieved for the user directory parameter
-
getBooleanValue
public static boolean getBooleanValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the boolean value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the boolean value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the boolean value could not be retrieved for the user directory parameter
-
getDecimalValue
public static BigDecimal getDecimalValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the BigDecimal value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the BigDecimal value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the decimal value could not be retrieved for the user directory parameter
-
getDoubleValue
public static double getDoubleValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the double value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the double value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the double value could not be retrieved for the user directory parameter
-
getIntegerValue
public static int getIntegerValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the int value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the int value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the integer value could not be retrieved for the user directory parameter
-
getLongValue
public static long getLongValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the long value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the long value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the long value could not be retrieved for the user directory parameter
-
getStringValue
public static String getStringValue(List<UserDirectoryParameter> parameters, String name) throws UserDirectoryParameterException
Returns the String value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search for- Returns:
- the String value for the user directory parameter with the specified name in the specified list
- Throws:
UserDirectoryParameterException- if the string value could not be retrieved for the user directory parameter
-
setBinaryValue
public static void setBinaryValue(List<UserDirectoryParameter> parameters, String name, africa.absa.inception.core.util.BinaryBuffer value) throws UserDirectoryParameterException
Set the binary value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the binary value for the user directory parameter- Throws:
UserDirectoryParameterException- if the binary value could not be set for the user directory parameter
-
setBinaryValue
public static void setBinaryValue(List<UserDirectoryParameter> parameters, String name, byte[] value) throws UserDirectoryParameterException
Set the binary value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the binary value for the user directory parameter- Throws:
UserDirectoryParameterException- if the binary value could not be set for the user directory parameter
-
setDecimalValue
public static void setDecimalValue(List<UserDirectoryParameter> parameters, String name, BigDecimal value) throws UserDirectoryParameterException
Set the BigDecimal value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the BigDecimal value for the user directory parameter- Throws:
UserDirectoryParameterException- if the decimal value could not be set for the user directory parameter
-
setDoubleValue
public static void setDoubleValue(List<UserDirectoryParameter> parameters, String name, double value) throws UserDirectoryParameterException
Set the double value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the double value for the user directory parameter- Throws:
UserDirectoryParameterException- if the double value could not be set for the user directory parameter
-
setIntegerValue
public static void setIntegerValue(List<UserDirectoryParameter> parameters, String name, int value) throws UserDirectoryParameterException
Set the int value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the int value for the user directory parameter- Throws:
UserDirectoryParameterException- if the integer value could not be set for the user directory parameter
-
setLongValue
public static void setLongValue(List<UserDirectoryParameter> parameters, String name, long value) throws UserDirectoryParameterException
Set the long value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the long value for the user directory parameter- Throws:
UserDirectoryParameterException- if the long value could not be set for the user directory parameter
-
setStringValue
public static void setStringValue(List<UserDirectoryParameter> parameters, String name, String value) throws UserDirectoryParameterException
Set the String value for the user directory parameter with the specified name in the specified list.- Parameters:
parameters- the user directory parameters to searchname- the name of the user directory parameter to search forvalue- the String value for the user directory parameter- Throws:
UserDirectoryParameterException- if the string value could not be set for the user directory parameter
-
getBinaryValue
public byte[] getBinaryValue() throws UserDirectoryParameterExceptionReturns the binary value for the user directory parameter.- Returns:
- the binary value for the user directory parameter
- Throws:
UserDirectoryParameterException- if the binary value could not be retrieved for the user directory parameter
-
getDecimalValue
public BigDecimal getDecimalValue() throws UserDirectoryParameterException
Returns the BigDecimal value for the user directory parameter.- Returns:
- the BigDecimal value for the user directory parameter
- Throws:
UserDirectoryParameterException- if the decimal value could not be retrieved for the user directory parameter
-
getDoubleValue
public double getDoubleValue() throws UserDirectoryParameterExceptionReturns the double value for the user directory parameter.- Returns:
- the double value for the user directory parameter
- Throws:
UserDirectoryParameterException- if the double value could not be retrieved for the user directory parameter
-
getIntegerValue
public int getIntegerValue() throws UserDirectoryParameterExceptionReturns the int value for the user directory parameter.- Returns:
- the int value for the user directory parameter
- Throws:
UserDirectoryParameterException- if the integer value could not be retrieved for the user directory parameter
-
getLongValue
public long getLongValue() throws UserDirectoryParameterExceptionReturns the long value for the user directory parameter.- Returns:
- the long value for the user directory parameter
- Throws:
UserDirectoryParameterException- if the long value could not be retrieved for the user directory parameter
-
getName
public String getName()
Returns the name of the user directory parameter.- Returns:
- the name of the user directory parameter
-
getStringValue
public String getStringValue()
Returns the String value for the user directory parameter.- Returns:
- the String value for the user directory parameter
-
getValue
public String getValue()
Returns the String value for the user directory parameter.- Returns:
- the String value for the user directory parameter
-
setBinaryValue
public void setBinaryValue(africa.absa.inception.core.util.BinaryBuffer value)
Set the binary value for the user directory parameter.- Parameters:
value- the binary value for the user directory parameter
-
setBinaryValue
public void setBinaryValue(byte[] value)
Set the binary value for the user directory parameter.- Parameters:
value- the binary value for the user directory parameter
-
setBooleanValue
public void setBooleanValue(boolean value)
Set the boolean value for the user directory parameter.- Parameters:
value- the boolean value for the user directory parameter
-
setDecimalValue
public void setDecimalValue(BigDecimal value)
Set the BigDecimal value for the user directory parameter.- Parameters:
value- the BigDecimal value for the user directory parameter
-
setDoubleValue
public void setDoubleValue(double value)
Set the double value for the user directory parameter.- Parameters:
value- the double value for the user directory parameter
-
setIntegerValue
public void setIntegerValue(int value)
Set the int value for the user directory parameter.- Parameters:
value- the int value for the user directory parameter
-
setLongValue
public void setLongValue(long value)
Set the long value for the user directory parameter.- Parameters:
value- the long value for the user directory parameter
-
setName
public void setName(String name)
Set the name of the user directory parameter.- Parameters:
name- the name of the user directory parameter
-
setStringValue
public void setStringValue(String value)
Set the String value for the user directory parameter.- Parameters:
value- the String value for the user directory parameter
-
setValue
public void setValue(String value)
Set the String value for the user directory parameter.- Parameters:
value- the String value for the user directory parameter
-
-