public class PDACL extends ObjPD
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
fACLNAME |
static java.lang.String |
fDESCRIPTION |
static java.lang.String |
fGROUPNAME |
static java.lang.String |
fNAME |
static java.lang.String |
fPERMISION |
static java.lang.String |
fUSERNAME |
static int |
pCATALOG |
static int |
pDELETE |
static int |
pNOTHING |
static int |
pREAD |
static int |
pUPDATE |
static int |
pVERSION |
AllowedChars, fPDAUTOR, fPDDATE, SYN_ADD, SYN_DEL, SYN_PARENT, SYN_SEP, SYN_THES, XML_Attr, XML_Field, XML_Group, XML_GroupMembers, XML_ListAttr, XML_Metadata, XML_OPDList, XML_OPDObject, XML_User, XML_UserMembers
Constructor and Description |
---|
PDACL(DriverGeneric Drv)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(java.lang.String GroupName,
int Permision)
Add a Group to an ACL
|
void |
addUser(java.lang.String UserName,
int Permision)
Add an User to an ACL
|
void |
assignValues(Record Rec)
Assign new values to the ACL object
|
void |
DelAllGroups()
deletes-desassigns all Groups of the current ACL
|
void |
DelAllUsers()
deletes-desassigns all users of the current ACL
|
void |
delGroup(java.lang.String GroupName)
Deletes a Group from an ACL
|
void |
delGroupReferences(java.lang.String GroupName)
Deletes ALL references to a Group in ANY ACL
|
void |
delUser(java.lang.String UserName)
Deletes a User from an ACL
|
void |
delUserReferences(java.lang.String UserName)
Deletes ALL references to a User in ANY ACL
|
java.util.HashMap |
FullUserMemberShip(PDUser User)
Init retrieving of what groups the UserName is member
|
java.lang.String |
getDescription() |
java.lang.String |
getName() |
Record |
getRecord()
Returns a record with the current values
|
Record |
getRecordAclGroupsStruct()
Returns the structure of the Acl-Groups Record
|
Record |
getRecordAclUsersStruct()
Returns the structure of the Acl-Users Record
|
static java.lang.String |
getTableName()
Static method that returns the name of ACL table in DDBB
|
java.lang.String |
getTabName()
Returns the name of ACL table in DDBB
|
java.lang.String |
getTabNameAclGroups()
Returns the name of ACL-Groups table in DDBB
|
java.lang.String |
getTabNameAclUsers()
Returns the name of ACL-Users table in DDBB
|
Cursor |
ListGroups(java.lang.String ACLName)
Returns a List of Groups related to an ACL
|
Cursor |
ListUsers(java.lang.String ACLName)
Returns a List of Users related to an ACL
|
void |
ProcesXMLNode(org.w3c.dom.Node OPDObject)
Process the object definition inserting a new object
|
void |
setDescription(java.lang.String Description) |
void |
setName(java.lang.String Name) |
CheckName, Clear, delete, EndXML, getAll, getDrv, getPDAutor, getPDDate, insert, Install, Load, SearchLike, SearchLikeDesc, SearchQBE, SearchSelect, SearchSelectV, setDrv, StartXML, String2BD, toXML, unInstall, update
public static final java.lang.String fNAME
public static final java.lang.String fDESCRIPTION
public static final java.lang.String fACLNAME
public static final java.lang.String fUSERNAME
public static final java.lang.String fGROUPNAME
public static final java.lang.String fPERMISION
public static final int pNOTHING
public static final int pREAD
public static final int pCATALOG
public static final int pVERSION
public static final int pUPDATE
public static final int pDELETE
public PDACL(DriverGeneric Drv) throws PDException
Drv
- OpenProdoc driver-session for access to DDBBPDException
- In any errorpublic Record getRecord() throws PDException
getRecord
in class ObjPD
PDException
- in any errorpublic void assignValues(Record Rec) throws PDException
assignValues
in class ObjPD
Rec
- Record of ACL type with new valuesPDException
- in any errorpublic java.lang.String getTabName()
getTabName
in class ObjPD
public static java.lang.String getTableName()
public java.lang.String getTabNameAclUsers()
public java.lang.String getTabNameAclGroups()
public Record getRecordAclUsersStruct() throws PDException
PDException
- in any errorpublic Record getRecordAclGroupsStruct() throws PDException
PDException
- in any errorpublic java.lang.String getName()
public void setName(java.lang.String Name) throws PDExceptionFunc
Name
- the Name to setPDExceptionFunc
- in any errorpublic java.lang.String getDescription()
public void setDescription(java.lang.String Description)
Description
- the Description to setpublic void addUser(java.lang.String UserName, int Permision) throws PDException
UserName
- Name of the user to be addedPermision
- Permission to be assignedPDException
- if occurs any problem updatig the DDBBpublic void addGroup(java.lang.String GroupName, int Permision) throws PDException
GroupName
- Name of the user to be addedPermision
- Permission to be assignedPDException
- if occurs any problem updatig the DDBBpublic void delUser(java.lang.String UserName) throws PDException
UserName
- Name of the user to be deletedPDException
- if occurs any problem updatig the DDBBpublic void delGroup(java.lang.String GroupName) throws PDException
GroupName
- Name of the Group to be deletedPDException
- if occurs any problem updatig the DDBBpublic void delUserReferences(java.lang.String UserName) throws PDException
UserName
- Name of the user to be deletedPDException
- if occurs any problem updatig the DDBBpublic void delGroupReferences(java.lang.String GroupName) throws PDException
GroupName
- Name of the Group to be deletedPDException
- if occurs any problem updatig the DDBBpublic java.util.HashMap FullUserMemberShip(PDUser User) throws PDException
User
- user to search forPDException
- in any errorpublic Cursor ListGroups(java.lang.String ACLName) throws PDException
ACLName
- name of ACL to search forPDException
- in any errorpublic Cursor ListUsers(java.lang.String ACLName) throws PDException
ACLName
- name of ACL to search forPDException
- in any errorpublic void ProcesXMLNode(org.w3c.dom.Node OPDObject) throws PDException
ProcesXMLNode
in class ObjPD
OPDObject
- XML node containing theobject dataPDException
- if object name/index duplicated or in any errorpublic void DelAllUsers() throws PDException
PDException
- in any errorpublic void DelAllGroups() throws PDException
PDException
- in any error