org.infoglue.cms.util.workflow
Class OwnerFactory

java.lang.Object
  extended by org.infoglue.cms.util.workflow.OwnerFactory

public class OwnerFactory
extends java.lang.Object

Factory for creating workflow owners.


Method Summary
static Owner create(InfoGluePrincipal principal)
          Creates a principal owner.
static Owner create(InfoGlueRole role)
          Creates a role owner for all groups.
static Owner create(InfoGlueRole role, InfoGlueGroup group)
          Creates a role owner for the specified group.
static java.util.Collection createAll(InfoGluePrincipal principal)
          Creates all possible owner objects for the specified principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static final Owner create(InfoGluePrincipal principal)
Creates a principal owner.

Parameters:
principal - the principal.
Returns:
the owner.

create

public static final Owner create(InfoGlueRole role)
Creates a role owner for all groups.

Parameters:
role - the role.
Returns:
the owner.

create

public static final Owner create(InfoGlueRole role,
                                 InfoGlueGroup group)
Creates a role owner for the specified group.

Parameters:
role - the role.
group - the group.
Returns:
the owner.

createAll

public static final java.util.Collection createAll(InfoGluePrincipal principal)
Creates all possible owner objects for the specified principal.

Parameters:
principal - the principal.
Returns:
all owners.


Copyright © 2005 InfoGlue.org All Rights Reserved.