|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.beans.DatabaseBean
org.deltava.beans.system.RegistrationBlock
public class RegistrationBlock
A bean used to block user names and IP addresses from registering.
| Constructor Summary | |
|---|---|
RegistrationBlock(String fName,
String lName)
Initializes the bean. |
|
| Method Summary | |
|---|---|
boolean |
getActive()
Returns whether the block is active. |
long |
getAddress()
Returns the IP address or network to block. |
String |
getComments()
Returns user comments about this Registration block. |
String |
getFirstName()
Returns the first name. |
boolean |
getHasUserFeedback()
Returns whether the user should be informed that the registration attempt has been blocked. |
String |
getHostName()
Returns the remote host name. |
String |
getLastName()
Returns the last name. |
long |
getNetMask()
Returns the IP address netmask. |
String |
getRowClassName()
Returns the CSS table row class used when displaying in an HTML table. |
void |
setActive(boolean isActive)
Marks this registration block as active/inactive. |
void |
setAddress(long addr)
Updates the IP address. |
void |
setComments(String comments)
Updates user comments about this Registration block entry. |
void |
setHasUserFeedback(boolean hasFeedback)
Marks whether the user should receive feedback if a registration attempt was rejected. |
void |
setHostName(String hostName)
Updates the blocked host name. |
void |
setName(String fName,
String lName)
Updates the name. |
void |
setNetMask(long mask)
Updates the IP address and network mask. |
| Methods inherited from class org.deltava.beans.DatabaseBean |
|---|
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistrationBlock(String fName,
String lName)
fName - the first namelName - the last namesetName(String, String),
getFirstName(),
getLastName()| Method Detail |
|---|
public boolean getActive()
setActive(boolean)public boolean getHasUserFeedback()
setHasUserFeedback(boolean)public String getFirstName()
RegistrationBlock(String, String)public String getLastName()
RegistrationBlock(String, String)public String getHostName()
setHostName(String)public String getComments()
setComments(String)public long getAddress()
setAddress(long),
getNetMask()public long getNetMask()
setNetMask(long),
getAddress()public void setActive(boolean isActive)
isActive - TRUE if the rule is active, otherwise FALSEgetActive()public void setHasUserFeedback(boolean hasFeedback)
hasFeedback - TRUE whether feedback should be given on rejection, otherwise FALSEgetHasUserFeedback()
public void setName(String fName,
String lName)
fName - the first namelName - the last namepublic void setHostName(String hostName)
hostName - the host namegetHostName()public void setComments(String comments)
comments - the commentsgetComments()public void setAddress(long addr)
addr - the IPv4 addressgetAddress(),
setNetMask(long)public void setNetMask(long mask)
mask - the network maskgetNetMask(),
setAddress(long)public String getRowClassName()
getRowClassName in interface ViewEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||