|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Org
Class Org that reflects the DB representation of web_customer DB table: web_customer
| Method Summary | |
|---|---|
void |
addCustomDataKey(CustomDataKey keyIn)
|
void |
addOrgQuota(java.lang.Long totalIn)
Add a Quota to this Org |
void |
addOwnedChannel(Channel channelIn)
Adds a new channel to the orgs set of channels |
void |
addRole(Role roleLabel)
Add a Role to the Org. |
java.util.List |
getAccessibleChannels()
Get the list of channels accessible for this org. |
java.util.List |
getActiveOrgAdmins()
Gets the list of active org admins (com.redhat.rhn.domain.user.User objects) in this org. |
java.util.Set |
getContactGroups()
Get the Set of com.redhat.rhn.domain.monitoring.notification.ContactGroup objects associated with this Org. |
java.util.Date |
getCreated()
Gets the current value of created |
java.lang.String |
getCreditApplicationCompleted()
Gets the current value of creditApplicationCompleted |
java.util.Set |
getCustomDataKeys()
|
java.lang.String |
getCustomerType()
Gets the current value of customerType |
java.util.List |
getEntitledServerGroups()
Get the set of EntitlementServerGroups that this Org is a member of. |
java.util.Set |
getEntitlements()
Get entitlements for this Org |
java.lang.Long |
getId()
Gets the current value of id |
java.util.List |
getManagedServerGroups()
Get the set of ManagedServerGroups that this Org is a member of. |
java.util.Date |
getModified()
Gets the current value of modified |
java.util.Set |
getMonitoringScouts()
Gets the com.redhat.rhn.domain.monitoring.satcluster.SatClusters associated with this Org. |
java.lang.String |
getName()
Gets the current value of name |
java.lang.Integer |
getOracleCustomerId()
Gets the current value of oracleCustomerId |
java.lang.Integer |
getOracleCustomerNumber()
Gets the current value of oracleCustomerNumber |
OrgQuota |
getOrgQuota()
Get the quota object associated with this org. |
java.util.Set |
getOwnedChannels()
Get the set of channels associated with this org. |
java.lang.String |
getPassword()
Gets the current value of password |
ChannelFamily |
getPrivateChannelFamily()
Returns the channelFamilies. |
java.lang.Long |
getQuotaTotal()
Get the value of the OrgQuota's TOTAL allowed |
java.util.Set<Role> |
getRoles()
Gets the roles assigned to this Org. |
Token |
getToken()
Returns the default registration token for this organization. |
UserGroup |
getUserGroup(Role roleLabel)
Get the Org's UserGroup ID for the specified Role |
java.util.Set<Entitlement> |
getValidAddOnEntitlementsForOrg()
Set of Entitlements that can be an add-on entitlement available to the Org |
java.util.Set<Entitlement> |
getValidBaseEntitlementsForOrg()
Set of Entitlements that can be a BaseEntitlement available to the Org |
boolean |
hasCustomDataKey(java.lang.String label)
|
boolean |
hasEntitlement(OrgEntitlementType ent)
Does this org have the requested entitlement |
boolean |
hasRole(Role roleLabel)
Does the Org have the specified role |
boolean |
isDemoEntitled()
Returns if the given org has a demo entitlement |
boolean |
isPayingCustomer()
Returns true if the Org is a paying customer, or false if it's a demo account. |
int |
numActiveOrgAdmins()
Gets the number of active org admins in this org. |
void |
removeChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
TODO: get rid of Role label and pass in the class Remove all channel permissions for a user/channel/role combination |
void |
resetChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
TODO: get rid of Role label and pass in the class Reset channel permissions for a user/channel/role combination |
void |
setCreated(java.util.Date createdIn)
Sets the value of created to new value |
void |
setCreditApplicationCompleted(java.lang.String credIn)
Sets the value of creditApplicationCompleted to new value |
void |
setCustomDataKeys(java.util.Set customDataKeysIn)
|
void |
setCustomerType(java.lang.String customerTypeIn)
Sets the value of customerType to new value |
void |
setEntitlements(java.util.Set entsIn)
Set entitlements for this Org |
void |
setModified(java.util.Date modifiedIn)
Sets the value of modified to new value |
void |
setName(java.lang.String nameIn)
Sets the value of name to new value |
void |
setOracleCustomerId(java.lang.Integer oracleIn)
Sets the value of oracleCustomerId to new value |
void |
setOracleCustomerNumber(java.lang.Integer oracleIn)
Sets the value of oracleCustomerNumber to new value |
void |
setOwnedChannels(java.util.Set channelsIn)
Set the channels for this org. |
void |
setPassword(java.lang.String passwordIn)
Sets the value of password to new value |
void |
setToken(Token tokenIn)
Sets the default registration token for this organization. |
| Method Detail |
|---|
java.util.Set getCustomDataKeys()
void setCustomDataKeys(java.util.Set customDataKeysIn)
customDataKeysIn - The customDataKeys to set.void addCustomDataKey(CustomDataKey keyIn)
keyIn - The CustomDataKey to add to the customDataKeys set for this org.boolean hasCustomDataKey(java.lang.String label)
label - The label to check for
java.lang.Long getId()
java.lang.String getName()
void setName(java.lang.String nameIn)
nameIn - New value for namejava.lang.String getPassword()
void setPassword(java.lang.String passwordIn)
passwordIn - New value for passwordjava.lang.Integer getOracleCustomerId()
void setOracleCustomerId(java.lang.Integer oracleIn)
oracleIn - New value for oracleCustomerIdjava.lang.Integer getOracleCustomerNumber()
void setOracleCustomerNumber(java.lang.Integer oracleIn)
oracleIn - New value for oracleCustomerNumberjava.lang.String getCustomerType()
void setCustomerType(java.lang.String customerTypeIn)
customerTypeIn - New value for customerTypejava.util.Date getCreated()
void setCreated(java.util.Date createdIn)
createdIn - New value for createdjava.lang.String getCreditApplicationCompleted()
void setCreditApplicationCompleted(java.lang.String credIn)
credIn - New value for creditApplicationCompletedjava.util.Date getModified()
void setModified(java.util.Date modifiedIn)
modifiedIn - New value for modifiedjava.util.Set<Role> getRoles()
Collections.unmodifiableMap(java.util.Map extends K, ? extends V>)
in order to enforce the rule that roles are not changeable
during runtime.
boolean hasRole(Role roleLabel)
roleLabel - the Role.label to check
UserGroup getUserGroup(Role roleLabel)
roleLabel - the Role.label to translate to a UserGroup.ID
void addRole(Role roleLabel)
roleLabel - the role label we want to add to this Orgvoid setEntitlements(java.util.Set entsIn)
entsIn - new Set of Entitlements to updatejava.util.Set getEntitlements()
boolean hasEntitlement(OrgEntitlementType ent)
ent - Entitlement to check
java.util.List getEntitledServerGroups()
java.util.List getManagedServerGroups()
void resetChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
uid - User ID to resetcid - Channel IDroleLabel - label of Role to reset
void removeChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
uid - User ID to resetcid - Channel IDroleLabel - label of Role to resetboolean isPayingCustomer()
void addOrgQuota(java.lang.Long totalIn)
totalIn - the total size of the quotaOrgQuota getOrgQuota()
java.lang.Long getQuotaTotal()
int numActiveOrgAdmins()
java.util.List getActiveOrgAdmins()
java.util.Set getMonitoringScouts()
java.util.Set getContactGroups()
void addOwnedChannel(Channel channelIn)
channelIn - The Channel to addvoid setOwnedChannels(java.util.Set channelsIn)
channelsIn - The channels for this orgjava.util.Set getOwnedChannels()
java.util.List getAccessibleChannels()
ChannelFamily getPrivateChannelFamily()
boolean isDemoEntitled()
java.util.Set<Entitlement> getValidBaseEntitlementsForOrg()
java.util.Set<Entitlement> getValidAddOnEntitlementsForOrg()
Token getToken()
void setToken(Token tokenIn)
tokenIn - Default token.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||