站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

ServerRegistrationID - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.theme
Class ServerRegistrationID

java.lang.Object
  extended byorg.jboss.portal.theme.FQN
      extended byorg.jboss.portal.theme.ServerRegistrationID
All Implemented Interfaces:
java.io.Serializable

public class ServerRegistrationID
extends FQN

Abstraction of a unique identifier for registered meta data.

Version:
$Revision: 5448 $
Author:
Martin Holzner.
See Also:
Serialized Form

Nested Class Summary
static class ServerRegistrationID.Type
           
 
Field Summary
private  java.lang.String desc
           
private static long serialVersionUID
          The serialVersionUID
private  ServerRegistrationID.Type type
           
static ServerRegistrationID.Type TYPE_LAYOUT
          Type for a registered Portal Layout.
static ServerRegistrationID.Type TYPE_RENDERSET
          Type for a registered Portal RenderSet.
static ServerRegistrationID.Type TYPE_STRATEGY
          Type for a registered Portal Layout Strategy.
static ServerRegistrationID.Type TYPE_THEME
          type for a registered Portal Theme.
 
Fields inherited from class org.jboss.portal.theme.FQN
names
 
Constructor Summary
private ServerRegistrationID(ServerRegistrationID.Type type, java.lang.String[] names)
           
 
Method Summary
static ServerRegistrationID createID(ServerRegistrationID.Type type, java.lang.String[] names)
          Create a new registration id based on the provided type and names.
static ServerRegistrationID createPortalLayoutID(java.lang.String appID, java.lang.String name)
          convenience method to create a new registration id for a layout.
static ServerRegistrationID createPortalThemeID(java.lang.String appID, java.lang.String name)
          convenience method to create a new registration id for a theme.
 boolean equals(java.lang.Object obj)
           
 ServerRegistrationID.Type getType()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.portal.theme.FQN
getName, isChildOf, size, toArray
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

desc

private java.lang.String desc

type

private ServerRegistrationID.Type type

TYPE_THEME

public static final ServerRegistrationID.Type TYPE_THEME
type for a registered Portal Theme.


TYPE_LAYOUT

public static final ServerRegistrationID.Type TYPE_LAYOUT
Type for a registered Portal Layout.


TYPE_STRATEGY

public static final ServerRegistrationID.Type TYPE_STRATEGY
Type for a registered Portal Layout Strategy.


TYPE_RENDERSET

public static final ServerRegistrationID.Type TYPE_RENDERSET
Type for a registered Portal RenderSet.

Constructor Detail

ServerRegistrationID

private ServerRegistrationID(ServerRegistrationID.Type type,
                             java.lang.String[] names)
Parameters:
type -
names -
Throws:
java.lang.IllegalArgumentException
Method Detail

createID

public static ServerRegistrationID createID(ServerRegistrationID.Type type,
                                            java.lang.String[] names)
Create a new registration id based on the provided type and names.

Parameters:
type - the type of registration to create (TYPE_THEME or TYPE_LAYOUT)
names - an array of names that together build a unique id
Returns:
a new ServerRegistrationID

toString

public java.lang.String toString()
Overrides:
toString in class FQN

createPortalThemeID

public static ServerRegistrationID createPortalThemeID(java.lang.String appID,
                                                       java.lang.String name)
                                                throws java.lang.IllegalArgumentException
convenience method to create a new registration id for a theme.

Parameters:
appID - the name of the portal web application that contains the theme
name - the name of the theme
Returns:
a registration id for the meta data of a portal theme with the unique id created from appID and name
Throws:
java.lang.IllegalArgumentException - if any of the provided paramter values are null
See Also:
createID(org.jboss.portal.theme.ServerRegistrationID.Type, java.lang.String[]), TYPE_THEME

createPortalLayoutID

public static ServerRegistrationID createPortalLayoutID(java.lang.String appID,
                                                        java.lang.String name)
                                                 throws java.lang.IllegalArgumentException
convenience method to create a new registration id for a layout.

Parameters:
appID - the name of the portal web application that contains the layout
name - the name of the layout
Returns:
a registration id for the meta data of a portal layout with the unique id created from appID and name
Throws:
java.lang.IllegalArgumentException - if any of the provided parameter values are null
See Also:
createID(org.jboss.portal.theme.ServerRegistrationID.Type, java.lang.String[]), TYPE_LAYOUT

getType

public ServerRegistrationID.Type getType()
Returns:
the type of this registration data

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class FQN

hashCode

public int hashCode()
Overrides:
hashCode in class FQN