|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.comm.QSYSCheckUserAuthority
public class QSYSCheckUserAuthority
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 | |
---|---|
QSYSCheckUserAuthority(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. |
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 QSYSCheckUserAuthority(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 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
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |