protected static class VHostItemImpl.VHostItemWrapper extends Object implements VHostItem
DEF_VHOST_KEY
Constructor and Description |
---|
VHostItemWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
addCommandFields(Packet packet)
The method is used for handling ad-hoc commands.
|
String[] |
getAdmins()
Returns an array with the Item administrators, that is people IDs who can manage, configure and control less
critical elements of the Item, like changing less critical configuration settings.
|
int[] |
getC2SPortsAllowed() |
String[] |
getComps() |
<T> T |
getData(String key) |
DomainFilterPolicy |
getDomainFilter() |
String[] |
getDomainFilterDomains() |
<T extends VHostItemExtension> |
getExtension(Class<T> clazz) |
Set<Class<? extends VHostItemExtension>> |
getExtensionClasses() |
<T extends VHostItemExtension> |
getExtensions() |
String |
getKey()
Returns a unique key for the item in the repository.
|
Long |
getMaxUsersNumber() |
JID |
getMessageForward() |
String |
getOtherDomainParams() |
String |
getOwner()
Returns the owner ID of the item.
|
JID |
getPresenceForward() |
String |
getS2sSecret() |
String[] |
getSaslAllowedMechanisms() |
Set<String> |
getTrustedJIDs() |
JID |
getVhost() |
void |
initFromCommand(Packet packet)
The method used for handling ad-hoc commands.
|
void |
initFromElement(Element elem)
The item can be also initialized from a more complex repositories: XML repository or SQL database.
|
void |
initFromPropertyString(String propString)
The item can be initialized based on the data loaded from a configuration file.
|
boolean |
isAnonymousEnabled() |
boolean |
isData(String key) |
boolean |
isEnabled() |
boolean |
isOwner(String id)
The method checks whether the person with given ID is the Item owner.
|
boolean |
isRegisterEnabled() |
boolean |
isTlsRequired() |
protected void |
readOnly() |
void |
refresh() |
void |
setAdmins(String[] admins)
Returns an array with the Item administrators, that is people IDs who can manage, configure and control less
critical elements of the Item, like changing less critical configuration settings.
|
void |
setDefaultVHost(VHostItem item) |
void |
setItem(VHostItem item) |
void |
setKey(String domain) |
void |
setOwner(String owner)
Set the Item owner.
|
void |
setVHostDefaults(VHostItemDefaults vHostDefaults) |
Element |
toElement()
Item data can be stored in a more complex form than a simple property string.
|
String |
toPropertyString()
The item can be initialized based on the data loaded from a configuration file.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo, getMessageForwardAddress, getPresenceForwardAddress, isAdmin, isTrustedJID
public void setItem(VHostItem item)
public void setDefaultVHost(VHostItem item)
public void setVHostDefaults(VHostItemDefaults vHostDefaults)
public void refresh()
public int[] getC2SPortsAllowed()
getC2SPortsAllowed
in interface VHostItem
public DomainFilterPolicy getDomainFilter()
getDomainFilter
in interface VHostItem
public String[] getDomainFilterDomains()
getDomainFilterDomains
in interface VHostItem
public <T extends VHostItemExtension> T getExtension(Class<T> clazz)
getExtension
in interface VHostItem
public <T extends VHostItemExtension> Set<T> getExtensions()
getExtensions
in interface VHostItem
public Set<Class<? extends VHostItemExtension>> getExtensionClasses()
getExtensionClasses
in interface VHostItem
public Long getMaxUsersNumber()
getMaxUsersNumber
in interface VHostItem
public JID getMessageForward()
getMessageForward
in interface VHostItem
public String getOtherDomainParams()
getOtherDomainParams
in interface VHostItem
public JID getPresenceForward()
getPresenceForward
in interface VHostItem
public String getS2sSecret()
getS2sSecret
in interface VHostItem
public Set<String> getTrustedJIDs()
getTrustedJIDs
in interface VHostItem
public boolean isAnonymousEnabled()
isAnonymousEnabled
in interface VHostItem
public boolean isRegisterEnabled()
isRegisterEnabled
in interface VHostItem
public boolean isTlsRequired()
isTlsRequired
in interface VHostItem
public String[] getSaslAllowedMechanisms()
getSaslAllowedMechanisms
in interface VHostItem
public void addCommandFields(Packet packet)
RepositoryItem
addCommandFields
in interface RepositoryItem
packet
- with empty ad-hoc command to fill with fieldspublic String[] getAdmins()
RepositoryItem
getAdmins
in interface RepositoryItem
public void setAdmins(String[] admins)
RepositoryItem
setAdmins
in interface RepositoryItem
admins
- is an array with the Item administrators IDs to set for the Item.public String getKey()
RepositoryItem
getKey
in interface RepositoryItem
public String getOwner()
RepositoryItem
getOwner
in interface RepositoryItem
public void setOwner(String owner)
RepositoryItem
setOwner
in interface RepositoryItem
owner
- is the Item owner ID.public void initFromCommand(Packet packet)
RepositoryItem
initFromCommand
in interface RepositoryItem
packet
- with ad-hoc command filled by the user.public void initFromElement(Element elem)
RepositoryItem
initFromElement
in interface RepositoryItem
elem
- XML Element with all the item initialization data.public void initFromPropertyString(String propString)
RepositoryItem
initFromPropertyString
in interface RepositoryItem
propString
- is a property string to initialize the RepositoryItem.public boolean isOwner(String id)
RepositoryItem
isOwner
in interface RepositoryItem
id
- is an ID of a person for whom we check access permissions.public Element toElement()
RepositoryItem
toElement
in interface RepositoryItem
public String toPropertyString()
RepositoryItem
toPropertyString
in interface RepositoryItem
protected void readOnly()
Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.