|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.org.OrgImpl
public class OrgImpl
Class Org that reflects the DB representation of web_customer DB table: web_customer
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
protected |
OrgImpl()
Construct new OrgImpl |
| 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 newRole)
Add a Role to the Org. |
boolean |
equals(java.lang.Object other)
|
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.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.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 OrgQuota |
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 |
getRoles()
Gets the roles assigned to this Org. |
Token |
getToken()
Returns the default registration token for this organization. |
UserGroup |
getUserGroup(Role roleIn)
Get the Org's UserGroup ID for the specified Role |
java.util.Set |
getUserGroups()
Get UserGroups for this Org. |
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)
Convenience method that checks the set of customDataKeys for a custom data key with the given label. |
boolean |
hasEntitlement(OrgEntitlementType ent)
Does this org have the requested entitlement |
int |
hashCode()
|
boolean |
hasRole(Role role)
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 |
protected void |
setContactGroups(java.util.Set contactGroupsIn)
|
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 |
protected void |
setId(java.lang.Long idIn)
Sets the value of id to new value |
void |
setMonitoringScouts(java.util.Set monitoringScoutsIn)
Sets the monitoring Scouts for this Org. |
void |
setName(java.lang.String nameIn)
Sets the value of name to new value |
void |
setOracleCustomerId(java.lang.Integer oracleCustomerIdIn)
Sets the value of oracleCustomerId to new value |
void |
setOracleCustomerNumber(java.lang.Integer oracleIn)
Sets the value of oracleCustomerNumber to new value |
void |
setOrgQuota(OrgQuota quotaIn)
Set the OrgQuota. |
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. |
void |
setUserGroups(java.util.Set ugIn)
Set UserGroups for this Org. |
java.lang.String |
toString()
|
| Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper |
|---|
getCreated, getModified, setCreated, setModified |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.redhat.rhn.domain.org.Org |
|---|
getCreated, getModified, setCreated, setModified |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
protected OrgImpl()
| Method Detail |
|---|
public java.util.Set getCustomDataKeys()
getCustomDataKeys in interface Orgpublic void setCustomDataKeys(java.util.Set customDataKeysIn)
setCustomDataKeys in interface OrgcustomDataKeysIn - The customDataKeys to set.public boolean hasCustomDataKey(java.lang.String label)
hasCustomDataKey in interface Orglabel - The label to check for.
public void addCustomDataKey(CustomDataKey keyIn)
addCustomDataKey in interface OrgkeyIn - The CustomDataKey to add to the customDataKeys set for this org.public java.lang.Long getId()
getId in interface Orgprotected void setId(java.lang.Long idIn)
idIn - New value for idpublic java.lang.String getName()
getName in interface Orgpublic void setName(java.lang.String nameIn)
setName in interface OrgnameIn - New value for namepublic java.lang.String getPassword()
getPassword in interface Orgpublic void setPassword(java.lang.String passwordIn)
setPassword in interface OrgpasswordIn - New value for passwordpublic java.lang.Integer getOracleCustomerId()
getOracleCustomerId in interface Orgpublic void setOracleCustomerId(java.lang.Integer oracleCustomerIdIn)
setOracleCustomerId in interface OrgoracleCustomerIdIn - New value for oracleCustomerIdpublic java.lang.Integer getOracleCustomerNumber()
getOracleCustomerNumber in interface Orgpublic void setOracleCustomerNumber(java.lang.Integer oracleIn)
setOracleCustomerNumber in interface OrgoracleIn - New value for oracleCustomerNumberpublic java.lang.String getCustomerType()
getCustomerType in interface Orgpublic void setCustomerType(java.lang.String customerTypeIn)
setCustomerType in interface OrgcustomerTypeIn - New value for customerTypepublic java.lang.String getCreditApplicationCompleted()
getCreditApplicationCompleted in interface Orgpublic void setCreditApplicationCompleted(java.lang.String credIn)
setCreditApplicationCompleted in interface OrgcredIn - New value for creditApplicationCompletedpublic java.util.Set getRoles()
Collections.unmodifiableMap(java.util.Map extends K, ? extends V>)
in order to enforce the rule that roles are not changeable
during runtime.
getRoles in interface Orgpublic boolean hasRole(Role role)
hasRole in interface Orgrole - the Role.label to check
public void addRole(Role newRole)
addRole in interface OrgnewRole - the role label we want to add to this Orgpublic UserGroup getUserGroup(Role roleIn)
getUserGroup in interface OrgroleIn - the Role.label to translate to a UserGroup.ID
public java.util.Set getUserGroups()
public void setUserGroups(java.util.Set ugIn)
ugIn - the new arraypublic void setEntitlements(java.util.Set entsIn)
setEntitlements in interface OrgentsIn - new Set of Entitlements to updatepublic java.util.Set getEntitlements()
getEntitlements in interface Orgpublic java.util.List getEntitledServerGroups()
getEntitledServerGroups in interface Orgpublic java.util.List getManagedServerGroups()
getManagedServerGroups in interface Orgpublic void addOwnedChannel(Channel channelIn)
addOwnedChannel in interface OrgchannelIn - The Channel to addpublic void setOwnedChannels(java.util.Set channelsIn)
setOwnedChannels in interface OrgchannelsIn - The channels for this orgpublic java.util.Set getOwnedChannels()
getOwnedChannels in interface Orgpublic java.util.List getAccessibleChannels()
getAccessibleChannels in interface Orgpublic boolean hasEntitlement(OrgEntitlementType ent)
hasEntitlement in interface Orgent - Entitlement to check
public void resetChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
resetChannelPermissions in interface Orguid - User ID to resetcid - Channel IDroleLabel - label of Role to reset
public void removeChannelPermissions(java.lang.Long uid,
java.lang.Long cid,
java.lang.String roleLabel)
removeChannelPermissions in interface Orguid - User ID to resetcid - Channel IDroleLabel - label of Role to resetpublic void setOrgQuota(OrgQuota quotaIn)
quotaIn - the new quota to set.public OrgQuota getOrgQuota()
getOrgQuota in interface Orgpublic void addOrgQuota(java.lang.Long totalIn)
addOrgQuota in interface OrgtotalIn - the total size of the quotapublic java.lang.Long getQuotaTotal()
getQuotaTotal in interface Orgpublic boolean isPayingCustomer()
isPayingCustomer in interface Orgpublic int numActiveOrgAdmins()
numActiveOrgAdmins in interface Orgpublic java.util.List getActiveOrgAdmins()
getActiveOrgAdmins in interface Orgpublic java.util.Set getMonitoringScouts()
getMonitoringScouts in interface Orgpublic void setMonitoringScouts(java.util.Set monitoringScoutsIn)
monitoringScoutsIn - the new set of Monitoring scoutspublic java.util.Set getContactGroups()
Org
getContactGroups in interface Orgprotected void setContactGroups(java.util.Set contactGroupsIn)
contactGroupsIn - The contactGroups to set.public ChannelFamily getPrivateChannelFamily()
Org
getPrivateChannelFamily in interface Orgpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isDemoEntitled()
isDemoEntitled in interface Orgpublic java.util.Set<Entitlement> getValidBaseEntitlementsForOrg()
getValidBaseEntitlementsForOrg in interface Orgpublic java.util.Set<Entitlement> getValidAddOnEntitlementsForOrg()
getValidAddOnEntitlementsForOrg in interface Orgpublic java.lang.String toString()
toString in class java.lang.Objectpublic Token getToken()
getToken in interface Orgpublic void setToken(Token tokenIn)
setToken in interface OrgtokenIn - Default token.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||