Package com.jscape.inet.vfs
Class DomainAdministration
- java.lang.Object
-
- com.jscape.inet.vfs.DomainAdministration
-
public class DomainAdministration extends java.lang.ObjectDefines domain administration properties for a user account.
-
-
Constructor Summary
Constructors Constructor Description DomainAdministration()Used by serialization subsystem.DomainAdministration(DomainAdministration that)Creates a new administration instance.DomainAdministration(java.lang.Integer maxOwnedCount, boolean manageNonOwned, boolean allowGroupAssignment, boolean allowResourceMapping, java.lang.String restrictDir, boolean shareQuotas, boolean allowSetPhoneAuth, boolean allowUrlBranding, java.lang.Integer maxUrlBrandings, boolean allowDropZone, java.lang.Integer maxDropZones, boolean allowManagePublicContact, boolean allowSystemPgpKeyAssignment, boolean userPasswordChangingAllowed, java.lang.String[] allowedTemplates)Creates a new administration instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getAllowedTemplates()Returns the allowed templates.java.lang.IntegergetMaxDropZones()Returns maximum drop zones user can manage.java.lang.IntegergetMaxOwnedCount()Gets maximum number of accounts that may be owned.java.lang.IntegergetMaxUrlBrandings()Returns max URL brandings user can edit.java.lang.StringgetRestrictDir()Gets absolute path of directory that account may assign to account virtual paths.booleanisAllowDropZone()Returns an ability for creating/managing drop zones.booleanisAllowGroupAssignment()Gets whether account can assign a group to accounts.booleanisAllowManagePublicContact()Returns whether an account is allowed create/manage public contact.booleanisAllowResourceMapping()Sets whether account can assign a network storage to an account virtual path.booleanisAllowSetPhoneAuth()Returns whether user able to set phone authentication to account.booleanisAllowSystemPgpKeyAssignment()Returns whether an account is allowed to assign system OpenPGP keys to virtual directories when enabling PGP encryption for a virtual directory.booleanisAllowUrlBranding()Returns user ability to edit URL brandings.booleanisManageNonOwned()Gets whether account can manage non-owned accounts.booleanisShareQuotas()Gets whether traffic of owned users is rolled up to this account quota.booleanisUserPasswordChangingAllowed()voidsetAllowDropZone(boolean value)Sets an ability for creating/managing drop zones.voidsetAllowedTemplates(java.lang.String[] value)Sets the allowed templates.voidsetAllowGroupAssignment(boolean value)Sets whether account can assign a group to accounts.voidsetAllowManagePublicContact(boolean value)Sets whether an account can create/manage public contact.voidsetAllowResourceMapping(boolean value)Gets whether account can assign a network storage to an account virtual path.voidsetAllowSetPhoneAuth(boolean value)Sets wheter user able to set phone authentication to account.voidsetAllowSystemPgpKeyAssignment(boolean value)Sets whether an account is allowed to assign system OpenPGP keys to virtual directories when enabling PGP encryption for a virtual directory.voidsetAllowUrlBranding(boolean value)Sets user ability to edit URL brandings.voidsetManageNonOwned(boolean value)Sets whether account can manage non-owned accounts.voidsetMaxDropZones(java.lang.Integer value)Sets maximum drop zones user can manage.voidsetMaxOwnedCount(java.lang.Integer count)Sets maximum number of accounts that may be owned.voidsetMaxUrlBrandings(java.lang.Integer value)Sets max URL brandings user can edit.voidsetRestrictDir(java.lang.String dir)Gets absolute path of directory that account may assign to account virtual paths.voidsetShareQuotas(boolean share)Sets whether traffic of owned users is rolled up to this account quota.voidsetUserPasswordChangingAllowed(boolean value)java.lang.StringtoString()
-
-
-
Constructor Detail
-
DomainAdministration
public DomainAdministration(java.lang.Integer maxOwnedCount, boolean manageNonOwned, boolean allowGroupAssignment, boolean allowResourceMapping, java.lang.String restrictDir, boolean shareQuotas, boolean allowSetPhoneAuth, boolean allowUrlBranding, java.lang.Integer maxUrlBrandings, boolean allowDropZone, java.lang.Integer maxDropZones, boolean allowManagePublicContact, boolean allowSystemPgpKeyAssignment, boolean userPasswordChangingAllowed, java.lang.String[] allowedTemplates)Creates a new administration instance.- Parameters:
maxOwnedCount- maximum number of accounts that may be ownedmanageNonOwned- whether account can manage non-owned accountsallowGroupAssignment- whether account can assign a group to accountsallowResourceMapping- whether account can assign a network storage to an account virtual pathrestrictDir- bsolute path of directory that account may assign to account virtual pathsshareQuotas- whether traffic of owned users is rolled up to this account quotaallowSetPhoneAuth- wheter user able to set phone authentication to accountallowUrlBranding- user ability to edit URL brandingsmaxUrlBrandings- max URL brandings user can editallowDropZone- ability for creating/managing drop zones.maxDropZones- max drop zone user can manageallowManagePublicContact- ability for creating/managing public contactsallowSystemPgpKeyAssignment- whether account can assign system OpenPGP keys
-
DomainAdministration
public DomainAdministration(DomainAdministration that)
Creates a new administration instance.- Parameters:
that- copy constructor
-
DomainAdministration
public DomainAdministration()
Used by serialization subsystem.
-
-
Method Detail
-
getMaxOwnedCount
public java.lang.Integer getMaxOwnedCount()
Gets maximum number of accounts that may be owned.- Returns:
- max accounts
-
setMaxOwnedCount
public void setMaxOwnedCount(java.lang.Integer count)
Sets maximum number of accounts that may be owned.- Parameters:
count- max accounts
-
isManageNonOwned
public boolean isManageNonOwned()
Gets whether account can manage non-owned accounts.- Returns:
- true if can managed non-owned accounts, false otherwise
-
setManageNonOwned
public void setManageNonOwned(boolean value)
Sets whether account can manage non-owned accounts.- Parameters:
value- true if can manage non-owned accounts, false otherwise
-
isAllowGroupAssignment
public boolean isAllowGroupAssignment()
Gets whether account can assign a group to accounts.- Returns:
- true if can assign, false otherwise
-
setAllowGroupAssignment
public void setAllowGroupAssignment(boolean value)
Sets whether account can assign a group to accounts.- Parameters:
value- true if can assign, false otherwise
-
isAllowResourceMapping
public boolean isAllowResourceMapping()
Sets whether account can assign a network storage to an account virtual path.- Returns:
- true if can assign a network storage, false otherwise
-
setAllowResourceMapping
public void setAllowResourceMapping(boolean value)
Gets whether account can assign a network storage to an account virtual path.- Parameters:
value- true if can assign a network storage, false otherwise
-
getRestrictDir
public java.lang.String getRestrictDir()
Gets absolute path of directory that account may assign to account virtual paths.- Returns:
- absolute directory path
-
setRestrictDir
public void setRestrictDir(java.lang.String dir)
Gets absolute path of directory that account may assign to account virtual paths.- Parameters:
dir- absolute directory path
-
isShareQuotas
public boolean isShareQuotas()
Gets whether traffic of owned users is rolled up to this account quota.- Returns:
- true if traffic is rolled up, false otherwise
-
setShareQuotas
public void setShareQuotas(boolean share)
Sets whether traffic of owned users is rolled up to this account quota.- Parameters:
share- true if traffic is rolled up, false otherwise.
-
isAllowSetPhoneAuth
public boolean isAllowSetPhoneAuth()
Returns whether user able to set phone authentication to account.- Returns:
trueif it can set;falseotherwise
-
setAllowSetPhoneAuth
public void setAllowSetPhoneAuth(boolean value)
Sets wheter user able to set phone authentication to account.- Parameters:
value-trueif it can set;falseotherwise
-
isAllowUrlBranding
public boolean isAllowUrlBranding()
Returns user ability to edit URL brandings.- Returns:
trueif user is allowed to edit URL brandings;falseotherise
-
setAllowUrlBranding
public void setAllowUrlBranding(boolean value)
Sets user ability to edit URL brandings.- Parameters:
value- iftrueuser is allowed to edit URL brandings
-
getMaxUrlBrandings
public java.lang.Integer getMaxUrlBrandings()
Returns max URL brandings user can edit.- Returns:
- max URL brandings user can edit
-
setMaxUrlBrandings
public void setMaxUrlBrandings(java.lang.Integer value)
Sets max URL brandings user can edit.- Parameters:
value- max URL brandings user can edit
-
isAllowDropZone
public boolean isAllowDropZone()
Returns an ability for creating/managing drop zones.- Returns:
trueif user allowed to manage drop zones;falseotherwise
-
setAllowDropZone
public void setAllowDropZone(boolean value)
Sets an ability for creating/managing drop zones.- Parameters:
value-trueif allowed to manage drop zones
-
getMaxDropZones
public java.lang.Integer getMaxDropZones()
Returns maximum drop zones user can manage.- Returns:
- max drop zones user can manage
-
setMaxDropZones
public void setMaxDropZones(java.lang.Integer value)
Sets maximum drop zones user can manage.- Parameters:
value- max drop zones user can manage
-
isAllowManagePublicContact
public boolean isAllowManagePublicContact()
Returns whether an account is allowed create/manage public contact.- Returns:
trueif allowed create/manage public account;falseotherwise
-
setAllowManagePublicContact
public void setAllowManagePublicContact(boolean value)
Sets whether an account can create/manage public contact.- Parameters:
value-trueif allowed create/manage public account;falseotherwise
-
isAllowSystemPgpKeyAssignment
public boolean isAllowSystemPgpKeyAssignment()
Returns whether an account is allowed to assign system OpenPGP keys to virtual directories when enabling PGP encryption for a virtual directory.- Returns:
trueif allowed system OpenPGP key assignment;falseotherwise
-
setAllowSystemPgpKeyAssignment
public void setAllowSystemPgpKeyAssignment(boolean value)
Sets whether an account is allowed to assign system OpenPGP keys to virtual directories when enabling PGP encryption for a virtual directory.- Parameters:
value-trueif allowed system OpenPGP key assignment;falseotherwise
-
isUserPasswordChangingAllowed
public boolean isUserPasswordChangingAllowed()
-
setUserPasswordChangingAllowed
public void setUserPasswordChangingAllowed(boolean value)
-
getAllowedTemplates
public java.lang.String[] getAllowedTemplates()
Returns the allowed templates.- Returns:
- the allowed templates
-
setAllowedTemplates
public void setAllowedTemplates(java.lang.String[] value)
Sets the allowed templates.- Parameters:
value- the allowed templates
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-