|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpl.mipl.mdms.FileService.komodo.transaction.UserProfile
Contains access information for file types, super-user and admin roles. As of S5, access is bye read all, write all, admin. There is no access control on a fileType by fileType basis. Therefore, regular users (type 0) have no access.
Constructor Summary | |
UserProfile(Registry registry,
String name,
String password)
Constructor |
Method Summary | |
boolean |
add(int ftId)
Method to return true if user has add access to the input file type |
boolean |
archive(int ftId)
Method to return true if the user has update get access to this type. |
void |
configure(RegistryHandler userInfoHandler,
RegistryHandler userProfileHandler,
RegistryHandler userVFTCapHandler)
|
boolean |
confirm(int ftId)
Method to return true if the user have confirm transfer access |
boolean |
delete(int ftId)
Method to return true if the user have delete access to this type |
boolean |
get(int ftId)
Method to return true if the user have get access to this type |
String |
getFtCapListStr()
Accessor to the file type capabilities list string. |
String |
getName()
Accessor method to return user name |
int |
getUserAccess()
Access or method to return the user access mask |
int |
getUserId()
Accessor method to return user id |
String |
getVFTCapListStr()
Accessor method to the vft capabilities list string. |
boolean |
gotCapability(int ftId,
int mask)
Method to return true of false if a user has a particular capability. |
boolean |
isAdmin()
Method to return true if the user have admin privs |
boolean |
isVFT()
Method to return true if this user have vft admin. |
boolean |
lockType(int ftId)
Method to return true if user have lock file type access |
boolean |
receipt(int ftId)
Method to return true if the user have receipt for this type Note: write_all does not automatically get this. |
boolean |
rename(int ftId)
Method to return true if the user have rename to this type |
boolean |
replace(int ftId)
Method to return true if the user have replace access to this type |
void |
setFtCapabilities(Hashtable ftCapabilities)
Method to set file type capabilities lookup table. |
void |
setFtCapListStr(String ftCapListStr)
Method to set the file type capabilities string. |
boolean |
setSuperUser()
Method to return true if user can set super user |
boolean |
setuid(int ftId)
Method to return true if this user can setuid |
void |
setUserAccess(int userAccess)
Method to set user access mask |
void |
setUserId(int userId)
Method to set user id. |
void |
setVFT(boolean vft)
Method to set the user vft flag. |
void |
setVFTCapabilities(Hashtable vftCapabilities)
Method to set vft capabilities lookup table. |
void |
setVFTCapListStr(String vftCapListStr)
Method to set the vft capabilities list string. |
boolean |
subtype(int ftId)
Method to return true if the user have create subtype access |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserProfile(Registry registry, String name, String password)
name
- the user namepassword
- the user password
IllegalArgumentException
- when invalid input values
Exception
- general operation failureMethod Detail |
public void configure(RegistryHandler userInfoHandler, RegistryHandler userProfileHandler, RegistryHandler userVFTCapHandler) throws IllegalArgumentException, Exception
IllegalArgumentException
Exception
public boolean add(int ftId)
ftId
- the file type id
public boolean archive(int ftId)
ftId
- the file type id
public boolean confirm(int ftId)
ftId
- the file type id
public boolean delete(int ftId)
ftId
- the file type id
public boolean get(int ftId)
ftId
- the file type id
public boolean lockType(int ftId)
ftId
- the file type id
public boolean replace(int ftId)
ftId
- the file type id
public boolean receipt(int ftId)
ftId
- the file type id
public boolean rename(int ftId)
ftId
- the file type id
public boolean subtype(int ftId)
ftId
- the file type id
public int getUserAccess()
public void setUserAccess(int userAccess)
userAccess
- the user access maskpublic int getUserId()
public void setUserId(int userId)
userId
- the user id.public String getName()
public void setVFTCapabilities(Hashtable vftCapabilities)
vftCapabilities
- the input vft capabilities.public void setFtCapabilities(Hashtable ftCapabilities)
ftCapabilities
- input file type capabilities lookup table.public boolean gotCapability(int ftId, int mask)
ftId
- the file type idmask
- the capability mask
public boolean setuid(int ftId)
ftId
- the file type id
public boolean setSuperUser()
public boolean isAdmin()
public boolean isVFT()
public void setVFT(boolean vft)
vft
- the user vft flag.public String getFtCapListStr()
public void setFtCapListStr(String ftCapListStr)
ftCapListStr
- the file type capabilities string.public String getVFTCapListStr()
public void setVFTCapListStr(String vftCapListStr)
vftCapListStr
- the vft capabilities list string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |