|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.dstore.miners.CheckUserAuthority
This class uses the QSYCUSRA OS/400 api to check the authorities a user profile has to an object.
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
CheckUserAuthority(com.ibm.as400.access.AS400 as400,
String userProfileName,
String libName,
String objName,
String objType)
Constructor |
Method Summary | |
---|---|
boolean |
canRead()
Find out if user has read authority to the file |
boolean |
canWrite()
Find out if user has write authority to the file |
boolean |
checkAuthority(String authList)
Check if the user profile has the specified authorities. |
com.ibm.as400.access.AS400Message[] |
getMessages()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public CheckUserAuthority(com.ibm.as400.access.AS400 as400, String userProfileName, String libName, String objName, String objType)
as400
- The iSeries system to check onuserProfileName
- The user profile to checklibName
- The library which contains the object to checkobjName
- The object to checkobjType
- The object typeMethod Detail |
public boolean canRead() throws Exception
Exception
public boolean canWrite() throws Exception
Exception
public com.ibm.as400.access.AS400Message[] getMessages()
public boolean checkAuthority(String authList) throws Exception
authList
- The list of authorities to check. The authLis is all the authorities
conncatenated together. Each authority must be 10 spaces (padded with blanks if required.)
Therefore the lenght of authList must be a multiple of 10.
Exception
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |