org.apache.jetspeed.om.registry.base
Class BaseClientEntry

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseRegistryEntry
      extended byorg.apache.jetspeed.om.registry.base.BaseClientEntry
All Implemented Interfaces:
ClientEntry, RegistryEntry, java.io.Serializable

public class BaseClientEntry
extends BaseRegistryEntry
implements ClientEntry, java.io.Serializable

Simple implementation of the ClientRegistry interface.

Version:
$Id: BaseClientEntry.java,v 1.5 2005/03/21 18:21:37 sgala Exp $
Author:
Stephan Hesmer, Raphaël Luta
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
_hidden, hidden, id, metaInfo, name, security, securityRef
 
Constructor Summary
BaseClientEntry()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 BaseCapabilityMap getCapabilities()
           
 CapabilityMap getCapabilityMap()
          Returns all supported capablities as CapabilityMap.
 java.lang.String getManufacturer()
          Returns the manufacturer of this client
 MimetypeMap getMimetypeMap()
          Returns all supported mimetypes as MimeTypeMap.
 BaseMimetypeMap getMimetypes()
           
 java.lang.String getModel()
          Returns the model of this client
 java.lang.String getUseragentpattern()
          Returns the pattern parameter of this client.
 java.lang.String getVersion()
          Returns the version of this client
 void setCapabilities(BaseCapabilityMap capabilities)
           
 void setManufacturer(java.lang.String name)
          Sets the new manufacturer of this client
 void setMimetypes(BaseMimetypeMap mimetypes)
           
 void setModel(java.lang.String name)
          Sets the new model of this client
 void setUseragentpattern(java.lang.String useragentpattern)
          Sets the pattern used to match the user agent.
 void setVersion(java.lang.String name)
          Sets the new version of this client
 
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
getBaseMetaInfo, getBaseSecurity, getDescription, getHidden, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setBaseMetaInfo, setBaseSecurity, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.registry.RegistryEntry
getDescription, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 

Constructor Detail

BaseClientEntry

public BaseClientEntry()
Method Detail

equals

public boolean equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.

Overrides:
equals in class BaseRegistryEntry

getUseragentpattern

public java.lang.String getUseragentpattern()
Description copied from interface: ClientEntry
Returns the pattern parameter of this client. The pattern is used to match a client to the user agent used to access the portal. If the pattern matches the user agent string, this client is recognized as the one the user is currently working with.

Specified by:
getUseragentpattern in interface ClientEntry
Returns:
the pattern of this client

setUseragentpattern

public void setUseragentpattern(java.lang.String useragentpattern)
Description copied from interface: ClientEntry
Sets the pattern used to match the user agent.

Specified by:
setUseragentpattern in interface ClientEntry
Parameters:
useragentpattern - the new pattern

getManufacturer

public java.lang.String getManufacturer()
Description copied from interface: ClientEntry
Returns the manufacturer of this client

Specified by:
getManufacturer in interface ClientEntry
Returns:
the manufacturer of this client

setManufacturer

public void setManufacturer(java.lang.String name)
Description copied from interface: ClientEntry
Sets the new manufacturer of this client

Specified by:
setManufacturer in interface ClientEntry
Parameters:
name - the new manufacturer

getModel

public java.lang.String getModel()
Description copied from interface: ClientEntry
Returns the model of this client

Specified by:
getModel in interface ClientEntry
Returns:
the model of this client

setModel

public void setModel(java.lang.String name)
Description copied from interface: ClientEntry
Sets the new model of this client

Specified by:
setModel in interface ClientEntry
Parameters:
name - the new model

getVersion

public java.lang.String getVersion()
Description copied from interface: ClientEntry
Returns the version of this client

Specified by:
getVersion in interface ClientEntry
Returns:
the version of this client

setVersion

public void setVersion(java.lang.String name)
Description copied from interface: ClientEntry
Sets the new version of this client

Specified by:
setVersion in interface ClientEntry
Parameters:
name - the new version

getMimetypeMap

public MimetypeMap getMimetypeMap()
Description copied from interface: ClientEntry
Returns all supported mimetypes as MimeTypeMap. The MimeTypeMap contains all mimetypes in decreasing order of importance.

Specified by:
getMimetypeMap in interface ClientEntry
Returns:
the MimeTypeMap
See Also:
MimeTypeMap

getCapabilityMap

public CapabilityMap getCapabilityMap()
Description copied from interface: ClientEntry
Returns all supported capablities as CapabilityMap. The CapabilityMap contains all capabilities in arbitrary order.

Specified by:
getCapabilityMap in interface ClientEntry
Returns:
the CapabilityMap
See Also:
CapabilityMap

getMimetypes

public BaseMimetypeMap getMimetypes()

setMimetypes

public void setMimetypes(BaseMimetypeMap mimetypes)

getCapabilities

public BaseCapabilityMap getCapabilities()

setCapabilities

public void setCapabilities(BaseCapabilityMap capabilities)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.