it.sistematica.isharedoc.service
Interface PartitionService

All Known Implementing Classes:
PartitionServiceImpl

public interface PartitionService

The Interface PartitionService.


Method Summary
 void broadcastFile(File file, boolean createLinkInUserHome, java.lang.String group, java.lang.String title, java.lang.String message)
          Broadcast file.
 void broadcastMessage(java.lang.String group, java.lang.String title, java.lang.String message)
          Broadcast message.
 Partition create(java.lang.String userId, java.lang.String userPassword, java.lang.String name, java.lang.String code, java.lang.String description)
          Creates the partition.
 void deleteLicense(License license)
          Delete license.
 void deleteLicenseService(LicenseService service)
          Delete license service.
 void drop(Partition partition, boolean debug)
          Drop the partition and all data.
 java.util.List<License> getAllLicenses(Partition partition)
          Gets the all licenses.
 java.util.List<Partition> getAllPartitions()
          Gets the all partitions.
 java.util.List<Partition> getApplicationPartitions()
          Gets the application partitions.
 Partition getPartition()
          Gets the partition.
 java.util.List<it.neverworks.security.User> getUsers(Partition... partitions)
          Gets the users.
 java.util.List<it.neverworks.security.User> getUsers(java.lang.String order, Partition... partitions)
          Gets the users.
 java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example, Partition... partitions)
          Gets the users.
 java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example, java.lang.String order, Partition... partitions)
          Gets the users.
 java.util.List<it.neverworks.security.User> getUsersCurrentPartition()
          Gets the users current partition.
 void moveUserData(it.neverworks.security.User from, it.neverworks.security.User to, boolean debug)
          Warning!!!
 Partition pop()
          Pop.
 void push(java.lang.Long partitionId)
          Push.
 void push(Partition partition)
          Push.
 void repair()
          Repair the partition.
 void repair(Partition partition)
          Repair.
 void repairAllPartitions()
          Repair all partitions.
 void saveLicense(Server server, License license)
          Save license.
 void saveLicenseService(License license, LicenseService service)
          Save license service.
 it.neverworks.security.User sudo(java.lang.Long partitionId)
          Sudo.
 

Method Detail

getPartition

Partition getPartition()
Gets the partition.

Returns:
the partition

push

void push(java.lang.Long partitionId)
Push.

Parameters:
partitionId - the partition id

push

void push(Partition partition)
Push.

Parameters:
partition - the partition

pop

Partition pop()
Pop.

Returns:
the partition

sudo

it.neverworks.security.User sudo(java.lang.Long partitionId)
                                 throws java.lang.Exception
Sudo.

Parameters:
partitionId - the partition id
Returns:
the user
Throws:
java.lang.Exception - the exception

create

Partition create(java.lang.String userId,
                 java.lang.String userPassword,
                 java.lang.String name,
                 java.lang.String code,
                 java.lang.String description)
Creates the partition.

Parameters:
userId - the user id
userPassword - the user password
name - the name
code - the code
description - the description
Returns:
the partition

drop

void drop(Partition partition,
          boolean debug)
Drop the partition and all data.

Parameters:
partition - the partition
debug - the debug

moveUserData

void moveUserData(it.neverworks.security.User from,
                  it.neverworks.security.User to,
                  boolean debug)
Warning!!! Move all user data to another user. Prerequisiti: L'utente di destinazione deve esistere Vincoli: L'utente di destinazione deve essere senza dati (appena creato), altrimenti potrebbero verificarsi degli errori di chiavi duplicate

Parameters:
from - the from
to - the to
debug - the debug

repair

void repair()
Repair the partition.


repair

void repair(Partition partition)
Repair.

Parameters:
partition - the partition

repairAllPartitions

void repairAllPartitions()
Repair all partitions.


getUsers

java.util.List<it.neverworks.security.User> getUsers(Partition... partitions)
Gets the users.

Parameters:
partitions - the partitions
Returns:
the users

getUsers

java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example,
                                                     Partition... partitions)
Gets the users.

Parameters:
example - the example
partitions - the partitions
Returns:
the users

getUsers

java.util.List<it.neverworks.security.User> getUsers(java.lang.String order,
                                                     Partition... partitions)
Gets the users.

Parameters:
order - the order
partitions - the partitions
Returns:
the users

getUsers

java.util.List<it.neverworks.security.User> getUsers(it.neverworks.security.User example,
                                                     java.lang.String order,
                                                     Partition... partitions)
Gets the users.

Parameters:
example - the example
order - the order
partitions - the partitions
Returns:
the users

getUsersCurrentPartition

java.util.List<it.neverworks.security.User> getUsersCurrentPartition()
Gets the users current partition.

Returns:
the users current partition

getAllPartitions

java.util.List<Partition> getAllPartitions()
Gets the all partitions.

Returns:
the all partitions

getApplicationPartitions

java.util.List<Partition> getApplicationPartitions()
Gets the application partitions.

Returns:
the application partitions

getAllLicenses

java.util.List<License> getAllLicenses(Partition partition)
Gets the all licenses.

Parameters:
partition - the partition
Returns:
the all licenses

saveLicense

void saveLicense(Server server,
                 License license)
Save license.

Parameters:
server - the server
license - the license

deleteLicense

void deleteLicense(License license)
Delete license.

Parameters:
license - the license

saveLicenseService

void saveLicenseService(License license,
                        LicenseService service)
Save license service.

Parameters:
license - the license
service - the service

deleteLicenseService

void deleteLicenseService(LicenseService service)
Delete license service.

Parameters:
service - the service

broadcastFile

void broadcastFile(File file,
                   boolean createLinkInUserHome,
                   java.lang.String group,
                   java.lang.String title,
                   java.lang.String message)
Broadcast file.

Parameters:
file - the file
createLinkInUserHome - the create link in user home
group - the group
title - the title
message - the message

broadcastMessage

void broadcastMessage(java.lang.String group,
                      java.lang.String title,
                      java.lang.String message)
Broadcast message.

Parameters:
group - the group
title - the title
message - the message