Class Acl
java.lang.Object
- All Implemented Interfaces:
java.lang.Comparable<Acl>
,DbPojo
,HashLookupPojo<Acl>
@Entity(name="Acl") public class Acl extends HashLookupTemplate<Acl>
Represents a reusable "object lookup", for an acl object returned from the
Nessus API at /scans/<scan-id>
-
Field Summary
Fields Modifier and Type Field Description static HashLookupDao<Acl>
dao
The dao for Acl -
Constructor Summary
Constructors Constructor Description Acl()
-
Method Summary
Modifier and Type Method Description boolean
_match(Acl o)
Determine if this pojo represents the same DB record as another POJO of the same type.void
_prepare()
Perform any operations necessary to prepare this pojo for insertion or updating in the databasevoid
_set(Acl o)
Synchronize the values of two matching POJOs which represent the same DB recordjava.lang.String
getDisplayName()
Gets display name.java.lang.String
getName()
Gets name.java.lang.Integer
getNessusId()
Gets nessus id.java.lang.Integer
getOwner()
Gets owner.int
getPermissions()
Gets permissions.java.lang.String
getType()
Gets type.void
setDisplayName(java.lang.String displayName)
Sets display name.void
setName(java.lang.String name)
Sets name.void
setNessusId(java.lang.Integer nessusId)
Sets nessus id.void
setOwner(java.lang.Integer owner)
Sets owner.void
setPermissions(int permissions)
Sets permissions.void
setType(java.lang.String type)
Sets type.Methods inherited from class tenapull.data.entity.template.HashLookupTemplate
__prepare, __set, _isHashCalculated, get_hash, hashCode, set_hash
Methods inherited from class tenapull.data.entity.template.ExtensibleJsonPojo
getExtraJson, getExtraJson, getExtraJsonMap, putExtraJson, setExtraJson, toJsonNode, toJsonString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface tenapull.data.entity.template.DbPojo
getId, setId, toJsonNode, toJsonString
-
Field Details
-
dao
The dao for Acl
-
-
Constructor Details
-
Acl
public Acl()
-
-
Method Details
-
getNessusId
public java.lang.Integer getNessusId()Gets nessus id.- Returns:
- the nessus id
-
setNessusId
public void setNessusId(java.lang.Integer nessusId)Sets nessus id.- Parameters:
nessusId
- the nessus id
-
getOwner
public java.lang.Integer getOwner()Gets owner.- Returns:
- the owner
-
setOwner
public void setOwner(java.lang.Integer owner)Sets owner.- Parameters:
owner
- the owner
-
getPermissions
public int getPermissions()Gets permissions.- Returns:
- the permissions
-
setPermissions
public void setPermissions(int permissions)Sets permissions.- Parameters:
permissions
- the permissions
-
getName
public java.lang.String getName()Gets name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)Sets name.- Parameters:
name
- the name
-
getDisplayName
public java.lang.String getDisplayName()Gets display name.- Returns:
- the display name
-
setDisplayName
public void setDisplayName(java.lang.String displayName)Sets display name.- Parameters:
displayName
- the display name
-
getType
public java.lang.String getType()Gets type.- Returns:
- the type
-
setType
public void setType(java.lang.String type)Sets type.- Parameters:
type
- the type
-
_prepare
public void _prepare()Description copied from interface:DbPojo
Perform any operations necessary to prepare this pojo for insertion or updating in the database -
_set
Description copied from interface:HashLookupPojo
Synchronize the values of two matching POJOs which represent the same DB record- Parameters:
o
- the other pojo representing the same DB record, which the values should be taken from
-
_match
Description copied from interface:HashLookupPojo
Determine if this pojo represents the same DB record as another POJO of the same type. Note that this is NOT the same as the equals() method (though it may be in certain cases). Equals may be used to determine if two pojos of the same type contain all of the same values, regardless of whether they represent the same DB record (depending on implementation) while _match determines only if they represent the same DB record even if some of the values may not be equivalent. In many cases the two methods may be the same, but their purpose is different.- Parameters:
o
- other pojo to match- Returns:
- true if the two pojos represent the same DB record, false if not
-