|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.theme.FQN org.jboss.portal.theme.ServerRegistrationID
Abstraction of a unique identifier for registered meta data.
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 |
private static final long serialVersionUID
private java.lang.String desc
private ServerRegistrationID.Type type
public static final ServerRegistrationID.Type TYPE_THEME
public static final ServerRegistrationID.Type TYPE_LAYOUT
public static final ServerRegistrationID.Type TYPE_STRATEGY
public static final ServerRegistrationID.Type TYPE_RENDERSET
Constructor Detail |
private ServerRegistrationID(ServerRegistrationID.Type type, java.lang.String[] names)
type
- names
-
java.lang.IllegalArgumentException
Method Detail |
public static ServerRegistrationID createID(ServerRegistrationID.Type type, java.lang.String[] names)
type
- the type of registration to create (TYPE_THEME or TYPE_LAYOUT)names
- an array of names that together build a unique id
public java.lang.String toString()
public static ServerRegistrationID createPortalThemeID(java.lang.String appID, java.lang.String name) throws java.lang.IllegalArgumentException
appID
- the name of the portal web application that contains the themename
- the name of the theme
appID
and name
java.lang.IllegalArgumentException
- if any of the provided paramter values are nullcreateID(org.jboss.portal.theme.ServerRegistrationID.Type, java.lang.String[])
,
TYPE_THEME
public static ServerRegistrationID createPortalLayoutID(java.lang.String appID, java.lang.String name) throws java.lang.IllegalArgumentException
appID
- the name of the portal web application that contains the layoutname
- the name of the layout
appID
and name
java.lang.IllegalArgumentException
- if any of the provided parameter values are nullcreateID(org.jboss.portal.theme.ServerRegistrationID.Type, java.lang.String[])
,
TYPE_LAYOUT
public ServerRegistrationID.Type getType()
public boolean equals(java.lang.Object obj)
public int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |