|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.engine.security.SecurityParameterProvider
public class SecurityParameterProvider
Field Summary | |
---|---|
static String |
SCOPE_SECURITY
|
static List |
SecurityNames
|
static List |
SecurityTypes
|
Fields inherited from interface org.pentaho.platform.api.engine.IParameterProvider |
---|
SCOPE_REQUEST, SCOPE_SESSION |
Constructor Summary | |
---|---|
SecurityParameterProvider(IPentahoSession session)
|
Method Summary | |
---|---|
String |
arrayToString(org.springframework.security.GrantedAuthority[] anArray)
|
String |
arrayToString(String[] anArray)
|
Object[] |
getArrayParameter(String name,
Object[] defaultValue)
Retrieve the requested parameter as an Object array |
Date |
getDateParameter(String name,
Date defaultValue)
Retrieve the requested parameter as type java.util.Date. |
BigDecimal |
getDecimalParameter(String name,
BigDecimal defaultValue)
Retrieve the requested parameter as decimal, returning a java.lang.Object. |
String |
getListSeparator()
|
long |
getLongParameter(String name,
long defaultValue)
Retrieve the requested parameter as primitive Java type long. |
Object |
getParameter(String name)
Gets the named parameter from the provider as it's native type |
Iterator |
getParameterNames()
Return list of all avialable parameter names in this provider |
String |
getParameterType(String name)
|
String[] |
getStringArrayParameter(String name,
String[] defaultValue)
Retrieve the requested parameter as a String array |
String |
getStringParameter(String name,
String defaultValue)
Retrieve the requested parameter as type java.lang.String |
boolean |
hasParameter(String name)
|
String |
listToString(List aList)
|
void |
setListSeparator(String value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final List SecurityNames
public static final List SecurityTypes
public static final String SCOPE_SECURITY
Constructor Detail |
---|
public SecurityParameterProvider(IPentahoSession session)
Method Detail |
---|
public void setListSeparator(String value)
public String getListSeparator()
public String getStringParameter(String name, String defaultValue)
IParameterProvider
getStringParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public String listToString(List aList)
public String arrayToString(String[] anArray)
public String arrayToString(org.springframework.security.GrantedAuthority[] anArray)
public long getLongParameter(String name, long defaultValue)
IParameterProvider
getLongParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public Date getDateParameter(String name, Date defaultValue)
IParameterProvider
getDateParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public BigDecimal getDecimalParameter(String name, BigDecimal defaultValue)
IParameterProvider
getDecimalParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public Object[] getArrayParameter(String name, Object[] defaultValue)
IParameterProvider
getArrayParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public String[] getStringArrayParameter(String name, String[] defaultValue)
IParameterProvider
getStringArrayParameter
in interface IParameterProvider
name
- name of parameter to retrievedefaultValue
- value to return if the named parameter can not be found
public Iterator getParameterNames()
IParameterProvider
getParameterNames
in interface IParameterProvider
public String getParameterType(String name)
public Object getParameter(String name)
IParameterProvider
getParameter
in interface IParameterProvider
name
- The name of the parameter to retrieve
public boolean hasParameter(String name)
hasParameter
in interface IParameterProvider
name
- Name of the parameter to look up
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |